Enum lnpbp_bech32::Error
source · pub enum Error {
Bech32Error(Error),
NotStrictEncoded(Error),
NotBitcoinHash(Error),
WrongPrefix,
WrongVariant,
NoEncodingPrefix,
UnknownRawDataEncoding(u8),
DeflateEncoding,
InflateError(String),
}
Expand description
Errors generated by Bech32 conversion functions (both parsing and type-specific conversion errors)
Variants§
Bech32Error(Error)
bech32 string parse error - {0}
NotStrictEncoded(Error)
payload data are not strictly encoded - {0}
NotBitcoinHash(Error)
payload data are not a bitcoin hash - {0}
WrongPrefix
Requested object type does not match used Bech32 HRP
WrongVariant
bech32m encoding must be used instead of legacy bech32
NoEncodingPrefix
payload must start with encoding prefix
UnknownRawDataEncoding(u8)
provided raw data use unknown encoding version {0}
DeflateEncoding
can not encode raw data with DEFLATE algorithm
InflateError(String)
error inflating compressed data from payload: {0}
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.