Trait sp_wasm_interface::Function
source · pub trait Function: MaybeRefUnwindSafe + Send + Sync {
fn name(&self) -> &str;
fn signature(&self) -> Signature;
fn execute(
&self,
context: &mut dyn FunctionContext,
args: &mut dyn Iterator<Item = Value>
) -> Result<Option<Value>>;
}
Expand description
Something that provides a function implementation on the host for a wasm function.