Enum gltf::binary::Error[][src]

pub enum Error {
    Io(Error),
    Version(u32),
    Magic([u8; 4]),
    Length {
        length: u32,
        length_read: usize,
    },
    ChunkLength {
        ty: ChunkType,
        length: u32,
        length_read: usize,
    },
    ChunkType(ChunkType),
    UnknownChunkType([u8; 4]),
}

Represents a Glb loader error.

Variants

Io error occured.

Unsupported version.

Magic says that file is not glTF.

Length specified in GLB header exceeeds that of slice.

Fields of Length

length specified in GLB header.

Actual length of data read.

Stream ended before we could read the chunk.

Fields of ChunkLength

chunkType error happened at.

chunkLength.

Actual length of data read.

Chunk of this chunkType was not expected.

Unknown chunk type.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error