Trait wasm_plugin_host::ImportableFnWithContext[][src]

pub trait ImportableFnWithContext<C, 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<C, Args, ReturnType, F> ImportableFnWithContext<C, Args> for F where
    F: Fn(&C, 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,
    ctx: &C
) -> Result<Option<FatPointer>>
[src]

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

Loading content...