pub enum AgentState {
Initializing,
Running,
Completing,
Terminated,
Failed,
}Expand description
Agent lifecycle states from AGENT-CONTRACT-SPEC.md §1
Variants§
Initializing
Config validation, bus connection, first heartbeat
Running
Active work, heartbeats every N seconds
Completing
Writing final artifacts, checksums, status
Terminated
Exit 0, status reported
Failed
Exit non-zero, error reported if possible
Trait Implementations§
Source§impl Clone for AgentState
impl Clone for AgentState
Source§fn clone(&self) -> AgentState
fn clone(&self) -> AgentState
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 AgentState
impl Debug for AgentState
Source§impl Display for AgentState
impl Display for AgentState
Source§impl PartialEq for AgentState
impl PartialEq for AgentState
impl Copy for AgentState
impl Eq for AgentState
impl StructuralPartialEq for AgentState
Auto Trait Implementations§
impl Freeze for AgentState
impl RefUnwindSafe for AgentState
impl Send for AgentState
impl Sync for AgentState
impl Unpin for AgentState
impl UnwindSafe for AgentState
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