[][src]Struct stores::Store

pub struct Store<T, A> where
    T: Default + Reduceable<A> + Sync + Send,
    A: Sync + Send
{ pub state: State<T>, // some fields omitted }

Fields

state: State<T>

Methods

impl<T, A> Store<T, A> where
    T: Default + Reduceable<A> + Sync + Send,
    A: Sync + Send
[src]

pub fn get() -> &'static Mutex<Self>[src]

pub fn dispatch(&mut self, a: &A) -> State<T>[src]

pub fn watch<F>(&mut self, watcher: F) where
    F: 'static + Fn(State<T>) + Sync + Send
[src]

Trait Implementations

impl<T, A> Default for Store<T, A> where
    T: Default + Reduceable<A> + Sync + Send,
    A: Sync + Send
[src]

Auto Trait Implementations

impl<T, A> Unpin for Store<T, A> where
    A: Unpin

impl<T, A> Send for Store<T, A>

impl<T, A> Sync for Store<T, A>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]