Struct genfsm::StateMachine [] [src]

pub struct StateMachine<S, I> { /* fields omitted */ }

The core of the GenFSM library. Holds the Executor and current state of a state machine, and handles the processing of NextState values from Executors.

Methods

impl<S, I> StateMachine<S, I>
[src]

Processes new input, using the current executor to update state.

Returns true if there is no executor to handle additional input.

Extracts the current state from the state machine.

Creates a state machine starting with the given state. The executor given will be used to process input.

impl<S: Clone, I> StateMachine<S, I>
[src]

Returns a clone of the current state

Trait Implementations

impl<S, I> Borrow<S> for StateMachine<S, I>
[src]

Immutably borrows from an owned value. Read more