pub enum TrapCode {
StackOverflow,
MemoryOutOfBounds,
TableAccessOutOfBounds,
IndirectCallToNull,
BadSignature,
IntegerOverflow,
IntegerDivisionByZero,
BadConversionToInteger,
UnreachableCodeReached,
}Expand description
Wasm trap code.
Variants§
StackOverflow
Trap code for out of bounds memory access.
MemoryOutOfBounds
Trap code for out of bounds memory access.
TableAccessOutOfBounds
Trap code for out of bounds table access.
IndirectCallToNull
Trap code for indirect call to null.
BadSignature
Trap code for indirect call type mismatch.
IntegerOverflow
Trap code for integer overflow.
IntegerDivisionByZero
Trap code for division by zero.
BadConversionToInteger
Trap code for invalid conversion to integer.
UnreachableCodeReached
Trap code for unreachable code reached triggered by unreachable instruction.
Trait Implementations§
Source§impl Error for TrapCode
impl Error for TrapCode
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()
Auto Trait Implementations§
impl Freeze for TrapCode
impl RefUnwindSafe for TrapCode
impl Send for TrapCode
impl Sync for TrapCode
impl Unpin for TrapCode
impl UnwindSafe for TrapCode
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