pub enum AgentLifecycleState {
Unloaded,
Loaded,
Ready,
Running,
Draining,
Stopped,
Failed,
}Expand description
Agent lifecycle state enumeration
Variants§
Unloaded
Agent module not yet loaded
Loaded
Agent module loaded but not instantiated
Ready
Agent instantiated and ready to run
Running
Agent actively executing
Draining
Agent draining existing requests before shutdown
Stopped
Agent has stopped execution
Failed
Agent encountered a fatal error
Implementations§
Source§impl AgentLifecycleState
impl AgentLifecycleState
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Checks if the state is terminal (cannot transition further)
Sourcepub fn valid_transitions(&self) -> Vec<Self>
pub fn valid_transitions(&self) -> Vec<Self>
Gets all valid next states from current state
Sourcepub fn can_transition_to(&self, next: Self) -> bool
pub fn can_transition_to(&self, next: Self) -> bool
Validates if transition to new state is allowed
Trait Implementations§
Source§impl Clone for AgentLifecycleState
impl Clone for AgentLifecycleState
Source§fn clone(&self) -> AgentLifecycleState
fn clone(&self) -> AgentLifecycleState
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 AgentLifecycleState
Source§impl Debug for AgentLifecycleState
impl Debug for AgentLifecycleState
Source§impl<'de> Deserialize<'de> for AgentLifecycleState
impl<'de> Deserialize<'de> for AgentLifecycleState
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 AgentLifecycleState
impl Display for AgentLifecycleState
impl Eq for AgentLifecycleState
Source§impl Hash for AgentLifecycleState
impl Hash for AgentLifecycleState
Source§impl PartialEq for AgentLifecycleState
impl PartialEq for AgentLifecycleState
Source§impl Serialize for AgentLifecycleState
impl Serialize for AgentLifecycleState
impl StructuralPartialEq for AgentLifecycleState
Auto Trait Implementations§
impl Freeze for AgentLifecycleState
impl RefUnwindSafe for AgentLifecycleState
impl Send for AgentLifecycleState
impl Sync for AgentLifecycleState
impl Unpin for AgentLifecycleState
impl UnsafeUnpin for AgentLifecycleState
impl UnwindSafe for AgentLifecycleState
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
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more