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
Io(Error)
And I/O error
Base58(Error)
Base58 encoding error
Bech32(Error)
Bech32 encoding error
ByteOrder(Error)
Error from the byteorder
crate
UnexpectedNetworkMagic
Network magic was not expected
Fields of UnexpectedNetworkMagic
expected: u32 | The expected network magic |
actual: u32 | The unexpected network magic |
OversizedVectorAllocation
Tried to allocate an oversized vector
Fields of OversizedVectorAllocation
requested: usize | The capacity requested |
max: usize | The maximum capacity |
InvalidChecksum
Checksum was invalid
Fields of InvalidChecksum
expected: [u8; 4] | The expected checksum |
actual: [u8; 4] | The invalid checksum |
UnknownNetworkMagic(u32)
Network magic was unknown
ParseFailed(&'static str)
Parsing error
UnsupportedWitnessVersion(u8)
Unsupported witness version
UnsupportedSegwitFlag(u8)
Unsupported Segwit flag
UnrecognizedNetworkCommand(String)
Unrecognized network command
UnexpectedHexDigit(char)
Unexpected hex digit
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