Enum lightning_invoice::ParseOrSemanticError [−][src]
pub enum ParseOrSemanticError {
ParseError(ParseError),
SemanticError(SemanticError),
}
Expand description
Indicates that something went wrong while parsing or validating the invoice. Parsing errors should be mostly seen as opaque and are only there for debugging reasons. Semantic errors like wrong signatures, missing fields etc. could mean that someone tampered with the invoice.
Variants
ParseError(ParseError)
Tuple Fields
0: ParseError
The invoice couldn’t be decoded
SemanticError(SemanticError)
Tuple Fields
The invoice could be decoded but violates the BOLT11 standard
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ParseOrSemanticError
impl Send for ParseOrSemanticError
impl Sync for ParseOrSemanticError
impl Unpin for ParseOrSemanticError
impl UnwindSafe for ParseOrSemanticError
Blanket Implementations
Mutably borrows from an owned value. Read more