pub struct DivergentTail {
pub common_point_lsn: u64,
pub to_lsn: u64,
pub records: Vec<TailRecord>,
}Expand description
The divergent tail removed from the live timeline: the records in
(common_point_lsn, to_lsn] that never reached quorum.
Fields§
§common_point_lsn: u64The common point — exclusive lower bound. Records at or below this LSN are kept; this is the recover-to-LSN target.
to_lsn: u64Inclusive upper bound — the deposed primary’s local frontier.
records: Vec<TailRecord>The tail records, in LSN order. May be shorter than the LSN span (e.g. sparse / coalesced records); the span is authoritative for the boundary, the records are what gets preserved.
Implementations§
Trait Implementations§
Source§impl Clone for DivergentTail
impl Clone for DivergentTail
Source§fn clone(&self) -> DivergentTail
fn clone(&self) -> DivergentTail
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 DivergentTail
impl Debug for DivergentTail
impl Eq for DivergentTail
Source§impl PartialEq for DivergentTail
impl PartialEq for DivergentTail
Source§fn eq(&self, other: &DivergentTail) -> bool
fn eq(&self, other: &DivergentTail) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DivergentTail
Auto Trait Implementations§
impl Freeze for DivergentTail
impl RefUnwindSafe for DivergentTail
impl Send for DivergentTail
impl Sync for DivergentTail
impl Unpin for DivergentTail
impl UnsafeUnpin for DivergentTail
impl UnwindSafe for DivergentTail
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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