Dispatcher

Trait Dispatcher 

Source
pub trait Dispatcher<A> {
    type Output;

    // Required method
    fn dispatch(&mut self, action: A) -> Self::Output;
}
Expand description

Trait for types that allow dispatching actions.

Required Associated Types§

Required Methods§

Source

fn dispatch(&mut self, action: A) -> Self::Output

Implementors§

Source§

impl<A, S, R> Dispatcher<A> for Store<S, R>
where S: Reducer<A>, R: Reactor<S>,

Source§

type Output = Result<(), <R as Reactor<S>>::Error>

Source§

impl<A, T> Dispatcher<A> for AsyncDispatcher<T>
where T: Sink<A> + Unpin,

Source§

type Output = Result<(), <T as Sink<A>>::Error>