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

Constructor for building this state from the shared global context.

Implementors

The implementation of a simple state factory, where the state supports Default.