pub enum TrapReason {
    User(Error),
    Jit(usize),
    Wasm(TrapCode),
}
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

Is this a JIT trap?

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.