[][src]Trait finny::FsmBackend

pub trait FsmBackend where
    Self: Sized
{ type Context; type States: FsmStates; type Events; pub fn dispatch_event<Q>(
        frontend: &mut FsmFrontend<Self, Q>,
        event: &FsmEvent<Self::Events>
    ) -> FsmResult<()>
    where
        Q: FsmEventQueue<Self>
; }

Finite State Machine backend. Handles the dispatching, the types are defined by the code generator.

Associated Types

type Context[src]

The machine's context that is shared between its constructors and actions.

type States: FsmStates[src]

The type that holds the states of the machine.

type Events[src]

A tagged union type with all the supported events.

Loading content...

Required methods

pub fn dispatch_event<Q>(
    frontend: &mut FsmFrontend<Self, Q>,
    event: &FsmEvent<Self::Events>
) -> FsmResult<()> where
    Q: FsmEventQueue<Self>, 
[src]

Loading content...

Implementors

Loading content...