Skip to main content

PluginFnBody

Type Alias PluginFnBody 

Source
pub type PluginFnBody = Box<dyn Fn(&mut Cx<'_>) -> Result<ScriptValue, String> + Send + Sync>;
Expand description

The body of a PluginFn: the arguments and the command sink go in, a value or the message the script raises comes out.

Aliased Typeยง

pub struct PluginFnBody(/* private fields */);