[−][src]Enum wasmer_vm::Trap
Stores trace message with backtrace.
Variants
A user-raised trap through raise_user_trap
.
A trap raised from machine code generated from Wasm
Fields of Wasm
A trap raised manually from the Wasmer VM
Fields of Runtime
Implementations
impl Trap
[src]
pub fn new_from_wasm(
pc: usize,
backtrace: Backtrace,
signal_trap: Option<TrapCode>
) -> Self
[src]
pc: usize,
backtrace: Backtrace,
signal_trap: Option<TrapCode>
) -> Self
Construct a new VM Trap
with the given the program counter, backtrace and an optional
trap code associated with the signal received from the kernel.
Wasm traps are Traps that are triggered by the chip when running generated
code for a Wasm function.
pub fn new_from_runtime(trap_code: TrapCode) -> Self
[src]
Construct a new runtime Trap
with the given trap code.
Runtime traps are Traps that are triggered manually from the VM.
Internally saves a backtrace when constructed.
pub fn new_from_user(error: Box<dyn Error + Send + Sync>) -> Self
[src]
Construct a new Out of Memory (OOM) Trap
.
Internally saves a backtrace when constructed.
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,