Enum Bolt11ParseError
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§
§impl Clone for Bolt11ParseError
impl Clone for Bolt11ParseError
§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 more§impl Debug for Bolt11ParseError
impl Debug for Bolt11ParseError
§impl Display for Bolt11ParseError
impl Display for Bolt11ParseError
§impl Error for Bolt11ParseError
impl Error for Bolt11ParseError
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()
§impl From<Bolt11ParseError> for InvoiceError
impl From<Bolt11ParseError> for InvoiceError
§fn from(err: Bolt11ParseError) -> InvoiceError
fn from(err: Bolt11ParseError) -> InvoiceError
Converts to this type from the input type.
§impl From<Bolt11ParseError> for ParseOrSemanticError
impl From<Bolt11ParseError> for ParseOrSemanticError
§fn from(e: Bolt11ParseError) -> ParseOrSemanticError
fn from(e: Bolt11ParseError) -> ParseOrSemanticError
Converts to this type from the input type.
§impl From<Error> for Bolt11ParseError
impl From<Error> for Bolt11ParseError
§fn from(e: Error) -> Bolt11ParseError
fn from(e: Error) -> Bolt11ParseError
Converts to this type from the input type.
§impl From<Error> for Bolt11ParseError
impl From<Error> for Bolt11ParseError
§fn from(e: Error) -> Bolt11ParseError
fn from(e: Error) -> Bolt11ParseError
Converts to this type from the input type.
§impl From<ParseIntError> for Bolt11ParseError
impl From<ParseIntError> for Bolt11ParseError
§fn from(e: ParseIntError) -> Bolt11ParseError
fn from(e: ParseIntError) -> Bolt11ParseError
Converts to this type from the input type.
§impl From<Utf8Error> for Bolt11ParseError
impl From<Utf8Error> for Bolt11ParseError
§fn from(e: Utf8Error) -> Bolt11ParseError
fn from(e: Utf8Error) -> Bolt11ParseError
Converts to this type from the input type.
§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request