pub struct AgentStateMachine;Expand description
Holds agent state machine application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Implementations§
Source§impl AgentStateMachine
impl AgentStateMachine
Sourcepub fn transition_table(&self) -> &'static [TransitionRule]
pub fn transition_table(&self) -> &'static [TransitionRule]
Returns the transition table derived from this value. This uses only local coordinator state and performs no hidden host work.
Sourcepub fn validate_transition(
&self,
input: TransitionInput,
) -> Result<TransitionOutput, AgentError>
pub fn validate_transition( &self, input: TransitionInput, ) -> Result<TransitionOutput, AgentError>
Validates the application::loop_state invariants and returns a typed error on failure. Validation is pure and does not perform I/O, dispatch, journal appends, or adapter calls.
Trait Implementations§
Source§impl Clone for AgentStateMachine
impl Clone for AgentStateMachine
Source§fn clone(&self) -> AgentStateMachine
fn clone(&self) -> AgentStateMachine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AgentStateMachine
Source§impl Debug for AgentStateMachine
impl Debug for AgentStateMachine
Source§impl Default for AgentStateMachine
impl Default for AgentStateMachine
Source§fn default() -> AgentStateMachine
fn default() -> AgentStateMachine
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentStateMachine
impl RefUnwindSafe for AgentStateMachine
impl Send for AgentStateMachine
impl Sync for AgentStateMachine
impl Unpin for AgentStateMachine
impl UnsafeUnpin for AgentStateMachine
impl UnwindSafe for AgentStateMachine
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