Enum wasmi::Error[][src]

pub enum Error {
    Validation(String),
    Instantiation(String),
    Function(String),
    Table(String),
    Memory(String),
    Global(String),
    Value(String),
    Trap(Trap),
    Host(Box<HostError>),
}

Internal interpreter error.

Variants

Module validation error. Might occur only at load time.

Error while instantiating a module. Might occur when provided with incorrect exports (i.e. linkage failure).

Function-level error.

Table-level error.

Memory-level error.

Global-level error.

Value-level error.

Trap.

Custom embedder error.

Methods

impl Error
[src]

Returns HostError if this Error represents some host error.

I.e. if this error have variant Host or Trap with host error.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Into<String> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

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

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

Performs the conversion.

impl From<Trap> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error