pub enum Compile10dError {
Show 16 variants
Import(AssetError),
Mesh(MeshSectionError),
Normals(NormalSectionError),
TypedPayload(TypedPayloadError),
Section(SectionTableError),
Provenance(ProvenanceSectionError),
Nodes(NodeSectionError),
Materials(MaterialContainerError),
TextureCoordinates(TextureCoordinateContainerError),
MaterialIdentityCollision,
NormalVertexCountMismatch {
expected: usize,
got: usize,
},
ExtraSection {
kind: &'static str,
},
NoMeshSection,
NoNodesSection,
BadHeader,
SectionOutOfBounds,
}Expand description
Failure modes for .10d compilation and read-back.
Not Clone — it wraps AssetError, which is not Clone. Errors are consumed
on the failure path, not duplicated.
Variants§
Import(AssetError)
Decoding the source asset bytes (OBJ/STL/GLB) failed.
Mesh(MeshSectionError)
The QuantizedMesh section encode/decode failed.
Normals(NormalSectionError)
The optional vertex-normal field sidecar failed validation or encoding.
TypedPayload(TypedPayloadError)
Typed MID2 payload selection or codec admission failed.
Section(SectionTableError)
The container section table encode/decode failed.
Provenance(ProvenanceSectionError)
Encoding the provenance sidecar section failed.
Nodes(NodeSectionError)
Encoding or reading the Tensor10DNodes section failed.
Materials(MaterialContainerError)
The optional MAT1 material/submesh section failed validation or encoding.
TextureCoordinates(TextureCoordinateContainerError)
The optional UV01 texture-coordinate section failed validation or encoding.
MaterialIdentityCollision
Stable material identities collided while scoping imported materials to an asset.
NormalVertexCountMismatch
A normal sidecar does not match the mesh vertex count.
ExtraSection
Topology / spatial-index extra section failed (C3).
NoMeshSection
The container parsed but held no QuantizedMesh section.
NoNodesSection
The container parsed but held no Tensor10DNodes section.
BadHeader
The 64-byte container header failed to parse on read-back.
SectionOutOfBounds
A section descriptor’s byte range fell outside the container bytes.
Trait Implementations§
Source§impl Debug for Compile10dError
impl Debug for Compile10dError
Source§impl Display for Compile10dError
impl Display for Compile10dError
impl Eq for Compile10dError
Source§impl Error for Compile10dError
impl Error for Compile10dError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Compile10dError> for MaterialCompileError
impl From<Compile10dError> for MaterialCompileError
Source§fn from(value: Compile10dError) -> Self
fn from(value: Compile10dError) -> Self
Source§impl PartialEq for Compile10dError
impl PartialEq for Compile10dError
impl StructuralPartialEq for Compile10dError
Auto Trait Implementations§
impl Freeze for Compile10dError
impl RefUnwindSafe for Compile10dError
impl Send for Compile10dError
impl Sync for Compile10dError
impl Unpin for Compile10dError
impl UnsafeUnpin for Compile10dError
impl UnwindSafe for Compile10dError
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more