pub struct WorkerHealth {
pub lease_expiry_count: u64,
pub last_heartbeat_ms: Option<i64>,
pub quarantined: bool,
}Expand description
Per-worker health statistics maintained by the scheduler or control plane.
Fields§
§lease_expiry_count: u64Total number of times this worker’s leases have been expired and requeued.
last_heartbeat_ms: Option<i64>Last time a heartbeat was observed from this worker (epoch ms).
quarantined: boolWhether this worker is currently quarantined (too many consecutive expirations).
Trait Implementations§
Source§impl Clone for WorkerHealth
impl Clone for WorkerHealth
Source§fn clone(&self) -> WorkerHealth
fn clone(&self) -> WorkerHealth
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 WorkerHealth
impl Debug for WorkerHealth
Source§impl Default for WorkerHealth
impl Default for WorkerHealth
Source§fn default() -> WorkerHealth
fn default() -> WorkerHealth
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkerHealth
impl RefUnwindSafe for WorkerHealth
impl Send for WorkerHealth
impl Sync for WorkerHealth
impl Unpin for WorkerHealth
impl UnsafeUnpin for WorkerHealth
impl UnwindSafe for WorkerHealth
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