Struct fsm::Machine [] [src]

pub struct Machine<'a, S: EnumTag, E: EnumTag> { /* fields omitted */ }

The Machine is the Finite State Machine, which has a current state and set of all valid transitions

Methods

impl<'a, S: EnumTag, E: EnumTag> Machine<'a, S, E>
[src]

Constructs a new FSM with a given initial state

Registers a new valid transition with the FSM

Retrieves a reference to the current state

Tick the State Machine with an Event