Trait app_world::AppWorld[][src]

pub trait AppWorld: Sized {
    type Message;
    fn msg(
        &mut self,
        message: Self::Message,
        world_wrapper: AppWorldWrapper<Self>
    ); }
Expand description

Defines how messages that indicate that something has happened get sent to the World.

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