pub enum AgentStatus {
Idle,
Active,
Waiting,
Paused,
Complete,
Error {
message: String,
},
Cancelled,
}Expand description
Status of an agent.
Hash so the driver’s quiescence check can fold an agent’s status into its
per-tick digest (see PipelineWorld::agent_digest).
Variants§
Idle
Agent is idle, ready for tasks
Active
Agent is actively working on a task
Waiting
Agent is waiting for input or external event
Paused
Agent was paused by the user. The async-starting systems skip it exactly
like Idle; the variant is distinct so the pause persists visibly
(meta.json, lev ps, dashboard) and so resume can be gated on it.
Complete
Agent has completed its task
Error
Agent encountered an error
Cancelled
Agent was cancelled by the user or system
Implementations§
Source§impl AgentStatus
impl AgentStatus
Sourcepub fn label(&self) -> &'static str
pub fn label(&self) -> &'static str
The short, stable lowercase word for this status.
One table, because three used to drift independently: lev ps, the
WorldEvent stream (and through it the REST
WebSocket), and the check_agent tool result the model reads. The
strings are part of the daemon’s wire contract, so they are fixed here
rather than derived from the variant names.
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 moreSource§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>,
Source§impl Display for AgentStatus
impl Display for AgentStatus
Source§impl Hash for AgentStatus
impl Hash for AgentStatus
Source§impl PartialEq for AgentStatus
impl PartialEq for AgentStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
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>, which can then be
downcast into Box<dyn 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>, which 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.