pub enum Error {
Show 13 variants
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),
}
Expand description
Encoding 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
OversizedVectorAllocation
Tried to allocate an oversized vector
InvalidChecksum
Checksum was invalid
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§
source§impl Error for Error
impl Error for Error
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()