Trait scsys_actors::states::Stateful

source ·
pub trait Stateful<Q>
where Q: StateKind,
{ type State: State<Q>; // Required methods fn state(&self) -> &Self::State; fn update_state(&mut self, state: Self::State); }
Expand description

Stateful describes a stateful object

Required Associated Types§

Required Methods§

source

fn state(&self) -> &Self::State

Stateful::state is used to get the state of the object

source

fn update_state(&mut self, state: Self::State)

Stateful::update_state is used to update the state of the object

Implementors§