Enum ckb_verification::HeaderErrorKind [−][src]
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
It indicates that the underlying error is InvalidParentError.
It indicates that the underlying error is PowError.
It indicates that the underlying error is TimestampError.
It indicates that the underlying error is NumberError.
It indicates that the underlying error is EpochError.
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