#[non_exhaustive]pub enum LoadError {
Io {
path: String,
source: Error,
},
Gltf(Error),
Buffer(String),
Malformed(String),
Topology(String),
}Expand description
Errors returned while loading .gltf or .glb input.
These are structural or operator errors. Semantic animation defects,
such as non-unit quaternions or seam pops, load successfully and are
reported by animsmith-core checks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io
The source file or one of its external buffers could not be read.
Gltf(Error)
The gltf parser rejected the container.
Buffer(String)
Buffer resolution or GLB framing failed.
Malformed(String)
Animation data is structurally malformed.
Topology(String)
The node graph is not a forest that can become a skeleton.
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
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 LoadError
impl !UnwindSafe for LoadError
impl Freeze for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
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