Enum primitives::epoch::EpochNumber
source · pub enum EpochNumber {
Number(u64),
Earliest,
LatestCheckpoint,
LatestFinalized,
LatestConfirmed,
LatestState,
LatestMined,
}
Expand description
Uniquely identifies epoch.
Variants§
Number(u64)
Epoch number within canon blockchain.
Earliest
Earliest block (checkpoint).
LatestCheckpoint
The latest checkpoint (cur_era_genesis)
LatestFinalized
The latest finalized (confirmed by PoS) block
LatestConfirmed
The latest confirmed block (based on the estimation of the confirmation meter)
LatestState
Latest block with state.
LatestMined
Latest mined block.
Trait Implementations§
source§impl Clone for EpochNumber
impl Clone for EpochNumber
source§fn clone(&self) -> EpochNumber
fn clone(&self) -> EpochNumber
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 EpochNumber
impl Debug for EpochNumber
source§impl<'de> Deserialize<'de> for EpochNumber
impl<'de> Deserialize<'de> for EpochNumber
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for EpochNumber
impl Hash for EpochNumber
source§impl Into<EpochNumber> for u64
impl Into<EpochNumber> for u64
source§fn into(self) -> EpochNumber
fn into(self) -> EpochNumber
Converts this type into the (usually inferred) input type.
source§impl PartialEq for EpochNumber
impl PartialEq for EpochNumber
source§fn eq(&self, other: &EpochNumber) -> bool
fn eq(&self, other: &EpochNumber) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EpochNumber
impl Serialize for EpochNumber
impl Eq for EpochNumber
impl StructuralPartialEq for EpochNumber
Auto Trait Implementations§
impl RefUnwindSafe for EpochNumber
impl Send for EpochNumber
impl Sync for EpochNumber
impl Unpin for EpochNumber
impl UnwindSafe for EpochNumber
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