pub struct UninitializedStateMachine<O>where
    O: StateMachine,
{ /* private fields */ }
Expand description

A state machine that has not yet been initialized.

A state machine needs to be initialized before it can handle events. This can be done by calling the init method on it. This will execute all the entry actions into the initial state.

Implementations

Initialize the state machine by excecuting all entry actions towards the initial state.

let uninitialized_state_machine = Blinky::default().state_machine();

// The uninitialized state machine is consumed to create the initialized
// state machine.
let initialized_state_machine = uninitialized_state_machine.init();

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.