pub enum GltfError {
Io(Error),
Json(Error),
InvalidGlb(String),
InvalidGltf(String),
DracoDecode(String),
Unsupported(String),
}Available on crate features
gltf-reader or gltf-writer only.Expand description
Errors that can occur when reading or decoding glTF geometry.
Variants§
Io(Error)
Filesystem or stream I/O failed.
Json(Error)
glTF JSON parsing failed.
InvalidGlb(String)
Binary GLB structure is invalid.
InvalidGltf(String)
glTF JSON or accessor/buffer structure is invalid.
DracoDecode(String)
Embedded Draco payload failed to decode.
Unsupported(String)
The asset uses a glTF feature outside this crate’s geometry scope.
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