Trait finny::FsmStateFactory
source · [−]pub trait FsmStateFactory<TFsm> where
Self: Sized,
TFsm: FsmBackend, {
fn new_state(context: &<TFsm as FsmBackend>::Context) -> FsmResult<Self>;
}
Expand description
Create a new state from the shared global context.
Required methods
fn new_state(context: &<TFsm as FsmBackend>::Context) -> FsmResult<Self>
fn new_state(context: &<TFsm as FsmBackend>::Context) -> FsmResult<Self>
Constructor for building this state from the shared global context.
Implementors
The implementation of a simple state factory, where the state supports Default.