Skip to main content

HostDispatch

Type Alias HostDispatch 

Source
pub type HostDispatch = Rc<dyn Fn(&[Value]) -> Result<Value, HostError>>;
Expand description

The type-erased closure the VM dispatches a host call to.

Aliased Typeยง

pub struct HostDispatch { /* private fields */ }