pub struct StateMachine {
pub id: String,
pub initial: String,
pub states: HashMap<String, State>,
pub transitions: Vec<Transition>,
pub forbidden: Vec<ForbiddenTransition>,
pub performance: Option<PerformanceBudget>,
}Expand description
State machine definition following SCXML semantics.
Fields§
§id: StringUnique identifier for the machine
initial: StringInitial state ID (must exist in states)
states: HashMap<String, State>State definitions keyed by ID
transitions: Vec<Transition>Transition definitions
forbidden: Vec<ForbiddenTransition>Forbidden transitions (must never occur)
performance: Option<PerformanceBudget>Global performance constraints
Trait Implementations§
Source§impl Clone for StateMachine
impl Clone for StateMachine
Source§fn clone(&self) -> StateMachine
fn clone(&self) -> StateMachine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StateMachine
impl Debug for StateMachine
Source§impl<'de> Deserialize<'de> for StateMachine
impl<'de> Deserialize<'de> for StateMachine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StateMachine
impl RefUnwindSafe for StateMachine
impl Send for StateMachine
impl Sync for StateMachine
impl Unpin for StateMachine
impl UnsafeUnpin for StateMachine
impl UnwindSafe for StateMachine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more