Enum ckb_traits::BlockEpoch[][src]

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

Block is the tail block of epoch, provides extrat statistics for next epoch generating or verifying

Show fields

Fields of TailBlock

epoch: EpochExt

epoch information

epoch_uncles_count: u64

epoch uncles count

epoch_duration_in_milliseconds: u64

epoch duration

NonTailBlock

Non tail block of epoch

Show fields

Fields of NonTailBlock

epoch: EpochExt

epoch information

Implementations

Return block’s corresponding epoch information

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.