Trait yewdux::store::Store [−][src]
A container for shared state.
Associated Types
Loading content...Required methods
fn new(_link: StoreLink<Self>) -> Self
[src]
Initialize this store.
fn state(&mut self) -> &mut Rc<Self::Model>
[src]
Return a mutable reference to current state.
Provided methods
fn changed(&mut self)
[src]
Called after state has changed.
fn update(&mut self, _msg: Self::Message) -> Changed
[src]
Handle store message, returning whether state has changed.
fn handle_input(&mut self, msg: Self::Input, _who: HandlerId) -> Changed
[src]
Handle store input message, returning whether state has changed.
Implementors
impl<T> Store for BasicStore<T> where
T: Clone + Default + 'static,
[src]
T: Clone + Default + 'static,
type Model = T
type Message = ()
type Input = ()
type Output = ()
fn new(_link: StoreLink<Self>) -> Self
[src]
fn state(&mut self) -> &mut Rc<Self::Model>
[src]
impl<T> Store for PersistentStore<T> where
T: Default + Clone + Persistent + 'static,
[src]
T: Default + Clone + Persistent + 'static,
type Model = T
type Message = ()
type Input = ()
type Output = ()
fn new(_link: StoreLink<Self>) -> Self
[src]
fn state(&mut self) -> &mut Rc<Self::Model>
[src]
fn changed(&mut self)
[src]
impl<T> Store for ReducerStore<T> where
T: Reducer + Clone + 'static,
[src]
T: Reducer + Clone + 'static,