Skip to main content

DispatchEffect

Trait DispatchEffect 

Source
pub trait DispatchEffect<U = ()> {
    // Required method
    fn dispatch(
        &mut self,
        tag: u64,
        request: &Value,
        cx: &EffectContext<'_, U>,
    ) -> Result<Value, EffectError>;
}

Required Methods§

Source

fn dispatch( &mut self, tag: u64, request: &Value, cx: &EffectContext<'_, U>, ) -> Result<Value, EffectError>

Implementations on Foreign Types§

Source§

impl<U> DispatchEffect<U> for HNil

Source§

fn dispatch( &mut self, tag: u64, _request: &Value, _cx: &EffectContext<'_, U>, ) -> Result<Value, EffectError>

Source§

impl<U, H: EffectHandler<U>, T: DispatchEffect<U>> DispatchEffect<U> for HCons<H, T>

Source§

fn dispatch( &mut self, tag: u64, request: &Value, cx: &EffectContext<'_, U>, ) -> Result<Value, EffectError>

Implementors§