pub enum ProcStatus {
Starting,
Online,
Stopping,
Stopped,
Errored,
WaitingRestart,
}Expand description
Lifecycle state of a sheep (one managed process)
The serialized strings are the wire contract; waiting-restart means a
backoff or restart delay is pending.
Variants§
Starting
Spawned, not yet ready
Online
Running and (if configured) ready
Stopping
This instance is going away and is not a restart target
Set by whichever step marks the drainee before its replacement takes
the slot: SpawnNew for an overlap reload, DrainOld for a serial
one. Either way, the old and new instance never both count as
running. An operator’s stop leaves a sheep Online through its
whole kill ladder instead; a scheduled or out-of-band restart must
reject a sheep in this status rather than race the replacement
taking over its slot.
Stopped
Cleanly stopped; not scheduled to run
Errored
Restart budget exhausted or spawn failed
WaitingRestart
Restart pending after a backoff or configured delay
Trait Implementations§
Source§impl Clone for ProcStatus
impl Clone for ProcStatus
Source§fn clone(&self) -> ProcStatus
fn clone(&self) -> ProcStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProcStatus
Source§impl Debug for ProcStatus
impl Debug for ProcStatus
Source§impl<'de> Deserialize<'de> for ProcStatus
impl<'de> Deserialize<'de> for ProcStatus
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 ProcStatus
impl Display for ProcStatus
impl Eq for ProcStatus
Source§impl Hash for ProcStatus
impl Hash for ProcStatus
Source§impl PartialEq for ProcStatus
impl PartialEq for ProcStatus
Source§impl Serialize for ProcStatus
impl Serialize for ProcStatus
impl StructuralPartialEq for ProcStatus
Auto Trait Implementations§
impl Freeze for ProcStatus
impl RefUnwindSafe for ProcStatus
impl Send for ProcStatus
impl Sync for ProcStatus
impl Unpin for ProcStatus
impl UnsafeUnpin for ProcStatus
impl UnwindSafe for ProcStatus
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.