pub enum Bolt12SemanticError {
Show 27 variants
AlreadyExpired,
UnsupportedChain,
UnexpectedChain,
MissingAmount,
InvalidAmount,
InsufficientAmount,
UnexpectedAmount,
UnsupportedCurrency,
UnknownRequiredFeatures,
UnexpectedFeatures,
MissingDescription,
MissingSigningPubkey,
InvalidSigningPubkey,
UnexpectedSigningPubkey,
MissingQuantity,
InvalidQuantity,
UnexpectedQuantity,
InvalidMetadata,
UnexpectedMetadata,
MissingPayerMetadata,
MissingPayerId,
DuplicatePaymentId,
MissingPaths,
InvalidPayInfo,
MissingCreationTime,
MissingPaymentHash,
MissingSignature,
}
Expand description
Error when interpreting a TLV stream as a specific type.
Variants§
AlreadyExpired
The current std::time::SystemTime
is past the offer or invoice’s expiration.
UnsupportedChain
The provided chain hash does not correspond to a supported chain.
UnexpectedChain
A chain was provided but was not expected.
MissingAmount
An amount was expected but was missing.
InvalidAmount
The amount exceeded the total bitcoin supply.
InsufficientAmount
An amount was provided but was not sufficient in value.
UnexpectedAmount
An amount was provided but was not expected.
UnsupportedCurrency
A currency was provided that is not supported.
UnknownRequiredFeatures
A feature was required but is unknown.
UnexpectedFeatures
Features were provided but were not expected.
MissingDescription
A required description was not provided.
MissingSigningPubkey
A signing pubkey was not provided.
InvalidSigningPubkey
A signing pubkey was provided but a different one was expected.
UnexpectedSigningPubkey
A signing pubkey was provided but was not expected.
MissingQuantity
A quantity was expected but was missing.
InvalidQuantity
An unsupported quantity was provided.
UnexpectedQuantity
A quantity or quantity bounds was provided but was not expected.
InvalidMetadata
Metadata could not be used to verify the offers message.
UnexpectedMetadata
Metadata was provided but was not expected.
MissingPayerMetadata
Payer metadata was expected but was missing.
MissingPayerId
A payer id was expected but was missing.
DuplicatePaymentId
The payment id for a refund or request is already in use.
MissingPaths
Blinded paths were expected but were missing.
InvalidPayInfo
The blinded payinfo given does not match the number of blinded path hops.
MissingCreationTime
An invoice creation time was expected but was missing.
MissingPaymentHash
An invoice payment hash was expected but was missing.
MissingSignature
A signature was expected but was missing.
Trait Implementations§
§impl Clone for Bolt12SemanticError
impl Clone for Bolt12SemanticError
§fn clone(&self) -> Bolt12SemanticError
fn clone(&self) -> Bolt12SemanticError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for Bolt12SemanticError
impl Debug for Bolt12SemanticError
§impl From<Bolt12SemanticError> for Bolt12ParseError
impl From<Bolt12SemanticError> for Bolt12ParseError
§fn from(error: Bolt12SemanticError) -> Bolt12ParseError
fn from(error: Bolt12SemanticError) -> Bolt12ParseError
§impl From<Bolt12SemanticError> for InvoiceError
impl From<Bolt12SemanticError> for InvoiceError
§fn from(error: Bolt12SemanticError) -> InvoiceError
fn from(error: Bolt12SemanticError) -> InvoiceError
§impl PartialEq for Bolt12SemanticError
impl PartialEq for Bolt12SemanticError
impl StructuralPartialEq for Bolt12SemanticError
Auto Trait Implementations§
impl Freeze for Bolt12SemanticError
impl RefUnwindSafe for Bolt12SemanticError
impl Send for Bolt12SemanticError
impl Sync for Bolt12SemanticError
impl Unpin for Bolt12SemanticError
impl UnwindSafe for Bolt12SemanticError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§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
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)
clone_to_uninit
)§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any
.§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>
T
in a tonic::Request