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
Secp256k1(Error)
secp-related error
Serialize(Error)
Serialization error
Network(Error)
Network error
SpvBadProofOfWork
The header hash is not below the target
SpvBadTarget
The target
field of a block header did not match the expected difficulty
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error