pub struct WorkerRecord {Show 16 fields
pub id: String,
pub incarnation: String,
pub state: WorkerState,
pub protocol_version: String,
pub schedr_version: String,
pub queues: Vec<String>,
pub slots: u32,
pub log_endpoint: String,
pub registered_at: Timestamp,
pub last_heartbeat_at: Timestamp,
pub offline_at: Option<Timestamp>,
pub running: u32,
pub drained: bool,
pub warnings: Vec<WorkerWarning>,
pub watcher_slots: u32,
pub watcher_hosts: Vec<WatcherHostRecord>,
}Expand description
A worker in the registry.
Fields§
§id: StringIts ID.
incarnation: StringThe incarnation it last registered with.
state: WorkerStateIts state.
protocol_version: StringIts protocol version.
schedr_version: StringIts schedr version.
queues: Vec<String>The queues it serves.
slots: u32Its task slots.
log_endpoint: StringWhere its log endpoint listens.
registered_at: TimestampWhen it last registered.
last_heartbeat_at: TimestampWhen the master last recorded a sign of life.
offline_at: Option<Timestamp>When it went offline or was lost.
running: u32Its attempts still running (no end recorded).
drained: boolWhether it is drained for maintenance (no new tasks until resumed).
warnings: Vec<WorkerWarning>What is wrong with it now, as it last reported.
watcher_slots: u32Its slots for wait steps.
watcher_hosts: Vec<WatcherHostRecord>The processes running its wait steps, as its last heartbeat said.
Trait Implementations§
Source§impl Clone for WorkerRecord
impl Clone for WorkerRecord
Source§fn clone(&self) -> WorkerRecord
fn clone(&self) -> WorkerRecord
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 WorkerRecord
impl Debug for WorkerRecord
impl Eq for WorkerRecord
Source§impl PartialEq for WorkerRecord
impl PartialEq for WorkerRecord
impl StructuralPartialEq for WorkerRecord
Auto Trait Implementations§
impl Freeze for WorkerRecord
impl RefUnwindSafe for WorkerRecord
impl Send for WorkerRecord
impl Sync for WorkerRecord
impl Unpin for WorkerRecord
impl UnsafeUnpin for WorkerRecord
impl UnwindSafe for WorkerRecord
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more