Enum ckb_verification::HeaderErrorKind
source · [−]pub enum HeaderErrorKind {
InvalidParent,
Pow,
Timestamp,
Number,
Epoch,
Version,
}
Expand description
A list specifying categories of ckb header error.
This list is intended to grow over time and it is not recommended to exhaustively match against it.
It is used with the HeaderError
.
Variants
InvalidParent
It indicates that the underlying error is InvalidParentError
.
Pow
It indicates that the underlying error is PowError
.
Timestamp
It indicates that the underlying error is TimestampError
.
Number
It indicates that the underlying error is NumberError
.
Epoch
It indicates that the underlying error is EpochError
.
Version
It indicates that the underlying error is BlockVersionError
.
Implementations
Creates HeaderError
base on HeaderErrorKind
with an error as the reason.
Creates HeaderError
base on HeaderErrorKind
with a simple string as the reason.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for HeaderErrorKind
impl Send for HeaderErrorKind
impl Sync for HeaderErrorKind
impl Unpin for HeaderErrorKind
impl UnwindSafe for HeaderErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more