pub enum LeadershipConsensus {
Bft(LeadershipData),
GenesisPraos(LeadershipData),
}
Variants§
Bft(LeadershipData)
GenesisPraos(LeadershipData)
Implementations§
source§impl LeadershipConsensus
impl LeadershipConsensus
fn verify_version(&self, block_version: BlockVersion) -> Verification
fn verify_leader(&self, block_header: &Header) -> Verification
fn is_leader(&self, leader: &Leader, date: BlockDate) -> LeaderOutput
Auto Trait Implementations§
impl RefUnwindSafe for LeadershipConsensus
impl Send for LeadershipConsensus
impl Sync for LeadershipConsensus
impl Unpin for LeadershipConsensus
impl UnwindSafe for LeadershipConsensus
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