pub enum Bolt11ParseError {
Show 18 variants
Bech32Error(Error),
ParseAmountError(ParseIntError),
MalformedSignature(Error),
BadPrefix,
UnknownCurrency,
UnknownSiPrefix,
MalformedHRP,
TooShortDataPart,
UnexpectedEndOfTaggedFields,
DescriptionDecodeError(Utf8Error),
PaddingError,
IntegerOverflowError,
InvalidSegWitProgramLength,
InvalidPubKeyHashLength,
InvalidScriptHashLength,
InvalidRecoveryId,
InvalidSliceLength(String),
Skip,
}
Expand description
Errors that indicate what is wrong with the invoice. They have some granularity for debug reasons, but should generally result in an “invalid BOLT11 invoice” message for the user.
Variants§
Bech32Error(Error)
ParseAmountError(ParseIntError)
MalformedSignature(Error)
BadPrefix
UnknownCurrency
UnknownSiPrefix
MalformedHRP
TooShortDataPart
UnexpectedEndOfTaggedFields
DescriptionDecodeError(Utf8Error)
PaddingError
IntegerOverflowError
InvalidSegWitProgramLength
InvalidPubKeyHashLength
InvalidScriptHashLength
InvalidRecoveryId
InvalidSliceLength(String)
Skip
Not an error, but used internally to signal that a part of the invoice should be ignored according to BOLT11
Trait Implementations§
source§impl Clone for Bolt11ParseError
impl Clone for Bolt11ParseError
source§fn clone(&self) -> Bolt11ParseError
fn clone(&self) -> Bolt11ParseError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Bolt11ParseError
impl Debug for Bolt11ParseError
source§impl Display for Bolt11ParseError
impl Display for Bolt11ParseError
source§impl Error for Bolt11ParseError
Available on crate feature std
only.
impl Error for Bolt11ParseError
Available on crate feature
std
only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Bolt11ParseError> for ParseOrSemanticError
impl From<Bolt11ParseError> for ParseOrSemanticError
source§fn from(e: Bolt11ParseError) -> Self
fn from(e: Bolt11ParseError) -> Self
Converts to this type from the input type.
source§impl From<Error> for Bolt11ParseError
impl From<Error> for Bolt11ParseError
source§impl From<Error> for Bolt11ParseError
impl From<Error> for Bolt11ParseError
source§impl From<ParseIntError> for Bolt11ParseError
impl From<ParseIntError> for Bolt11ParseError
source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<Utf8Error> for Bolt11ParseError
impl From<Utf8Error> for Bolt11ParseError
source§impl PartialEq for Bolt11ParseError
impl PartialEq for Bolt11ParseError
impl Eq for Bolt11ParseError
impl StructuralPartialEq for Bolt11ParseError
Auto Trait Implementations§
impl Freeze for Bolt11ParseError
impl RefUnwindSafe for Bolt11ParseError
impl Send for Bolt11ParseError
impl Sync for Bolt11ParseError
impl Unpin for Bolt11ParseError
impl UnwindSafe for Bolt11ParseError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)