Enum ckb_traits::BlockEpoch
source · [−]pub enum BlockEpoch {
TailBlock {
epoch: EpochExt,
epoch_uncles_count: u64,
epoch_duration_in_milliseconds: u64,
},
NonTailBlock {
epoch: EpochExt,
},
}
Expand description
Progress of block’s corresponding epoch
Variants
TailBlock
Fields
epoch: EpochExt
epoch information
epoch_uncles_count: u64
epoch uncles count
epoch_duration_in_milliseconds: u64
epoch duration
Block is the tail block of epoch, provides extrat statistics for next epoch generating or verifying
NonTailBlock
Fields
epoch: EpochExt
epoch information
Non tail block of epoch
Implementations
sourceimpl BlockEpoch
impl BlockEpoch
Auto Trait Implementations
impl RefUnwindSafe for BlockEpoch
impl Send for BlockEpoch
impl Sync for BlockEpoch
impl Unpin for BlockEpoch
impl UnwindSafe for BlockEpoch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more