Struct wasmi::Trap[][src]

pub struct Trap { /* fields omitted */ }

Error type which can be thrown by wasm code or by host environment.

Under some conditions, wasm execution may produce a Trap, which immediately aborts execution. Traps can't be handled by WebAssembly code, but are reported to the embedder.

Methods

impl Trap
[src]

Create new trap.

Returns kind of this trap.

Trait Implementations

impl From<Trap> for ResumableError
[src]

Performs the conversion.

impl Debug for Trap
[src]

Formats the value using the given formatter. Read more

impl Display for Trap
[src]

Formats the value using the given formatter. Read more

impl Error for Trap
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl<U> From<U> for Trap where
    U: HostError + Sized
[src]

Performs the conversion.

impl From<Trap> for Error
[src]

Performs the conversion.

impl From<TrapKind> for Trap
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Trap

impl Sync for Trap