pub struct Worker {Show 15 fields
pub id: WorkerId,
pub name: String,
pub address: String,
pub capabilities: WorkerCapabilities,
pub capacity: WorkerCapacity,
pub usage: WorkerUsage,
pub status: WorkerStatus,
pub last_heartbeat: Instant,
pub registered_at: Instant,
pub last_health_check: Option<Instant>,
pub health_check_failures: u32,
pub tasks_completed: u64,
pub tasks_failed: u64,
pub version: String,
pub metadata: HashMap<String, String>,
}Expand description
Worker node information.
Fields§
§id: WorkerIdWorker ID
name: StringWorker name/hostname
address: StringNetwork address
capabilities: WorkerCapabilitiesWorker capabilities
capacity: WorkerCapacityWorker capacity
usage: WorkerUsageCurrent resource usage
status: WorkerStatusWorker status
last_heartbeat: InstantLast heartbeat time
registered_at: InstantRegistration time
last_health_check: Option<Instant>Last health check
health_check_failures: u32Health check failures
tasks_completed: u64Total tasks completed
tasks_failed: u64Total tasks failed
version: StringWorker version
metadata: HashMap<String, String>Custom metadata
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Worker
impl RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnsafeUnpin for Worker
impl UnwindSafe for Worker
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