pub enum AcceptError<I: Invocation> {
Supplanted(CoordNumOf<I>),
Converged(CoordNumOf<I>, Option<(CoordNumOf<I>, Arc<LogEntryOf<I>>)>),
Passive,
Rejected(NayOf<I>),
ShutDown,
}Expand description
A proposal could not be accepted.
Variants§
Supplanted(CoordNumOf<I>)
Another node has become leader with a greater coordination number.
Converged(CoordNumOf<I>, Option<(CoordNumOf<I>, Arc<LogEntryOf<I>>)>)
Round is already settled.
Passive
Node is in passive mode.
Rejected(NayOf<I>)
Node rejected the proposal.
ShutDown
Node is shut down.
Trait Implementations§
Source§impl<I: Invocation> Debug for AcceptError<I>
impl<I: Invocation> Debug for AcceptError<I>
Source§impl<I: Invocation> Display for AcceptError<I>
impl<I: Invocation> Display for AcceptError<I>
Source§impl<I: Invocation> Error for AcceptError<I>
impl<I: Invocation> Error for AcceptError<I>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<I: Invocation> From<AcceptError<I>> for AppendError<I>
impl<I: Invocation> From<AcceptError<I>> for AppendError<I>
Source§fn from(e: AcceptError<I>) -> Self
fn from(e: AcceptError<I>) -> Self
Converts to this type from the input type.
Source§impl<I: Invocation> From<ShutDown> for AcceptError<I>
impl<I: Invocation> From<ShutDown> for AcceptError<I>
Source§impl<I: Invocation> TryFrom<AcceptError<I>> for Conflict<CoordNumOf<I>, LogEntryOf<I>>
impl<I: Invocation> TryFrom<AcceptError<I>> for Conflict<CoordNumOf<I>, LogEntryOf<I>>
Source§type Error = AcceptError<I>
type Error = AcceptError<I>
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<I> Freeze for AcceptError<I>
impl<I> RefUnwindSafe for AcceptError<I>where
<I as Invocation>::CoordNum: RefUnwindSafe,
<I as Invocation>::Nay: RefUnwindSafe,
<<I as Invocation>::State as State>::LogEntry: RefUnwindSafe,
impl<I> Send for AcceptError<I>
impl<I> Sync for AcceptError<I>
impl<I> Unpin for AcceptError<I>
impl<I> UnwindSafe for AcceptError<I>where
<I as Invocation>::CoordNum: UnwindSafe,
<I as Invocation>::Nay: UnwindSafe,
<<I as Invocation>::State as State>::LogEntry: RefUnwindSafe,
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> 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