pub enum SnapshotError {
Show 21 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,
},
DebugSlotNotIncreasing {
slot: usize,
},
DebugSlotOutOfRange {
slot: usize,
num_locals: usize,
},
DebugMainBindingsNotEmpty,
MissingFunctionDebugInfo(usize),
DebugFreeCountMismatch {
constant_index: usize,
operand: usize,
free_names: 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
DebugSlotNotIncreasing
Local binding slots must be strictly increasing (hence unique).
DebugSlotOutOfRange
A local binding names a slot the function does not have.
DebugMainBindingsNotEmpty
Main’s debug info must not carry local bindings or free names; its bindings are the globals, which live outside the container.
MissingFunctionDebugInfo(usize)
A debug-bearing snapshot must describe every function targeted by an
OpClosure, otherwise its capture count cannot be validated.
DebugFreeCountMismatch
An OpClosure’s free count disagrees with the target function’s
free_names metadata.
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