Enum chain_impl_mockchain::header::version::BlockVersion
source · pub enum BlockVersion {
Genesis,
Ed25519Signed,
KesVrfproof,
}
Variants§
Implementations§
source§impl BlockVersion
impl BlockVersion
pub fn from_u8(v: u8) -> Option<Self>
pub fn to_u8(self) -> u8
pub const fn get_size(self) -> NonZeroUsize
pub const fn get_auth_size(self) -> NonZeroUsize
pub fn to_consensus_type(self) -> Option<ConsensusType>
Trait Implementations§
source§impl Arbitrary for BlockVersion
impl Arbitrary for BlockVersion
source§impl Clone for BlockVersion
impl Clone for BlockVersion
source§fn clone(&self) -> BlockVersion
fn clone(&self) -> BlockVersion
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 Debug for BlockVersion
impl Debug for BlockVersion
source§impl From<BlockVersion> for AnyBlockVersion
impl From<BlockVersion> for AnyBlockVersion
source§fn from(version: BlockVersion) -> Self
fn from(version: BlockVersion) -> Self
Converts to this type from the input type.
source§impl PartialEq<BlockVersion> for AnyBlockVersion
impl PartialEq<BlockVersion> for AnyBlockVersion
source§fn eq(&self, other: &BlockVersion) -> bool
fn eq(&self, other: &BlockVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<BlockVersion> for BlockVersion
impl PartialEq<BlockVersion> for BlockVersion
source§fn eq(&self, other: &BlockVersion) -> bool
fn eq(&self, other: &BlockVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BlockVersion
impl Eq for BlockVersion
impl StructuralEq for BlockVersion
impl StructuralPartialEq for BlockVersion
Auto Trait Implementations§
impl RefUnwindSafe for BlockVersion
impl Send for BlockVersion
impl Sync for BlockVersion
impl Unpin for BlockVersion
impl UnwindSafe for BlockVersion
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