pub enum ConsensusEvent {
Committed {
height: Height,
block: Block,
qc: QuorumCert,
},
NeedProposal {
height: Height,
round: Round,
},
RoundTimeout {
height: Height,
round: Round,
},
Equivocation {
validator: String,
height: Height,
},
}Expand description
Consensus events that the Engine can emit.
Variants§
Committed
Engine has committed a block at a height.
NeedProposal
Engine needs the application to create a proposal.
RoundTimeout
Engine timed out and advanced to a new round.
Equivocation
Equivocation detected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConsensusEvent
impl RefUnwindSafe for ConsensusEvent
impl Send for ConsensusEvent
impl Sync for ConsensusEvent
impl Unpin for ConsensusEvent
impl UnsafeUnpin for ConsensusEvent
impl UnwindSafe for ConsensusEvent
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