[][src]Enum wasmer_runtime::error::RuntimeError

pub enum RuntimeError {
    Trap {
        msg: Box<str>,
    },
    Error {
        data: Box<dyn Any + 'static + Send>,
    },
}

This is the error type returned when calling a WebAssembly function.

The main way to do this is Instance.call.

Comparing two RuntimeErrors always evaluates to false.

Variants

Trap

Trap.

Fields of Trap

msg: Box<str>

Trap message.

Error

Error.

Fields of Error

data: Box<dyn Any + 'static + Send>

Error data.

Trait Implementations

impl Debug for RuntimeError[src]

impl Display for RuntimeError[src]

impl Error for RuntimeError[src]

impl From<RuntimeError> for CallError[src]

impl From<RuntimeError> for Error[src]

impl PartialEq<RuntimeError> for RuntimeError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.