pub trait Store: Sized + 'static {
    type Model: Clone;
    type Message;
    type Input;
    type Output;
    fn new(_link: StoreLink<Self>) -> Self;
fn state(&mut self) -> &mut Rc<Self::Model>; fn changed(&mut self) { ... }
fn update(&mut self, _msg: Self::Message) -> Changed { ... }
fn handle_input(&mut self, msg: Self::Input, _who: HandlerId) -> Changed { ... } }
Expand description

A container for shared state.

Associated Types

Required methods

Initialize this store.

Return a mutable reference to current state.

Provided methods

Called after state has changed.

Handle store message, returning whether state has changed.

Handle store input message, returning whether state has changed.

Implementors