Enum paxakos::error::PrepareError [−][src]
pub enum PrepareError<I: Invocation> {
Abstained(AbstainOf<I>),
Supplanted(CoordNumOf<I>),
Converged(CoordNumOf<I>, Option<(CoordNumOf<I>, Arc<LogEntryOf<I>>)>),
Passive,
ShutDown,
}
Expand description
Reason preparing round for proposals failed.
Variants
Abstained(AbstainOf<I>)
Node abstained from voting.
Tuple Fields of Abstained
0: AbstainOf<I>
Supplanted(CoordNumOf<I>)
Another node es running for leader with a greater coordination number.
Tuple Fields of Supplanted
0: CoordNumOf<I>
Converged(CoordNumOf<I>, Option<(CoordNumOf<I>, Arc<LogEntryOf<I>>)>)
Round is already settled.
Tuple Fields of Converged
0: CoordNumOf<I>
1: Option<(CoordNumOf<I>, Arc<LogEntryOf<I>>)>
Node is in passive mode.
Node is shut down.
Trait Implementations
Performs the conversion.
type Error = PrepareError<I>
type Error = PrepareError<I>
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl<I> RefUnwindSafe for PrepareError<I> where
<I as Invocation>::Abstain: RefUnwindSafe,
<I as Invocation>::CoordNum: RefUnwindSafe,
<<I as Invocation>::State as State>::LogEntry: RefUnwindSafe,
impl<I> Send for PrepareError<I>
impl<I> Sync for PrepareError<I>
impl<I> Unpin for PrepareError<I> where
<I as Invocation>::Abstain: Unpin,
impl<I> UnwindSafe for PrepareError<I> where
<I as Invocation>::Abstain: UnwindSafe,
<I as Invocation>::CoordNum: UnwindSafe,
<<I as Invocation>::State as State>::LogEntry: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more