pub enum WorkerStatus {
Healthy,
Degraded,
Unreachable,
Draining,
Drained,
Disabled,
}Expand description
Status of a worker in the fleet.
State transitions:
HEALTHY ←→ DEGRADED (automatic based on response times)
↓ ↓
↓ UNREACHABLE (automatic on heartbeat failure)
↓
DRAINING (via `rch workers drain`) - finishing current jobs
↓
DRAINED (automatic when all jobs complete) - idle, ready to disable
↓
DISABLED (via `rch workers disable`) - completely offline
Use `rch workers enable` to return from DRAINING/DRAINED/DISABLED → HEALTHYVariants§
Healthy
Worker is healthy and accepting jobs.
Degraded
Worker is responding slowly.
Unreachable
Worker failed to respond to heartbeat.
Draining
Worker is not accepting new jobs (finishing current).
Drained
Worker has finished draining (no active jobs, idle).
Disabled
Worker is manually disabled.
Trait Implementations§
Source§impl Clone for WorkerStatus
impl Clone for WorkerStatus
Source§fn clone(&self) -> WorkerStatus
fn clone(&self) -> WorkerStatus
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 moreSource§impl Debug for WorkerStatus
impl Debug for WorkerStatus
Source§impl Default for WorkerStatus
impl Default for WorkerStatus
Source§fn default() -> WorkerStatus
fn default() -> WorkerStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkerStatus
impl<'de> Deserialize<'de> for WorkerStatus
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 PartialEq for WorkerStatus
impl PartialEq for WorkerStatus
Source§fn eq(&self, other: &WorkerStatus) -> bool
fn eq(&self, other: &WorkerStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkerStatus
impl Serialize for WorkerStatus
impl Copy for WorkerStatus
impl Eq for WorkerStatus
impl StructuralPartialEq for WorkerStatus
Auto Trait Implementations§
impl Freeze for WorkerStatus
impl RefUnwindSafe for WorkerStatus
impl Send for WorkerStatus
impl Sync for WorkerStatus
impl Unpin for WorkerStatus
impl UnsafeUnpin for WorkerStatus
impl UnwindSafe for WorkerStatus
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,
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.