pub enum GltfError {
Io(Error),
InvalidGlb(String),
InvalidGltf(String),
DracoDecode(DracoError),
DracoEncode(DracoError),
Unsupported(String),
ExternalResourceDenied(String),
ResourceLimitExceeded(String),
OpaqueBinaryReference(String),
InvalidOptions(String),
}Expand description
Errors that can occur when reading, transforming, or decoding glTF data.
Variants§
Io(Error)
Underlying stream or filesystem error.
InvalidGlb(String)
Malformed GLB header or chunk table.
InvalidGltf(String)
Malformed glTF structure or accessor data.
DracoDecode(DracoError)
Draco bitstream decoding failed.
DracoEncode(DracoError)
Draco bitstream encoding failed.
Unsupported(String)
The requested format operation is outside this crate’s contract.
ExternalResourceDenied(String)
An external resource was denied by the resolver policy.
ResourceLimitExceeded(String)
A configured resource quota was exceeded.
OpaqueBinaryReference(String)
A binary reference could not be safely interpreted or remapped.
InvalidOptions(String)
Caller-supplied compression options are invalid.
Trait Implementations§
Source§impl Error for GltfError
impl Error for GltfError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for GltfError
impl !UnwindSafe for GltfError
impl Freeze for GltfError
impl Send for GltfError
impl Sync for GltfError
impl Unpin for GltfError
impl UnsafeUnpin for GltfError
Blanket Implementations§
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
Mutably borrows from an owned value. Read more