pub struct WorkerNode {
pub worker_id: String,
pub master_id: Option<String>,
pub process_id: Option<String>,
pub config: Option<Value>,
pub usage: Option<WorkerUsage>,
}Expand description
A worker’s node: which master it registered with, its process and configuration.
Fields§
§worker_id: StringIts ID.
master_id: Option<String>The master it registered with last.
process_id: Option<String>The process it runs in.
config: Option<Value>Its effective configuration, masked.
usage: Option<WorkerUsage>What it used, by part, as it last said (decision 463; written at most once a minute).
Trait Implementations§
Source§impl Clone for WorkerNode
impl Clone for WorkerNode
Source§fn clone(&self) -> WorkerNode
fn clone(&self) -> WorkerNode
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 WorkerNode
impl Debug for WorkerNode
Source§impl PartialEq for WorkerNode
impl PartialEq for WorkerNode
impl StructuralPartialEq for WorkerNode
Auto Trait Implementations§
impl Freeze for WorkerNode
impl RefUnwindSafe for WorkerNode
impl Send for WorkerNode
impl Sync for WorkerNode
impl Unpin for WorkerNode
impl UnsafeUnpin for WorkerNode
impl UnwindSafe for WorkerNode
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<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