Trait step_machine::State[][src]

pub trait State<M: State<M>> {
    type Error: Debug;
    fn next(self) -> Result<Option<M>, Self::Error>;
}
Expand description

Represents state of a state machine M

Associated Types

Required methods

Runs the current step and returns the next machine state or None if everything is done

Implementors