pub struct MasterNode<'a> {
pub master_id: &'a str,
pub process_id: &'a str,
pub host: &'a str,
pub schedr_version: &'a str,
pub config: &'a Value,
pub started_at: Timestamp,
pub problems: &'a [NodeProblem],
pub usage: Option<&'a NodeUsage>,
}Expand description
A master as it heartbeats.
Fields§
§master_id: &'a strIts ID: its lease holder’s.
process_id: &'a strThe process it runs in (shared with a worker in standalone).
host: &'a strIts host name.
schedr_version: &'a strIts schedr version.
config: &'a ValueIts effective configuration, masked.
started_at: TimestampWhen it started.
problems: &'a [NodeProblem]Its problems now.
usage: Option<&'a NodeUsage>What its process uses now (decision 463); none without /proc.
Trait Implementations§
Source§impl<'a> Clone for MasterNode<'a>
impl<'a> Clone for MasterNode<'a>
Source§fn clone(&self) -> MasterNode<'a>
fn clone(&self) -> MasterNode<'a>
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<'a> Debug for MasterNode<'a>
impl<'a> Debug for MasterNode<'a>
Source§impl<'a> PartialEq for MasterNode<'a>
impl<'a> PartialEq for MasterNode<'a>
impl<'a> StructuralPartialEq for MasterNode<'a>
Auto Trait Implementations§
impl<'a> Freeze for MasterNode<'a>
impl<'a> RefUnwindSafe for MasterNode<'a>
impl<'a> Send for MasterNode<'a>
impl<'a> Sync for MasterNode<'a>
impl<'a> Unpin for MasterNode<'a>
impl<'a> UnsafeUnpin for MasterNode<'a>
impl<'a> UnwindSafe for MasterNode<'a>
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