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]),
}
Expand description
Represents a Glb loader error.
Variants
Io(Error)
Tuple Fields
0: Error
Io error occured.
Version(u32)
Tuple Fields
0: u32
Unsupported version.
Magic([u8; 4])
Magic says that file is not glTF.
Length
Length specified in GLB header exceeeds that of slice.
ChunkLength
Fields
ty: ChunkType
chunkType error happened at.
length: u32
chunkLength.
length_read: usize
Actual length of data read.
Stream ended before we could read the chunk.
ChunkType(ChunkType)
Tuple Fields
0: ChunkType
Chunk of this chunkType was not expected.
UnknownChunkType([u8; 4])
Unknown chunk type.