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.
BufferLength
Buffer 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.
MissingBlob
The BIN
chunk of binary glTF is referenced but does not exist.
UnsupportedImageEncoding
Unsupported image encoding.
UnsupportedScheme
Unsupported URI scheme.
Validation(Vec<(Path, Error)>)
glTF validation error.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This 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 Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<ImageError> for Error
[src]
impl From<ImageError> for Error
fn from(err: ImageError) -> Self
[src]
fn from(err: ImageError) -> Self
Performs the conversion.
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Vec<(Path, Error)>> for Error
[src]
impl From<Vec<(Path, Error)>> for Error