Trait tuirealm::Update[][src]

pub trait Update {
    fn update(&mut self, msg: Option<(String, Msg)>) -> Option<(String, Msg)>;
}
Expand description

Required methods

fn update(&mut self, msg: Option<(String, Msg)>) -> Option<(String, Msg)>[src]

update

update the current state handling a message from the view. This function may return a Message, so this function has to be intended to be call recursively.

Implementors