Enum bitcoin::util::Error[][src]

pub enum Error {
    Secp256k1(Error),
    Serialize(Error),
    Network(Error),
    SpvBadProofOfWork,
    SpvBadTarget,
}

A general error code, other errors should implement conversions to/from this if appropriate.

Variants

secp-related error

Serialization error

Network error

The header hash is not below the target

The target field of a block header did not match the expected difficulty

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

The lower-level cause of this error, if any. Read more

This method is soft-deprecated. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error