pub enum AgentState {
Init,
Ready,
Active,
Suspended,
Retiring,
Terminated,
}Expand description
Discretely states an agent can occupy during its lifetime.
Variants§
Init
Kernel constructed but not yet initialized.
Ready
Dependencies are initialized and the agent is ready for activation.
Active
Agent is actively handling workloads.
Suspended
Agent is temporarily paused but can resume.
Retiring
Agent is draining in-flight work prior to shut down.
Terminated
Agent fully terminated; no further work should be scheduled.
Implementations§
Source§impl AgentState
impl AgentState
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 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