Trait Update
tuirealm
pub trait Update { fn update(&mut self, msg: Option<(String, Msg)>) -> Option<(String, Msg)>; }
fn update(&mut self, msg: Option<(String, Msg)>) -> Option<(String, Msg)>
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.