Enum ckb_verification::EpochError [−][src]
pub enum EpochError {
Malformed {
value: EpochNumberWithFraction,
},
NonContinuous {
current: EpochNumberWithFraction,
parent: EpochNumberWithFraction,
},
TargetMismatch {
expected: u32,
actual: u32,
},
NumberMismatch {
expected: u64,
actual: u64,
},
}Expand description
Errors due to the fact that the block epoch is not expected.
Variants
The format of header epoch is malformed.
Fields of Malformed
value: EpochNumberWithFractionThe malformed header epoch.
The header epoch is not continuous.
Fields of NonContinuous
current: EpochNumberWithFractionThe current header epoch.
parent: EpochNumberWithFractionThe parent header epoch.
The compact-target of block epoch is unexpected.
Fields of TargetMismatch
The number of block epoch is unexpected.
Fields of NumberMismatch
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for EpochError
impl Send for EpochError
impl Sync for EpochError
impl Unpin for EpochError
impl UnwindSafe for EpochError
Blanket Implementations
Mutably borrows from an owned value. Read more