Enum paxakos::error::AcceptError
source · 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
sourceimpl<I: Invocation> Debug for AcceptError<I>
impl<I: Invocation> Debug for AcceptError<I>
sourceimpl<I: Invocation> Display for AcceptError<I>
impl<I: Invocation> Display for AcceptError<I>
sourceimpl<I: Invocation> Error for AcceptError<I>where
Self: Debug + Display,
impl<I: Invocation> Error for AcceptError<I>where
Self: Debug + Display,
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl<I: Invocation> From<AcceptError<I>> for AppendError<I>
impl<I: Invocation> From<AcceptError<I>> for AppendError<I>
sourcefn from(e: AcceptError<I>) -> Self
fn from(e: AcceptError<I>) -> Self
Converts to this type from the input type.
sourceimpl<I: Invocation> From<ShutDown> for AcceptError<I>
impl<I: Invocation> From<ShutDown> for AcceptError<I>
sourceimpl<I: Invocation> TryFrom<AcceptError<I>> for Conflict<CoordNumOf<I>, LogEntryOf<I>>
impl<I: Invocation> TryFrom<AcceptError<I>> for Conflict<CoordNumOf<I>, LogEntryOf<I>>
type Error = AcceptError<I>
type Error = AcceptError<I>
The type returned in the event of a conversion error.
sourcefn try_from(error: AcceptError<I>) -> Result<Self, Self::Error>
fn try_from(error: AcceptError<I>) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl<I> RefUnwindSafe for AcceptError<I>where
<I as Invocation>::CoordNum: RefUnwindSafe,
<<I as Invocation>::State as State>::LogEntry: RefUnwindSafe,
<I as Invocation>::Nay: RefUnwindSafe,
impl<I> Send for AcceptError<I>
impl<I> Sync for AcceptError<I>
impl<I> Unpin for AcceptError<I>where
<I as Invocation>::Nay: Unpin,
impl<I> UnwindSafe for AcceptError<I>where
<I as Invocation>::CoordNum: UnwindSafe,
<<I as Invocation>::State as State>::LogEntry: RefUnwindSafe,
<I as Invocation>::Nay: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more