pub enum ConsensusAlgorithm {
PoS,
PBFT,
Tendermint,
}Expand description
The consensus algorithm used to produce a block
Variants§
Trait Implementations§
Source§impl Clone for ConsensusAlgorithm
impl Clone for ConsensusAlgorithm
Source§fn clone(&self) -> ConsensusAlgorithm
fn clone(&self) -> ConsensusAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConsensusAlgorithm
Source§impl Debug for ConsensusAlgorithm
impl Debug for ConsensusAlgorithm
Source§impl<'de> Deserialize<'de> for ConsensusAlgorithm
impl<'de> Deserialize<'de> for ConsensusAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConsensusAlgorithm
Source§impl PartialEq for ConsensusAlgorithm
impl PartialEq for ConsensusAlgorithm
Source§fn eq(&self, other: &ConsensusAlgorithm) -> bool
fn eq(&self, other: &ConsensusAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConsensusAlgorithm
impl Serialize for ConsensusAlgorithm
impl StructuralPartialEq for ConsensusAlgorithm
Auto Trait Implementations§
impl Freeze for ConsensusAlgorithm
impl RefUnwindSafe for ConsensusAlgorithm
impl Send for ConsensusAlgorithm
impl Sync for ConsensusAlgorithm
impl Unpin for ConsensusAlgorithm
impl UnsafeUnpin for ConsensusAlgorithm
impl UnwindSafe for ConsensusAlgorithm
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