pub enum Bolt12PaymentError {
UnexpectedInvoice,
DuplicateInvoice,
UnknownRequiredFeatures,
SendingFailed(RetryableSendFailure),
BlindedPathCreationFailed,
}Expand description
An error when attempting to pay a Bolt12Invoice.
Variants§
UnexpectedInvoice
The invoice was not requested.
DuplicateInvoice
Payment for an invoice with the corresponding PaymentId was already initiated.
UnknownRequiredFeatures
The invoice was valid for the corresponding PaymentId, but required unknown features.
SendingFailed(RetryableSendFailure)
The invoice was valid for the corresponding PaymentId, but sending the payment failed.
BlindedPathCreationFailed
Failed to create a blinded path back to ourselves.
We attempted to initiate payment to a StaticInvoice but failed to create a reply path for
our HeldHtlcAvailable message.
Trait Implementations§
Source§impl Clone for Bolt12PaymentError
impl Clone for Bolt12PaymentError
Source§fn clone(&self) -> Bolt12PaymentError
fn clone(&self) -> Bolt12PaymentError
Returns a duplicate 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 Bolt12PaymentError
impl Debug for Bolt12PaymentError
Source§impl PartialEq for Bolt12PaymentError
impl PartialEq for Bolt12PaymentError
impl Eq for Bolt12PaymentError
impl StructuralPartialEq for Bolt12PaymentError
Auto Trait Implementations§
impl Freeze for Bolt12PaymentError
impl RefUnwindSafe for Bolt12PaymentError
impl Send for Bolt12PaymentError
impl Sync for Bolt12PaymentError
impl Unpin for Bolt12PaymentError
impl UnwindSafe for Bolt12PaymentError
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