pub enum SnapshotError {
Show 16 variants
BadMagic,
UnsupportedVersion {
found: u8,
expected: u8,
},
AbiFingerprintMismatch {
found: u32,
expected: u32,
},
UnexpectedEof,
InvalidLeb128,
IntegerOverflow,
LimitExceeded,
BadTag(u8),
BadUtf8,
BadFlags(u8),
TrailingBytes,
InvalidInstruction(String),
DuplicateDebugEntry(usize),
DebugPcNotIncreasing {
pc: usize,
},
DebugIndexNotFunction(usize),
DebugPcOutOfRange {
pc: usize,
len: usize,
},
}Variants§
BadMagic
UnsupportedVersion
AbiFingerprintMismatch
UnexpectedEof
InvalidLeb128
IntegerOverflow
LimitExceeded
A declared size exceeds the remaining input bytes.
BadTag(u8)
BadUtf8
BadFlags(u8)
TrailingBytes
InvalidInstruction(String)
Instruction-stream validation failure, with stream and offset.
DuplicateDebugEntry(usize)
DebugPcNotIncreasing
DebugIndexNotFunction(usize)
The debug entry’s constant index does not name a function constant.
DebugPcOutOfRange
Trait Implementations§
Source§impl Debug for SnapshotError
impl Debug for SnapshotError
Source§impl PartialEq for SnapshotError
impl PartialEq for SnapshotError
impl StructuralPartialEq for SnapshotError
Auto Trait Implementations§
impl Freeze for SnapshotError
impl RefUnwindSafe for SnapshotError
impl Send for SnapshotError
impl Sync for SnapshotError
impl Unpin for SnapshotError
impl UnsafeUnpin for SnapshotError
impl UnwindSafe for SnapshotError
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