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
Reachable from exactly one path: a reload’s SpawnNew step, which
marks the instance being replaced before its replacement is spawned,
so the two never both count as running. Nothing else sets it — an
operator’s stop leaves a sheep Online for its whole kill ladder
instead, so this status names reload’s transient specifically, never
“any kill ladder in progress”. A scheduled restart or an out-of-band
liveness/memory-limit restart must both reject a sheep in this status
rather than race the fresh replacement coming to take 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.