pub struct FsmSubMachineBuilder<TFsm, TContext, TSubMachine> { /* private fields */ }

Implementations

Adds a context adapter. A referenced context of the parent machine is provided, and a new instance of the submachine’s context has to be instantiated.

pub fn on_entry<'a, TAction: Fn(&mut TSubMachine, &mut EventContext<'a, TFsm, FsmQueueMock<TFsm>>)>(
    &self,
    _action: TAction
) -> &Self

Execute this action when entering the sub-machine state.

Execute this action when exiting the sub-machine state.

What happens if we receive this event and we are in this submachine’s state right now?

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.