pub struct MasterRecord {
pub master_id: String,
pub process_id: String,
pub host: String,
pub schedr_version: String,
pub config: Value,
pub started_at: Timestamp,
pub heard_at: Timestamp,
pub leading: bool,
pub problems: Vec<NodeProblem>,
pub usage: Option<NodeUsage>,
}Expand description
A master as stored.
Fields§
§master_id: StringIts ID.
process_id: StringThe process it runs in.
host: StringIts host name.
schedr_version: StringIts schedr version.
config: ValueIts effective configuration, masked.
started_at: TimestampWhen it started.
heard_at: TimestampWhen it was last heard from.
leading: boolWhether it holds the lease now (the leader).
problems: Vec<NodeProblem>Its problems when it last wrote its row.
usage: Option<NodeUsage>What its process used then (decision 463).
Trait Implementations§
Source§impl Clone for MasterRecord
impl Clone for MasterRecord
Source§fn clone(&self) -> MasterRecord
fn clone(&self) -> MasterRecord
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 MasterRecord
impl Debug for MasterRecord
Source§impl PartialEq for MasterRecord
impl PartialEq for MasterRecord
impl StructuralPartialEq for MasterRecord
Auto Trait Implementations§
impl Freeze for MasterRecord
impl RefUnwindSafe for MasterRecord
impl Send for MasterRecord
impl Sync for MasterRecord
impl Unpin for MasterRecord
impl UnsafeUnpin for MasterRecord
impl UnwindSafe for MasterRecord
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