pub enum PaymentStatus {
Created,
Inflight,
Success,
Failed,
}Expand description
The status of a payment, will update as the payment progresses.
The transfer path for payment status is Created -> Inflight -> Success | Failed.
MPP Behavior: A single session may involve multiple attempts (HTLCs) to fulfill the total amount.
Variants§
Created
Initial status. A payment session is created, but no HTLC has been dispatched.
Inflight
The first hop AddTlc is sent successfully and waiting for the response.
MPP Logic: Status
Inflightmeans at least one attempt is still not inSuccess, payment needs more retrying or waiting for HTLC settlement.
Success
The payment is finished. All related HTLCs are successfully settled, and the aggregate amount equals the total requested amount.
Failed
The payment session has terminated. HTLCs have failed and the target amount cannot be fulfilled after exhausting all retries.
Implementations§
Trait Implementations§
Source§impl Clone for PaymentStatus
impl Clone for PaymentStatus
Source§fn clone(&self) -> PaymentStatus
fn clone(&self) -> PaymentStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PaymentStatus
impl Debug for PaymentStatus
Source§impl<'de> Deserialize<'de> for PaymentStatus
impl<'de> Deserialize<'de> for PaymentStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PaymentStatus
impl PartialEq for PaymentStatus
Source§fn eq(&self, other: &PaymentStatus) -> bool
fn eq(&self, other: &PaymentStatus) -> bool
self and other values to be equal, and is used by ==.