Enum wasmtime_runtime::TrapReason
source · [−]Expand description
Enumeration of different methods of raising a trap.
Variants
User(Error)
A user-raised trap through raise_user_trap
.
Jit(usize)
A trap raised from Cranelift-generated code with the pc listed of where the trap came from.
Wasm(TrapCode)
A trap raised from a wasm libcall
Implementations
sourceimpl TrapReason
impl TrapReason
Trait Implementations
sourceimpl Debug for TrapReason
impl Debug for TrapReason
sourceimpl From<Error> for TrapReason
impl From<Error> for TrapReason
Auto Trait Implementations
impl !RefUnwindSafe for TrapReason
impl Send for TrapReason
impl Sync for TrapReason
impl Unpin for TrapReason
impl !UnwindSafe for TrapReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more