Expand description
Core components for the rustate actor framework. This crate provides the fundamental traits, structs, and functions for defining, spawning, and interacting with actors. It forms the basis for building concurrent applications using the actor model.
Re-exports§
pub use actor::Actor;
pub use actor::ActorError;
pub use actor_ref::ActorRef;
pub use logic::ActorLogic;
pub use spawn::spawn;
pub use system::ActorSystem;
pub use event::Event;
pub use event::IntoEvent;
pub use action::Action;
pub use action::ActionType;
pub use action::IntoAction;
pub use context::Context;
pub use error::Result;
pub use error::StateError as Error;
pub use event::EventTrait;
pub use guard::Guard;
pub use guard::IntoGuard;
pub use machine::Machine;
pub use machine::MachineBuilder;
pub use machine::MachineSnapshot;
pub use state::HistoryType;
pub use state::State;
pub use state::StateCollection;
pub use state::StateTrait;
pub use state::StateType;
pub use transition::Transition;
pub use transition::TransitionType;
pub use crate::integration::hierarchical::ChildMachine;
pub use crate::integration::hierarchical::DefaultChildMachine;
pub use crate::integration::Error as IntegrationError;
pub use crate::integration::Result as IntegrationResult;
pub use serde_json;
Modules§
- action
- Defines actions (side effects) that can be executed during state transitions or upon entering/exiting states within the RuState framework.
- actor
- actor_
ref - context
- Defines the
Context
struct used to hold arbitrary data (extended state) associated with a RuState state machine. - error
- Defines the error types used throughout the RuState library.
- event
- Defines the core concepts related to events in the RuState framework.
- guard
- Defines guard conditions used to determine if a state transition should occur.
- integration
- RuState Integration Patterns
- logic
- machine
- simple_
counter - spawn
- state
- system
- transition