pub struct GossipDerivedSignals<'a, S>where
S: ClusterSignals + ?Sized,{ /* private fields */ }Expand description
ClusterSignals view that gets member health from gossip observations and
delegates watermarks/catch-up evidence to the existing control-plane source.
Implementations§
Source§impl<'a, S> GossipDerivedSignals<'a, S>where
S: ClusterSignals + ?Sized,
impl<'a, S> GossipDerivedSignals<'a, S>where
S: ClusterSignals + ?Sized,
pub fn new( gossip: &'a GossipMemberSignals, delegate: &'a S, now: Duration, policy: HealthPolicy, ) -> GossipDerivedSignals<'a, S>
Trait Implementations§
Source§impl<S> ClusterSignals for GossipDerivedSignals<'_, S>where
S: ClusterSignals + ?Sized,
impl<S> ClusterSignals for GossipDerivedSignals<'_, S>where
S: ClusterSignals + ?Sized,
Source§fn member_signals(&self, member: &NodeIdentity) -> MemberSignals
fn member_signals(&self, member: &NodeIdentity) -> MemberSignals
Current raw health signals for
member.Source§fn commit_watermark(
&self,
collection: &CollectionId,
range_id: RangeId,
) -> CommitWatermark
fn commit_watermark( &self, collection: &CollectionId, range_id: RangeId, ) -> CommitWatermark
The range commit watermark a promotion candidate must cover for
(collection, range_id) — the highest (term, lsn) known durable under
the range’s commit policy.Source§fn catch_up(
&self,
collection: &CollectionId,
range_id: RangeId,
candidate: &NodeIdentity,
) -> Option<CatchUpEvidence>
fn catch_up( &self, collection: &CollectionId, range_id: RangeId, candidate: &NodeIdentity, ) -> Option<CatchUpEvidence>
The catch-up evidence the supervisor has for
candidate on the range, or
None if the candidate’s progress is unknown (in which case it cannot be
promoted — fail closed).Auto Trait Implementations§
impl<'a, S> Forget for GossipDerivedSignals<'a, S>where
S: ?Sized,
impl<'a, S> Freeze for GossipDerivedSignals<'a, S>
impl<'a, S> RefUnwindSafe for GossipDerivedSignals<'a, S>
impl<'a, S> Send for GossipDerivedSignals<'a, S>
impl<'a, S> Sync for GossipDerivedSignals<'a, S>
impl<'a, S> Unpin for GossipDerivedSignals<'a, S>
impl<'a, S> UnsafeUnpin for GossipDerivedSignals<'a, S>
impl<'a, S> UnwindSafe for GossipDerivedSignals<'a, S>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request