pub enum Error<Ctx>where
Ctx: Context,{
NoProposer(Ctx::Height, Round),
ProposerNotFound(Ctx::Address),
ValidatorNotFound(Ctx::Address),
InvalidProposalHeight {
proposal_height: Ctx::Height,
consensus_height: Ctx::Height,
},
InvalidVoteHeight {
vote_height: Ctx::Height,
consensus_height: Ctx::Height,
},
InvalidCertificateHeight {
certificate_height: Ctx::Height,
consensus_height: Ctx::Height,
},
CertificateNotFound {
round: Round,
value_id: <Ctx::Value as Value>::Id,
},
}Expand description
The type of errors that can be yielded by the Driver.
Variants§
NoProposer(Ctx::Height, Round)
No proposer was set for this round
ProposerNotFound(Ctx::Address)
Proposer not found
ValidatorNotFound(Ctx::Address)
Validator not found in validator set
InvalidProposalHeight
Received a proposal for another height
InvalidVoteHeight
Received a vote for another height
InvalidCertificateHeight
Received a certificate for another height
Fields
CertificateNotFound
Commit certificate not found for the given round and value
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()
impl<Ctx> Eq for Error<Ctx>where
Ctx: Context,
Auto Trait Implementations§
impl<Ctx> Freeze for Error<Ctx>
impl<Ctx> RefUnwindSafe for Error<Ctx>where
<Ctx as Context>::Height: RefUnwindSafe,
<Ctx as Context>::Address: RefUnwindSafe,
<<Ctx as Context>::Value as Value>::Id: RefUnwindSafe,
impl<Ctx> Send for Error<Ctx>
impl<Ctx> Sync for Error<Ctx>
impl<Ctx> Unpin for Error<Ctx>
impl<Ctx> UnsafeUnpin for Error<Ctx>where
<Ctx as Context>::Height: UnsafeUnpin,
<Ctx as Context>::Address: UnsafeUnpin,
<<Ctx as Context>::Value as Value>::Id: UnsafeUnpin,
impl<Ctx> UnwindSafe for Error<Ctx>where
<Ctx as Context>::Height: UnwindSafe,
<Ctx as Context>::Address: UnwindSafe,
<<Ctx as Context>::Value as Value>::Id: UnwindSafe,
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