pub enum ConsensusError<Ctx>where
Ctx: Context,{
UnexpectedResume(Resume<Ctx>, &'static str),
ProposerNotFound(<Ctx as Context>::Height, Round),
DecisionNotFound(<Ctx as Context>::Height, Round),
DriverProposalNotFound(<Ctx as Context>::Height, Round),
FullProposalNotFound(<Ctx as Context>::Height, Round),
DriverProcess(Error<Ctx>),
ValidatorSetNotFound(<Ctx as Context>::Height),
InvalidCommitCertificate(CommitCertificate<Ctx>, CertificateError<Ctx>),
MissingPolkaCertificate(<Ctx as Context>::Height, Round, <<Ctx as Context>::Value as Value>::Id, &'static str),
WalCorrupted(Arc<Error>),
}Expand description
The types of error that can be emitted by the consensus process.
Variants§
UnexpectedResume(Resume<Ctx>, &'static str)
The consensus process was resumed with a value which does not match the expected type of resume value.
ProposerNotFound(<Ctx as Context>::Height, Round)
The proposer was not found at the given height and round.
DecisionNotFound(<Ctx as Context>::Height, Round)
State machine has no decision in commit step.
DriverProposalNotFound(<Ctx as Context>::Height, Round)
Driver proposal not found in commit step.
FullProposalNotFound(<Ctx as Context>::Height, Round)
Full proposal not found in commit step.
DriverProcess(Error<Ctx>)
The driver failed to process an input.
ValidatorSetNotFound(<Ctx as Context>::Height)
The validator set was not found at the given height.
InvalidCommitCertificate(CommitCertificate<Ctx>, CertificateError<Ctx>)
The certificate is invalid.
MissingPolkaCertificate(<Ctx as Context>::Height, Round, <<Ctx as Context>::Value as Value>::Id, &'static str)
Missing polka certificate.
WalCorrupted(Arc<Error>)
The write-ahead log is corrupted.
Trait Implementations§
Source§impl<Ctx> Error for Error<Ctx>
impl<Ctx> Error for Error<Ctx>
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()
Auto Trait Implementations§
impl<Ctx> Freeze for Error<Ctx>where
<Ctx as Context>::Height: Freeze,
<<Ctx as Context>::Value as Value>::Id: Freeze,
<Ctx as Context>::Address: Freeze,
<Ctx as Context>::ValidatorSet: Freeze,
<Ctx as Context>::Vote: Freeze,
<<Ctx as Context>::SigningScheme as SigningScheme>::Signature: Freeze,
<Ctx as Context>::Proposal: Freeze,
<Ctx as Context>::Extension: Freeze,
impl<Ctx> !RefUnwindSafe for Error<Ctx>
impl<Ctx> Send for Error<Ctx>
impl<Ctx> Sync for Error<Ctx>
impl<Ctx> Unpin for Error<Ctx>where
<Ctx as Context>::Height: Unpin,
<<Ctx as Context>::Value as Value>::Id: Unpin,
<Ctx as Context>::Address: Unpin,
<Ctx as Context>::ValidatorSet: Unpin,
<Ctx as Context>::Vote: Unpin,
<<Ctx as Context>::SigningScheme as SigningScheme>::Signature: Unpin,
<Ctx as Context>::Proposal: Unpin,
<Ctx as Context>::Extension: Unpin,
impl<Ctx> UnsafeUnpin for Error<Ctx>where
<Ctx as Context>::Height: UnsafeUnpin,
<<Ctx as Context>::Value as Value>::Id: UnsafeUnpin,
<Ctx as Context>::Address: UnsafeUnpin,
<Ctx as Context>::ValidatorSet: UnsafeUnpin,
<Ctx as Context>::Vote: UnsafeUnpin,
<<Ctx as Context>::SigningScheme as SigningScheme>::Signature: UnsafeUnpin,
<Ctx as Context>::Proposal: UnsafeUnpin,
<Ctx as Context>::Extension: UnsafeUnpin,
impl<Ctx> !UnwindSafe for Error<Ctx>
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> 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> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage