Struct chain_impl_mockchain::key::BftLeaderId
source · pub struct BftLeaderId(pub(crate) PublicKey<BftVerificationAlg>);
Tuple Fields§
§0: PublicKey<BftVerificationAlg>
Implementations§
source§impl BftLeaderId
impl BftLeaderId
pub fn as_public_key(&self) -> &PublicKey<BftVerificationAlg>
Trait Implementations§
source§impl Arbitrary for BftLeaderId
impl Arbitrary for BftLeaderId
source§impl Arbitrary for BftLeaderId
impl Arbitrary for BftLeaderId
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<BftLeaderId>
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
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl AsRef<[u8]> for BftLeaderId
impl AsRef<[u8]> for BftLeaderId
source§impl Clone for BftLeaderId
impl Clone for BftLeaderId
source§fn clone(&self) -> BftLeaderId
fn clone(&self) -> BftLeaderId
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 BftLeaderId
impl ConfigParamVariant for BftLeaderId
source§impl Debug for BftLeaderId
impl Debug for BftLeaderId
source§impl DeserializeFromSlice for BftLeaderId
impl DeserializeFromSlice for BftLeaderId
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<PublicKey<Ed25519>> for BftLeaderId
impl From<PublicKey<Ed25519>> for BftLeaderId
source§fn from(v: PublicKey<BftVerificationAlg>) -> Self
fn from(v: PublicKey<BftVerificationAlg>) -> Self
Converts to this type from the input type.
source§impl Hash for BftLeaderId
impl Hash for BftLeaderId
source§impl PartialEq<BftLeaderId> for BftLeaderId
impl PartialEq<BftLeaderId> for BftLeaderId
source§fn eq(&self, other: &BftLeaderId) -> bool
fn eq(&self, other: &BftLeaderId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BftLeaderId
impl Serialize for BftLeaderId
impl Eq for BftLeaderId
impl StructuralEq for BftLeaderId
impl StructuralPartialEq for BftLeaderId
Auto Trait Implementations§
impl RefUnwindSafe for BftLeaderId
impl Send for BftLeaderId
impl Sync for BftLeaderId
impl Unpin for BftLeaderId
impl UnwindSafe for BftLeaderId
Blanket Implementations§
§impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere T: AsRef<[u8]>,
§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)