pub enum RetryableSendFailure {
PaymentExpired,
RouteNotFound,
DuplicatePayment,
OnionPacketSizeExceeded,
}Expand description
Indicates an immediate error on ChannelManager::send_payment. Further errors may be
surfaced later via Event::PaymentPathFailed and Event::PaymentFailed.
Variants§
PaymentExpired
The provided PaymentParameters::expiry_time indicated that the payment has expired.
Note that this error is not caused by Retry::Timeout.
RouteNotFound
We were unable to find a route to the destination.
DuplicatePayment
Indicates that a payment for the provided PaymentId is already in-flight and has not
yet completed (i.e. generated an Event::PaymentSent or Event::PaymentFailed).
OnionPacketSizeExceeded
The RecipientOnionFields::payment_metadata, RecipientOnionFields::custom_tlvs, or
BlindedPaymentPaths provided are too large and caused us to exceed the maximum onion
packet size of 1300 bytes.
Trait Implementations§
Source§impl Clone for RetryableSendFailure
impl Clone for RetryableSendFailure
Source§fn clone(&self) -> RetryableSendFailure
fn clone(&self) -> RetryableSendFailure
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 RetryableSendFailure
impl Debug for RetryableSendFailure
Source§impl PartialEq for RetryableSendFailure
impl PartialEq for RetryableSendFailure
impl Eq for RetryableSendFailure
impl StructuralPartialEq for RetryableSendFailure
Auto Trait Implementations§
impl Freeze for RetryableSendFailure
impl RefUnwindSafe for RetryableSendFailure
impl Send for RetryableSendFailure
impl Sync for RetryableSendFailure
impl Unpin for RetryableSendFailure
impl UnwindSafe for RetryableSendFailure
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