pub struct FsmBuilder<TFsm, TContext> {
    pub _fsm: PhantomData<TFsm>,
    pub _context: PhantomData<TContext>,
}
Expand description

The main builder-API for defining your Finny state machine.

Fields

_fsm: PhantomData<TFsm>_context: PhantomData<TContext>

Implementations

Sets the initial state of the state machine. Required!

Defines multiple initial states for multiple regions of the FSM. The type has to be a tuple of the initial states for each region.

Example : fsm.initial_states<(StateA, StateX)>()

Require the Debug trait on the Events.

Adds some information about a state.

Adds a sub machine

Builds the final machine. Has to be returned from the definition function.

Trait Implementations

Returns the “default value” for a type. Read more

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.