Expand description
The StateMachine trait, Behavior trait, and the Engine that runs
Behaviors.
Structs§
- Engine
- The
Enginestruct represents the core logic unit of a state machine-based entity, such as an agent. It encapsulates a behavior and manages the flow of events to and from this behavior, effectively driving the entity’s response to external stimuli.
Enums§
- Control
Flow - The message that is used in a
StateMachineto continue or halt its processing. - Machine
Instruction - The instructions that can be sent to a
StateMachine. - State
- The state used by any entity implementing
StateMachine.
Traits§
- Behavior
- The
Behaviortrait is the lowest level functionality that will be used by aStateMachine. This constitutes what each state transition will do. - Create
State Machine - A trait for creating a state machine.
- State
Machine - A trait defining the capabilities of a state machine within the system.
Type Aliases§
- Event
Stream - A type alias for a pinned, boxed stream of events.