Trait crs_bind::machine::StateMachine[][src]

pub trait StateMachine {
    type State: Ord;
    fn state(&self) -> Self::State;
fn transition(&self, state: Self::State); }

Denotes a type which represents a state machine.

Associated Types

type State: Ord[src]

The state type used by the state machine.

Loading content...

Required methods

fn state(&self) -> Self::State[src]

Gets the current state of the state machine.

fn transition(&self, state: Self::State)[src]

Transitions the state machine to a new state.

Loading content...

Implementors

Loading content...