Trait percy_state::AppState[][src]

pub trait AppState {
    type Message;
    fn msg(&mut self, message: Self::Message);
}
Expand description

Application state.

Associated Types

Indicates that something has happened.

#[allow(unused)]
enum MyMessageType {
    IncreaseClickCounter,
    SetLastPausedAt(SystemTime)
}

Required methods

Send a message to the state object. This will usually lead to a state update

Implementors