[][src]Trait euca::app::model::Update

pub trait Update<Message, Command = ()> {
    fn update(&mut self, msg: Message, _commands: &mut Commands<Command>) { ... }
fn simple_update(&mut self, _msg: Message) { ... } }

Process a message that updates the model.

Provided methods

fn update(&mut self, msg: Message, _commands: &mut Commands<Command>)

Update the model using the given message. Implement this to describe the behavior of your app.

fn simple_update(&mut self, _msg: Message)

Update the model using the given message. Implement this if your app does not need to use side effecting commands.

Loading content...

Implementors

impl<M> Update<(), ()> for M[src]

Loading content...