A generic stack-based state machine. This state machine contains a stack of states and handles transitions between them. StateTransition happen based on the return value of the currently running state’s functions. Only one state can run at once.
A state machine that holds the stack of states and performs transitions between states. It can be created using
A transition from one state to the other.
Trait that states must implement.