pub trait Update<S> {
// Required method
fn update(
&mut self,
event: Event
) -> Result<UpdateResult<'_, S>, UpdateError>;
}
Expand description
A trait for types holding interface state that can be updated by change events.
Required Methods§
sourcefn update(&mut self, event: Event) -> Result<UpdateResult<'_, S>, UpdateError>
fn update(&mut self, event: Event) -> Result<UpdateResult<'_, S>, UpdateError>
Update state with the interface change event.