pub enum ChunkDecodeError {
TooShort,
BadMagic([u8; 4]),
BadVersion(u16),
Truncated,
InvalidConstTag(u8),
TooManyConstants,
TooManyFunctions,
CodeTooLarge,
InvalidStringLength(u16),
InvalidNameLength(u8),
}Expand description
Codec error.
Variants§
TooShort
Data too short for even the header.
BadMagic([u8; 4])
Magic bytes don’t match.
BadVersion(u16)
Version mismatch.
Truncated
Truncated data (declared length exceeds remaining bytes).
InvalidConstTag(u8)
Invalid constant tag.
TooManyConstants
Too many constants.
TooManyFunctions
Too many functions.
CodeTooLarge
Code segment too large.
InvalidStringLength(u16)
Invalid string length.
InvalidNameLength(u8)
Invalid function name length.
Trait Implementations§
Source§impl Clone for ChunkDecodeError
impl Clone for ChunkDecodeError
Source§impl Debug for ChunkDecodeError
impl Debug for ChunkDecodeError
Source§impl Display for ChunkDecodeError
impl Display for ChunkDecodeError
Source§impl Error for ChunkDecodeError
impl Error for ChunkDecodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ChunkDecodeError
impl PartialEq for ChunkDecodeError
impl StructuralPartialEq for ChunkDecodeError
Auto Trait Implementations§
impl Freeze for ChunkDecodeError
impl RefUnwindSafe for ChunkDecodeError
impl Send for ChunkDecodeError
impl Sync for ChunkDecodeError
impl Unpin for ChunkDecodeError
impl UnsafeUnpin for ChunkDecodeError
impl UnwindSafe for ChunkDecodeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more