Skip to main content

EffectStoreLike

Trait EffectStoreLike 

Source
pub trait EffectStoreLike<S, A, E>
where A: Action,
{ // Required methods fn dispatch(&mut self, action: A) -> DispatchResult<E>; fn state(&self) -> &S; }
Expand description

Effect store interface used by EffectRuntime.

Required Methods§

Source

fn dispatch(&mut self, action: A) -> DispatchResult<E>

Dispatch an action and return state changes plus effects.

Source

fn state(&self) -> &S

Get the current state.

Implementors§

Source§

impl<S, A, E> EffectStoreLike<S, A, E> for EffectStore<S, A, E>
where A: Action,

Source§

impl<S, A, E, M> EffectStoreLike<S, A, E> for EffectStoreWithMiddleware<S, A, E, M>
where A: Action, M: Middleware<A>,