pub type ConsensusVersion = ConsensusType;

Aliased Type§

enum ConsensusVersion {
    Bft,
    GenesisPraos,
}

Variants§

§

Bft

§

GenesisPraos

Implementations§

Trait Implementations§

source§

impl Arbitrary for ConsensusType

source§

fn arbitrary<G: Gen>(g: &mut G) -> Self

§

fn shrink(&self) -> Box<dyn Iterator<Item = Self>, Global>

source§

impl Clone for ConsensusType

source§

fn clone(&self) -> ConsensusType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ConfigParamVariant for ConsensusType

source§

fn to_payload(&self) -> Vec<u8>

source§

fn from_payload(payload: &[u8]) -> Result<Self, Error>

source§

impl Debug for ConsensusType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ConsensusType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl FromStr for ConsensusType

§

type Err = ParseError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<ConsensusType, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for ConsensusType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for ConsensusType

source§

fn cmp(&self, other: &ConsensusType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<ConsensusType> for ConsensusType

source§

fn eq(&self, other: &ConsensusType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<ConsensusType> for ConsensusType

source§

fn partial_cmp(&self, other: &ConsensusType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<&str> for ConsensusType

§

type Error = ParseError

The type returned in the event of a conversion error.
source§

fn try_from(s: &str) -> Result<ConsensusType, <Self as TryFrom<&str>>::Error>

Performs the conversion.
source§

impl Copy for ConsensusType

source§

impl Eq for ConsensusType

source§

impl StructuralEq for ConsensusType

source§

impl StructuralPartialEq for ConsensusType