pub enum RecentPaymentDetails {
AwaitingInvoice {
payment_id: PaymentId,
},
Pending {
payment_id: PaymentId,
payment_hash: PaymentHash,
total_msat: u64,
},
Fulfilled {
payment_id: PaymentId,
payment_hash: Option<PaymentHash>,
},
Abandoned {
payment_id: PaymentId,
payment_hash: PaymentHash,
},
}
Expand description
Used by ChannelManager::list_recent_payments
to express the status of recent payments.
These include payments that have yet to find a successful path, or have unresolved HTLCs.
Variants§
AwaitingInvoice
When an invoice was requested and thus a payment has not yet been sent.
Fields
payment_id: PaymentId
A user-provided identifier in ChannelManager::send_payment
used to uniquely identify
a payment and ensure idempotency in LDK.
Pending
When a payment is still being sent and awaiting successful delivery.
Fields
payment_id: PaymentId
A user-provided identifier in ChannelManager::send_payment
used to uniquely identify
a payment and ensure idempotency in LDK.
payment_hash: PaymentHash
Hash of the payment that is currently being sent but has yet to be fulfilled or abandoned.
Fulfilled
When a pending payment is fulfilled, we continue tracking it until all pending HTLCs have
been resolved. Upon receiving Event::PaymentSent
, we delay for a few minutes before the
payment is removed from tracking.
Fields
payment_id: PaymentId
A user-provided identifier in ChannelManager::send_payment
used to uniquely identify
a payment and ensure idempotency in LDK.
payment_hash: Option<PaymentHash>
Hash of the payment that was claimed. None
for serializations of ChannelManager
made before LDK version 0.0.104.
Abandoned
After a payment’s retries are exhausted per the provided Retry
, or it is explicitly
abandoned via ChannelManager::abandon_payment
, it is marked as abandoned until all
pending HTLCs for this payment resolve and an Event::PaymentFailed
is generated.
Fields
payment_id: PaymentId
A user-provided identifier in ChannelManager::send_payment
used to uniquely identify
a payment and ensure idempotency in LDK.
payment_hash: PaymentHash
Hash of the payment that we have given up trying to send.
Trait Implementations§
§impl Debug for RecentPaymentDetails
impl Debug for RecentPaymentDetails
§impl PartialEq for RecentPaymentDetails
impl PartialEq for RecentPaymentDetails
impl StructuralPartialEq for RecentPaymentDetails
Auto Trait Implementations§
impl Freeze for RecentPaymentDetails
impl RefUnwindSafe for RecentPaymentDetails
impl Send for RecentPaymentDetails
impl Sync for RecentPaymentDetails
impl Unpin for RecentPaymentDetails
impl UnwindSafe for RecentPaymentDetails
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
§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