Enum wasm_plugin_host::errors::WasmPluginError[][src]

pub enum WasmPluginError {
    WasmerCompileError(CompileError),
    WasmerInstantiationError(InstantiationError),
    WasmerRuntimeError(RuntimeError),
    IoError(Error),
    SerializationError,
    DeserializationError,
}

Error returned by WasmPlugin when loading plugins or calling functions.

Variants

WasmerCompileError(CompileError)

A problem compiling the plugin’s WASM source

WasmerInstantiationError(InstantiationError)

A problem instantiating the Wasmer runtime

WasmerRuntimeError(RuntimeError)

A problem interacting with the plugin

IoError(Error)

A problem loading the plugin’s source from disk

SerializationError

A problems serializing an argument to send to one of the plugin’s functions.

DeserializationError

A problem deserializing the return value of a call to one of the plugin’s functions. This almost always represents a type mismatch between the callsite in the host and the function signature in the plugin.

Trait Implementations

impl Debug for WasmPluginError[src]

impl Display for WasmPluginError[src]

impl Error for WasmPluginError[src]

impl From<CompileError> for WasmPluginError[src]

impl From<Error> for WasmPluginError[src]

impl From<InstantiationError> for WasmPluginError[src]

impl From<RuntimeError> for WasmPluginError[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.