pub struct RollbackOutcome {
pub recovered_to_lsn: u64,
pub tail_lsns: u64,
pub rollback_file: Option<String>,
pub event_fired: bool,
pub role: NodeRole,
}Expand description
The result of a completed rejoin.
Fields§
§recovered_to_lsn: u64The LSN the node recovered to — the common point.
tail_lsns: u64Number of LSNs removed from the live timeline (0 when there was
no divergent tail).
rollback_file: Option<String>Where the discarded tail was preserved. None only when there was
no tail to preserve.
event_fired: boolWhether the loud operator event fired. Always true when a tail
was discarded; false for a clean rejoin with no tail.
role: NodeRoleThe role the node now plays — a replica of the new primary under the new term.
Implementations§
Source§impl RollbackOutcome
impl RollbackOutcome
Sourcepub fn rolled_back_tail(&self) -> bool
pub fn rolled_back_tail(&self) -> bool
True when a divergent tail was actually rolled back (as opposed to a clean rejoin with nothing to discard).
Trait Implementations§
Source§impl Clone for RollbackOutcome
impl Clone for RollbackOutcome
Source§fn clone(&self) -> RollbackOutcome
fn clone(&self) -> RollbackOutcome
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 RollbackOutcome
impl Debug for RollbackOutcome
impl Eq for RollbackOutcome
Source§impl PartialEq for RollbackOutcome
impl PartialEq for RollbackOutcome
Source§fn eq(&self, other: &RollbackOutcome) -> bool
fn eq(&self, other: &RollbackOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RollbackOutcome
Auto Trait Implementations§
impl Freeze for RollbackOutcome
impl RefUnwindSafe for RollbackOutcome
impl Send for RollbackOutcome
impl Sync for RollbackOutcome
impl Unpin for RollbackOutcome
impl UnsafeUnpin for RollbackOutcome
impl UnwindSafe for RollbackOutcome
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