[][src]Enum wasmer::WasmError

pub enum WasmError {
    InvalidWebAssembly {
        message: String,
        offset: usize,
    },
    Unsupported(String),
    ImplLimitExceeded,
    Middleware(MiddlewareError),
    Generic(String),
}

A WebAssembly translation error.

When a WebAssembly function can't be translated, one of these error codes will be returned to describe the failure.

Variants

InvalidWebAssembly

The input WebAssembly code is invalid.

This error code is used by a WebAssembly translator when it encounters invalid WebAssembly code. This should never happen for validated WebAssembly code.

Fields of InvalidWebAssembly

message: String

A string describing the validation error.

offset: usize

The bytecode offset where the error occurred.

Unsupported(String)

A feature used by the WebAssembly code is not supported by the embedding environment.

Embedding environments may have their own limitations and feature restrictions.

ImplLimitExceeded

An implementation limit was exceeded.

Middleware(MiddlewareError)

An error from the middleware error.

Generic(String)

A generic error.

Trait Implementations

impl Debug for WasmError[src]

impl Display for WasmError[src]

impl Error for WasmError[src]

impl From<BinaryReaderError> for WasmError[src]

impl From<MiddlewareError> for WasmError[src]

impl From<WasmError> for CompileError[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> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,