pub trait EffectStoreLike<S, A: Action, E> {
// Required methods
fn dispatch(&mut self, action: A) -> DispatchResult<E>;
fn state(&self) -> &S;
}Expand description
Effect store interface used by EffectRuntime.
Required Methods§
Sourcefn dispatch(&mut self, action: A) -> DispatchResult<E>
fn dispatch(&mut self, action: A) -> DispatchResult<E>
Dispatch an action and return state changes plus effects.