Trait AppState
Other items inpercy_state
pub trait AppState { type Message; fn msg(&mut self, message: Self::Message); }
Application state.
type Message
Indicates that something has happened.
#[allow(unused)] enum MyMessageType { IncreaseClickCounter, SetLastPausedAt(SystemTime) }
fn msg(&mut self, message: Self::Message)
Send a message to the state object. This will usually lead to a state update