Skip to main content

InvokeFn

Type Alias InvokeFn 

Source
pub type InvokeFn = fn(Box<dyn ScriptContext>, Value) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'static>>;
Expand description

Type alias for the script invocation function.

Registered via ScriptDescriptor and called by crate::execute_script after context build; must be Send because runs execute on the tokio runtime.