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
Provided methods
Handle store message, returning whether state has changed.
fn handle_input(&mut self, msg: Self::Input, _who: HandlerId) -> Changed
fn handle_input(&mut self, msg: Self::Input, _who: HandlerId) -> Changed
Handle store input message, returning whether state has changed.