pub enum AgentStatus {
Created,
Running,
Suspended,
Terminated,
Failed,
}Expand description
Lifecycle status of an agent.
Variants§
Created
Created but has not started any runs.
Running
Actively processing.
Suspended
Suspended (can be resumed).
Terminated
Completed all work (terminal).
Failed
Fatal error, cannot be resumed (terminal).
Implementations§
Source§impl AgentStatus
impl AgentStatus
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Whether this is a terminal state.
Sourcepub fn is_runnable(&self) -> bool
pub fn is_runnable(&self) -> bool
Whether the agent can accept a new run().
Trait Implementations§
Source§impl Clone for AgentStatus
impl Clone for AgentStatus
Source§fn clone(&self) -> AgentStatus
fn clone(&self) -> AgentStatus
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 AgentStatus
Source§impl Debug for AgentStatus
impl Debug for AgentStatus
Source§impl Default for AgentStatus
impl Default for AgentStatus
Source§fn default() -> AgentStatus
fn default() -> AgentStatus
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AgentStatus
impl Display for AgentStatus
impl Eq 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
Mutably borrows from an owned value. Read more
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.