Skip to main content

EffectHandler

Trait EffectHandler 

Source
pub trait EffectHandler {
    // Required method
    fn dispatch(
        &mut self,
        kind: &str,
        op: &str,
        args: Vec<Value>,
    ) -> Result<Value, String>;
}
Expand description

Host-side effect dispatch. Implementors decide what kind/op mean and how arguments map to side effects.

Required Methods§

Source

fn dispatch( &mut self, kind: &str, op: &str, args: Vec<Value>, ) -> Result<Value, String>

Implementors§