pub enum LoadError {
Io {
path: PathBuf,
source: Error,
},
Gltf(Error),
Json(Error),
UnsupportedVrmVersion,
MissingVrmExtension,
InvalidVrm(String),
UnsupportedRequiredExtension(String),
InvalidExtension {
extension: &'static str,
location: String,
source: Error,
},
}Expand description
Errors raised while loading and parsing a VRM 1.0 avatar.
Variants§
Io
Reading a file or an external buffer/image URI failed.
Gltf(Error)
The glTF container or core document is malformed.
Json(Error)
A VRM extension payload could not be decoded as JSON.
UnsupportedVrmVersion
The document declares the unsupported VRM 0.x format.
MissingVrmExtension
The required top-level VRMC_vrm extension is absent.
InvalidVrm(String)
The document violates a VRM or supported glTF semantic requirement.
UnsupportedRequiredExtension(String)
The document requires an extension that this crate cannot evaluate.
InvalidExtension
A supported extension object is malformed at a known document location.
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