pub struct FsmFrontend<F, Q, I, T> where
    F: FsmBackend,
    Q: FsmEventQueue<F>,
    I: Inspect,
    T: FsmTimers<F>, 
{ pub backend: FsmBackendImpl<F>, pub queue: Q, pub inspect: I, pub timers: T, }
Expand description

The frontend of a state machine which also includes environmental services like queues and inspection. The usual way to use the FSM.

Fields

backend: FsmBackendImpl<F>queue: Qinspect: Itimers: T

Implementations

Start the FSM, initiates the transition to the initial state.

Dispatch any pending timer events into the queue, then run all the events from the queue until completition.

Dispatch this event and run it to completition.

Dispatch only this event, do not run it to completition.

Dispatch the entire event queue and run it to completition.

Methods from Deref<Target = FsmBackendImpl<F>>

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.