Enum gltf::Error [−][src]
pub enum Error {
Base64(DecodeError),
Binary(Error),
BufferLength {
buffer: usize,
expected: usize,
actual: usize,
},
Deserialize(Error),
Io(Error),
Image(ImageError),
MissingBlob,
UnsupportedImageEncoding,
UnsupportedScheme,
Validation(Vec<(Path, Error)>),
}Represents a runtime error.
Variants
Base64(DecodeError)Base 64 decoding error.
Binary(Error)GLB parsing error.
BufferLengthBuffer length does not match expected length.
Fields of BufferLength
buffer: usize | The index of the offending buffer. |
expected: usize | The expected buffer length in bytes. |
actual: usize | The number of bytes actually available. |
Deserialize(Error)JSON deserialization error.
Io(Error)Standard I/O error.
Image(ImageError)Image decoding error.
MissingBlobThe BIN chunk of binary glTF is referenced but does not exist.
UnsupportedImageEncodingUnsupported image encoding.
UnsupportedSchemeUnsupported URI scheme.
Validation(Vec<(Path, Error)>)glTF validation error.
Trait Implementations
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Error[src]
impl Display for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for Error[src]
impl Error for Errorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
fn cause(&self) -> Option<&Error>1.0.0
[src]The lower-level cause of this error, if any. Read more
impl From<Error> for Error[src]
impl From<Error> for Errorimpl From<Error> for Error[src]
impl From<Error> for Errorimpl From<ImageError> for Error[src]
impl From<ImageError> for Errorfn from(err: ImageError) -> Self[src]
fn from(err: ImageError) -> SelfPerforms the conversion.
impl From<Error> for Error[src]
impl From<Error> for Errorimpl From<Vec<(Path, Error)>> for Error[src]
impl From<Vec<(Path, Error)>> for Error