pub enum ConsensusType {
Bft,
GenesisPraos,
}
Variants§
Implementations§
Trait Implementations§
source§impl Arbitrary for ConsensusType
impl Arbitrary for ConsensusType
source§impl Clone for ConsensusType
impl Clone for ConsensusType
source§fn clone(&self) -> ConsensusType
fn clone(&self) -> ConsensusType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ConfigParamVariant for ConsensusType
impl ConfigParamVariant for ConsensusType
source§impl Debug for ConsensusType
impl Debug for ConsensusType
source§impl Display for ConsensusType
impl Display for ConsensusType
source§impl<'_derivative_strum> From<&'_derivative_strum ConsensusType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ConsensusType> for &'static str
source§fn from(x: &'_derivative_strum ConsensusType) -> &'static str
fn from(x: &'_derivative_strum ConsensusType) -> &'static str
Converts to this type from the input type.
source§impl From<ConsensusType> for &'static str
impl From<ConsensusType> for &'static str
source§fn from(x: ConsensusType) -> &'static str
fn from(x: ConsensusType) -> &'static str
Converts to this type from the input type.
source§impl FromStr for ConsensusType
impl FromStr for ConsensusType
source§impl Hash for ConsensusType
impl Hash for ConsensusType
source§impl Ord for ConsensusType
impl Ord for ConsensusType
source§fn cmp(&self, other: &ConsensusType) -> Ordering
fn cmp(&self, other: &ConsensusType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ConsensusType> for ConsensusType
impl PartialEq<ConsensusType> for ConsensusType
source§fn eq(&self, other: &ConsensusType) -> bool
fn eq(&self, other: &ConsensusType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ConsensusType> for ConsensusType
impl PartialOrd<ConsensusType> for ConsensusType
source§fn partial_cmp(&self, other: &ConsensusType) -> Option<Ordering>
fn partial_cmp(&self, other: &ConsensusType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<&str> for ConsensusType
impl TryFrom<&str> for ConsensusType
impl Copy for ConsensusType
impl Eq for ConsensusType
impl StructuralEq for ConsensusType
impl StructuralPartialEq for ConsensusType
Auto Trait Implementations§
impl RefUnwindSafe for ConsensusType
impl Send for ConsensusType
impl Sync for ConsensusType
impl Unpin for ConsensusType
impl UnwindSafe for ConsensusType
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