Enum lightning::ln::channelmanager::RetryableSendFailure
source · pub enum RetryableSendFailure {
PaymentExpired,
RouteNotFound,
DuplicatePayment,
}
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
).
Trait Implementations§
source§impl Clone for RetryableSendFailure
impl Clone for RetryableSendFailure
source§fn clone(&self) -> RetryableSendFailure
fn clone(&self) -> RetryableSendFailure
Returns a copy 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
source§fn eq(&self, other: &RetryableSendFailure) -> bool
fn eq(&self, other: &RetryableSendFailure) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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