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: ErrorIo error occured.
Version(u32)
Tuple Fields
0: u32Unsupported version.
Magic([u8; 4])
Magic says that file is not glTF.
Length
Length specified in GLB header exceeeds that of slice.
ChunkLength
Fields
ty: ChunkTypechunkType error happened at.
length: u32chunkLength.
length_read: usizeActual length of data read.
Stream ended before we could read the chunk.
ChunkType(ChunkType)
Tuple Fields
0: ChunkTypeChunk of this chunkType was not expected.
UnknownChunkType([u8; 4])
Unknown chunk type.
