Enum ckb_chain_spec::consensus::NextBlockEpoch[][src]

pub enum NextBlockEpoch {
    HeadBlock(EpochExt),
    NonHeadBlock(EpochExt),
}
Expand description

Corresponding epoch information of next block

Variants

HeadBlock(EpochExt)

Next block is the head block of epoch

Tuple Fields of HeadBlock

0: EpochExt
NonHeadBlock(EpochExt)

Next block is not the head block of epoch

Tuple Fields of NonHeadBlock

0: EpochExt

Implementations

Returns epoch information

Is a head block of epoch

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

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.