pub enum WasmTrap {
OutOfBounds,
DivisionByZero,
IntegerOverflow,
Unreachable,
IndirectCallTypeMismatch,
TableOutOfBounds,
UndefinedElement,
}Expand description
Wasm execution errors — no panics, no unwinding.
Variants§
OutOfBounds
Memory access out of bounds.
DivisionByZero
Integer division by zero.
IntegerOverflow
Integer overflow (e.g., i32.trunc_f64_s on out-of-range float).
Unreachable
Unreachable instruction executed.
IndirectCallTypeMismatch
Indirect call type mismatch (call_indirect signature check).
TableOutOfBounds
Table access out of bounds.
UndefinedElement
Undefined element in table.
Trait Implementations§
Source§impl From<ConstructionError> for WasmTrap
impl From<ConstructionError> for WasmTrap
Source§fn from(_: ConstructionError) -> Self
fn from(_: ConstructionError) -> Self
Converts to this type from the input type.
impl Copy for WasmTrap
impl Eq for WasmTrap
impl StructuralPartialEq for WasmTrap
Auto Trait Implementations§
impl Freeze for WasmTrap
impl RefUnwindSafe for WasmTrap
impl Send for WasmTrap
impl Sync for WasmTrap
impl Unpin for WasmTrap
impl UnsafeUnpin for WasmTrap
impl UnwindSafe for WasmTrap
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