pub type UpdateVoterId = BftLeaderId;

Aliased Type§

struct UpdateVoterId(pub(crate) PublicKey<Ed25519>);

Fields§

§0: PublicKey<Ed25519>

Implementations§

Trait Implementations§

source§

impl Arbitrary for BftLeaderId

source§

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

§

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

source§

impl Arbitrary for BftLeaderId

§

type Parameters = ()

The type of parameters that arbitrary_with accepts for configuration of the generated Strategy. Parameters must implement Default.
§

type Strategy = BoxedStrategy<BftLeaderId>

The type of Strategy used to generate values of type Self.
source§

fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more
§

fn arbitrary() -> Self::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). Read more
source§

impl AsRef<[u8]> for BftLeaderId

source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for BftLeaderId

source§

fn clone(&self) -> BftLeaderId

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 BftLeaderId

source§

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

source§

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

source§

impl Debug for BftLeaderId

source§

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

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

impl DeserializeFromSlice for BftLeaderId

source§

fn deserialize_from_slice(codec: &mut Codec<&[u8]>) -> Result<Self, ReadError>

§

fn deserialize_validate_from_slice( codec: &mut Codec<&[u8]> ) -> Result<(), ReadError>

source§

impl From<[u8; 32]> for BftLeaderId

source§

fn from(v: [u8; 32]) -> BftLeaderId

Converts to this type from the input type.
source§

impl From<PublicKey<Ed25519>> for BftLeaderId

source§

fn from(v: PublicKey<BftVerificationAlg>) -> Self

Converts to this type from the input type.
source§

impl Hash for BftLeaderId

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 PartialEq<BftLeaderId> for BftLeaderId

source§

fn eq(&self, other: &BftLeaderId) -> 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 Serialize for BftLeaderId

source§

fn serialized_size(&self) -> usize

Default implementation, not efficient, not recommended to use it
source§

fn serialize<W: Write>(&self, codec: &mut Codec<W>) -> Result<(), WriteError>

§

fn serialize_as_vec(&self) -> Result<Vec<u8, Global>, WriteError>

Convenience method to serialize into a byte vector.
source§

impl Eq for BftLeaderId

source§

impl StructuralEq for BftLeaderId

source§

impl StructuralPartialEq for BftLeaderId