Trait app_world::AppWorld [−][src]
pub trait AppWorld: Sized { type Message; fn msg(
&mut self,
message: Self::Message,
world_wrapper: AppWorldWrapper<Self>
); fn should_rerender(&self, message: &Self::Message) -> bool; }
Expand description
Defines how messages that indicate that something has happened get sent to the World.
Associated Types
Required methods
fn msg(&mut self, message: Self::Message, world_wrapper: AppWorldWrapper<Self>)
fn msg(&mut self, message: Self::Message, world_wrapper: AppWorldWrapper<Self>)
Send a message to the state object. This will usually lead to a state update
fn should_rerender(&self, message: &Self::Message) -> bool
fn should_rerender(&self, message: &Self::Message) -> bool
Whether or not the application should be told to re-render. This check occurs before the messae is processed.