pub enum ConsensusError {
InvalidProposal(String),
InvalidVote(String),
InvalidCertificate(String),
SafetyViolation(String),
NotLeader {
view: ViewNumber,
leader: ValidatorId,
},
StaleMessage {
msg_view: ViewNumber,
current_view: ViewNumber,
},
MissingBlock(BlockHash),
NetworkError(String),
EpochMismatch {
expected: EpochNumber,
got: EpochNumber,
},
Equivocation(EquivocationProof),
}Variants§
InvalidProposal(String)
InvalidVote(String)
InvalidCertificate(String)
SafetyViolation(String)
NotLeader
StaleMessage
MissingBlock(BlockHash)
NetworkError(String)
EpochMismatch
Equivocation(EquivocationProof)
Trait Implementations§
Source§impl Debug for ConsensusError
impl Debug for ConsensusError
Auto Trait Implementations§
impl Freeze for ConsensusError
impl RefUnwindSafe for ConsensusError
impl Send for ConsensusError
impl Sync for ConsensusError
impl Unpin for ConsensusError
impl UnsafeUnpin for ConsensusError
impl UnwindSafe for ConsensusError
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