pub struct WorkerHealth {
pub worker_id: WorkerId,
pub healthy: bool,
pub load: f64,
pub available_storage: u64,
pub rack_id: Option<String>,
pub zone_id: Option<String>,
pub last_updated: Instant,
}Expand description
Worker health information.
Fields§
§worker_id: WorkerIdWorker ID
healthy: boolHealth status
load: f64Load (0.0-1.0)
available_storage: u64Available storage (bytes)
rack_id: Option<String>Rack ID
zone_id: Option<String>Zone ID
last_updated: InstantLast updated
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 moreAuto 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