Struct crux::Store
[−]
[src]
pub struct Store<T> where T: State + Clone { /* fields omitted */ }
Methods
impl<T> Store<T> where T: State + Send + Sync + Clone + 'static, T::Action: Send
[src]
fn new(state: T) -> Self
fn add_middleware<M>(&mut self, middleware: M) where M: Middleware<T> + Send + Sync + 'static
fn state(&self) -> RwLockReadGuard<T>
fn dispatch(&mut self, action: T::Action)
Trait Implementations
impl<T: Clone> Clone for Store<T> where T: State + Clone
[src]
fn clone(&self) -> Store<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more