Enum wasmtime_runtime::Trap [−][src]
pub enum Trap {
User(Box<dyn Error + Send + Sync>),
Jit {
pc: usize,
backtrace: Backtrace,
maybe_interrupted: bool,
},
Wasm {
trap_code: TrapCode,
backtrace: Backtrace,
},
OOM {
backtrace: Backtrace,
},
}Expand description
Stores trace message with backtrace.
Variants
A user-raised trap through raise_user_trap.
A trap raised from jit code
Show fields
Fields of Jit
pc: usizeThe program counter in JIT code where this trap happened.
backtrace: BacktraceNative stack backtrace at the time the trap occurred
maybe_interrupted: boolAn indicator for whether this may have been a trap generated from an interrupt, used for switching what would otherwise be a stack overflow trap to be an interrupt trap.
A trap raised from a wasm libcall
Show fields
Fields of Wasm
trap_code: TrapCodeCode of the trap.
backtrace: BacktraceNative stack backtrace at the time the trap occurred
A trap indicating that the runtime was unable to allocate sufficient memory.
Show fields
Fields of OOM
backtrace: BacktraceNative stack backtrace at the time the OOM occurred
Implementations
impl Trap[src]
impl Trap[src]Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Trap
impl Send for Trap
impl Sync for Trap
impl Unpin for Trap
impl !UnwindSafe for Trap
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,