Enum gltf::import::Error
[−]
[src]
pub enum Error<S: Source> { Decode(ImageError), ExtensionDisabled(String), ExtensionUnsupported(String), IncompatibleVersion(String), Io(Error), MalformedGlb(String), MalformedJson(Error), Shared(SharedError<Error<S>>), Source(S::Error), Validation(Vec<(Path, Error)>), }
Error encountered when importing a glTF 2.0 asset.
Variants
Decode(ImageError)
A glTF image could not be decoded.
ExtensionDisabled(String)
A glTF extension required by the asset has not been enabled by the user.
ExtensionUnsupported(String)
A glTF extension required by the asset is not supported by the library.
IncompatibleVersion(String)
The glTF version of the asset is incompatible with the importer.
Io(Error)
Standard I/O error.
MalformedGlb(String)
Failure when parsing a .glb file.
MalformedJson(Error)
Failure when deserializing .gltf or .glb JSON.
Data source error.
Source(S::Error)
Data source error.
Validation(Vec<(Path, Error)>)
The .gltf data is invalid.
Trait Implementations
impl<S: Debug + Source> Debug for Error<S> where
S::Error: Debug,
[src]
S::Error: Debug,
impl<S: Source> From<ImageError> for Error<S>
[src]
fn from(err: ImageError) -> Error<S>
Performs the conversion.
impl<S: Source> From<Error> for Error<S>
[src]
impl<S: Source> From<Error> for Error<S>
[src]
impl<S: Source> From<SharedError<Error<S>>> for Error<S>
[src]
fn from(err: SharedError<Error<S>>) -> Error<S>
Performs the conversion.