pub enum AgentStatus {
Spawning,
Ready,
Idle,
Busy,
Live,
Restarting,
Orphaned,
Failed,
Exited,
PermanentDead,
}Expand description
Agent lifecycle status. state.status is canonical; registry.status is a
denormalized projection of it (LD10). Serialized snake_case for the JSON
state files and the cross-language schemas.
Variants§
Spawning
PTY spawned, not yet confirmed ready for input.
Ready
Confirmed ready for input (readiness_detector reported ready).
Idle
Alive and waiting (equivalent to Ready for drive-eligibility, LD28).
Busy
Mid-reply / actively processing.
Live
Live shorthand used by the registry projection.
Restarting
Restart policy is backing off before re-spawn.
Orphaned
Reachability probe failed; needs reconcile or rm.
Failed
Per-agent task panicked (provider parse panic, etc.); restart policy applies.
Exited
Child exited; registry entry retained until rm.
PermanentDead
Restart hard ceiling hit (LD36); will not restart again.
Implementations§
Source§impl AgentStatus
impl AgentStatus
Sourcepub fn is_drive_eligible(&self) -> bool
pub fn is_drive_eligible(&self) -> bool
Drive is accepted only for these statuses (LD28). Idle/Live are
equivalent to Ready for drive purposes.
Trait Implementations§
Source§impl Clone for AgentStatus
impl Clone for AgentStatus
Source§fn clone(&self) -> AgentStatus
fn clone(&self) -> AgentStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AgentStatus
Source§impl Debug for AgentStatus
impl Debug for AgentStatus
Source§impl<'de> Deserialize<'de> for AgentStatus
impl<'de> Deserialize<'de> for AgentStatus
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>,
impl Eq for AgentStatus
Source§impl PartialEq for AgentStatus
impl PartialEq for AgentStatus
Source§fn eq(&self, other: &AgentStatus) -> bool
fn eq(&self, other: &AgentStatus) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentStatus
impl Serialize for AgentStatus
impl StructuralPartialEq for AgentStatus
Auto Trait Implementations§
impl Freeze for AgentStatus
impl RefUnwindSafe for AgentStatus
impl Send for AgentStatus
impl Sync for AgentStatus
impl Unpin for AgentStatus
impl UnsafeUnpin for AgentStatus
impl UnwindSafe for AgentStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.