Struct wasm_plugin_host::WasmPlugin[][src]

pub struct WasmPlugin { /* fields omitted */ }

A loaded plugin

Implementations

impl WasmPlugin[src]

pub fn call_function_with_argument<ReturnType, Args>(
    &self,
    fn_name: &str,
    args: &Args
) -> Result<ReturnType> where
    Args: Serializable,
    ReturnType: Deserializable
[src]

Call a function exported by the plugin with a single argument which will be serialized and sent to the plugin.

Deserialization of the return value depends on the type being known at the call site.

pub fn call_function<ReturnType>(&mut self, fn_name: &str) -> Result<ReturnType> where
    ReturnType: Deserializable
[src]

Call a function exported by the plugin.

Deserialization of the return value depends on the type being known at the call site.

Trait Implementations

impl Clone for WasmPlugin[src]

impl Debug for WasmPlugin[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.