pub struct LiveNodeFacts {
pub cached: CachedNodeFacts,
pub liveness: Liveness,
/* private fields */
}Expand description
Cached facts plus liveness: what the placement engine reads.
Fields§
§cached: CachedNodeFactsVerified facts (base plus deltas) with the receiver-assigned tier.
liveness: LivenessLiveness from membership or the last direct contact.
Implementations§
Source§impl LiveNodeFacts
impl LiveNodeFacts
Sourcepub fn new(cached: CachedNodeFacts, liveness: Liveness) -> Self
pub fn new(cached: CachedNodeFacts, liveness: Liveness) -> Self
Facts as verified, with liveness.
Sourcepub fn restrict_to_routes(&mut self, routes: &[String])
pub fn restrict_to_routes(&mut self, routes: &[String])
Hide every runtime capability whose adapter route is not in
routes (the routes the node’s workload-host advertises). A node
that probes a container engine but serves no container adapter is
then not offered a container variant it would always refuse.
Trait Implementations§
Source§impl Clone for LiveNodeFacts
impl Clone for LiveNodeFacts
Source§impl Debug for LiveNodeFacts
impl Debug for LiveNodeFacts
Source§impl PlacementFacts for LiveNodeFacts
impl PlacementFacts for LiveNodeFacts
Source§fn load(&self) -> Option<f64>
fn load(&self) -> Option<f64>
Share of capabilities busy or reserved; unknown for an empty block.
Source§fn capabilities(&self) -> &[Capability]
fn capabilities(&self) -> &[Capability]
Advertised capabilities (open vocabulary).
Source§fn trust_tier(&self) -> TrustTier
fn trust_tier(&self) -> TrustTier
Trust tier assigned by the operator.
Source§fn facts_expire_at_ms(&self) -> Option<u64>
fn facts_expire_at_ms(&self) -> Option<u64>
When the advertised facts expire (ms since the Unix epoch), or
None if they carry no TTL.Auto Trait Implementations§
impl Freeze for LiveNodeFacts
impl RefUnwindSafe for LiveNodeFacts
impl Send for LiveNodeFacts
impl Sync for LiveNodeFacts
impl Unpin for LiveNodeFacts
impl UnsafeUnpin for LiveNodeFacts
impl UnwindSafe for LiveNodeFacts
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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