#[repr(u8)]pub enum AgentStatus {
Running = 0,
Idle = 1,
Suspended = 2,
Interrupted = 3,
Retrying = 4,
Failed = 5,
Exited = 6,
}
Expand description
The current status of an agent
Variants§
Running = 0
The agent is running an invoked function
Idle = 1
The agent is ready to run an invoked function
Suspended = 2
An invocation is active but waiting for something (sleeping, waiting for a promise)
Interrupted = 3
The last invocation was interrupted but will be resumed
Retrying = 4
The last invocation failed and a retry was scheduled
Failed = 5
The last invocation failed and the agent can no longer be used
Exited = 6
The agent exited after a successful invocation and can no longer be invoked
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 · 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 AgentStatus
impl Debug for AgentStatus
Source§impl Ord for AgentStatus
impl Ord for AgentStatus
Source§fn cmp(&self, other: &AgentStatus) -> Ordering
fn cmp(&self, other: &AgentStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AgentStatus
impl PartialEq for AgentStatus
Source§impl PartialOrd for AgentStatus
impl PartialOrd for AgentStatus
impl Copy for AgentStatus
impl Eq 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 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