pub trait Init<S> {
// Required method
fn init(&mut self, state: &S);
}Expand description
The ability to perform initial effects given a starting state.
This trait can be implemented for Fsm::SE. A state machine driver
that requires this will call init with the initial state, possibly
recovered from storage or by rehydration, before accepting any
commands or live events.