[][src]Trait sp_wasm_interface::Function

pub trait Function: MaybeRefUnwindSafe + Send + Sync {
    pub fn name(&self) -> &str;
pub fn signature(&self) -> Signature;
pub fn execute(
        &self,
        context: &mut dyn FunctionContext,
        args: &mut dyn Iterator<Item = Value>
    ) -> Result<Option<Value>>; }

Something that provides a function implementation on the host for a wasm function.

Required methods

pub fn name(&self) -> &str[src]

Returns the name of this function.

pub fn signature(&self) -> Signature[src]

Returns the signature of this function.

pub fn execute(
    &self,
    context: &mut dyn FunctionContext,
    args: &mut dyn Iterator<Item = Value>
) -> Result<Option<Value>>
[src]

Execute this function with the given arguments.

Loading content...

Trait Implementations

impl PartialEq<dyn Function + 'static> for dyn Function[src]

Implementors

Loading content...