Enum bitcoin::network::serialize::Error[][src]

pub enum Error {
    Io(Error),
    Base58(Error),
    Bech32(Error),
    ByteOrder(Error),
    UnexpectedNetworkMagic {
        expected: u32,
        actual: u32,
    },
    OversizedVectorAllocation {
        requested: usize,
        max: usize,
    },
    InvalidChecksum {
        expected: [u8; 4],
        actual: [u8; 4],
    },
    UnknownNetworkMagic(u32),
    ParseFailed(&'static str),
    UnsupportedWitnessVersion(u8),
    UnsupportedSegwitFlag(u8),
    UnrecognizedNetworkCommand(String),
    UnexpectedHexDigit(char),
}

Serialization error

Variants

And I/O error

Base58 encoding error

Bech32 encoding error

Error from the byteorder crate

Network magic was not expected

Fields of UnexpectedNetworkMagic

The expected network magic

The unexpected network magic

Tried to allocate an oversized vector

Fields of OversizedVectorAllocation

The capacity requested

The maximum capacity

Checksum was invalid

Fields of InvalidChecksum

The expected checksum

The invalid checksum

Network magic was unknown

Parsing error

Unsupported witness version

Unsupported Segwit flag

Unrecognized network command

Unexpected hex digit

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