Trait wasm_plugin_host::ImportableFn[][src]

pub trait ImportableFn<ArgList> { }

A marker trait for Fn types who’s arguments and return type can be serialized and are thus safe to import into a plugin;

Implementors

impl<F, Args, ReturnType> ImportableFn<Args> for F where
    F: Fn(Args) -> ReturnType,
    Args: Deserializable,
    ReturnType: Serializable
[src]

fn has_arg() -> bool[src]

fn has_return() -> bool[src]

fn call_with_input(
    &self,
    message_buffer: &mut MessageBuffer<'_>,
    ptr: usize,
    len: usize
) -> Result<Option<FatPointer>>
[src]

fn call_without_input(
    &self,
    _message_buffer: &mut MessageBuffer<'_>
) -> Result<Option<FatPointer>>
[src]

Loading content...