Enum lightning::offers::parse::ParseError
source · pub enum ParseError {
InvalidContinuation,
InvalidBech32Hrp,
Bech32(Error),
Decode(DecodeError),
InvalidSemantics(SemanticError),
InvalidSignature(Error),
}
Expand description
Error when parsing a bech32 encoded message using str::parse
.
Variants§
InvalidContinuation
The bech32 encoding does not conform to the BOLT 12 requirements for continuing messages across multiple parts (i.e., ‘+’ followed by whitespace).
InvalidBech32Hrp
The bech32 encoding’s human-readable part does not match what was expected for the message being parsed.
Bech32(Error)
The string could not be bech32 decoded.
Decode(DecodeError)
The bech32 decoded string could not be decoded as the expected message type.
InvalidSemantics(SemanticError)
The parsed message has invalid semantics.
InvalidSignature(Error)
The parsed message has an invalid signature.
Trait Implementations§
source§impl Debug for ParseError
impl Debug for ParseError
source§impl From<DecodeError> for ParseError
impl From<DecodeError> for ParseError
source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ParseError
impl From<Error> for ParseError
source§impl From<Error> for ParseError
impl From<Error> for ParseError
source§impl From<SemanticError> for ParseError
impl From<SemanticError> for ParseError
source§fn from(error: SemanticError) -> Self
fn from(error: SemanticError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ParseError> for ParseError
impl PartialEq<ParseError> for ParseError
source§fn eq(&self, other: &ParseError) -> bool
fn eq(&self, other: &ParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.