Module pure_hfsm::builder[][src]

Expand description

Builder describing multiple interacting state machines

You must define a StateMachines and use StateMachines::build to get a runnable crate::StateMachines.

In order for crate::Transition impls to be able to return crate::Target, that cannot be constructed due to the arguments of crate::Target::Goto and crate::Target::Enter being non-constructible, you need to first define a IntoTransition impl. IntoTransition::into_with takes a NameMapping argument that let you construct crate::Target that you will be able to use in the impl of crate::Transition.

Once your obtain a crate::StateMachines through the StateMachines::build method, you can use it with label::NestedMachine to manage a state machine.

Structs

Obtain a Target based on serialized state and machine names

A single state machine which states can refer to each other by String name

Multiple state machines that may refer each other by String name

Enums

Convenience enum for serialized state machines

Traits

Convert Self into something that implements crate::Transition