Enum lightning::ln::channelmanager::Retry
source · pub enum Retry {
Attempts(usize),
Timeout(Duration),
}
Expand description
Strategies available to retry payment path failures.
Variants§
Attempts(usize)
Max number of attempts to retry payment.
Each attempt may be multiple HTLCs along multiple paths if the router decides to split up a
retry, and may retry multiple failed HTLCs at once if they failed around the same time and
were retried along a route from a single call to Router::find_route_with_id
.
Timeout(Duration)
Available on non-crate feature
no-std
only.Time elapsed before abandoning retries for a payment. At least one attempt at payment is made;
see PaymentParameters::expiry_time
to avoid any attempt at payment after a specific time.
Trait Implementations§
source§impl PartialEq<Retry> for Retry
impl PartialEq<Retry> for Retry
impl Copy for Retry
impl Eq for Retry
impl StructuralEq for Retry
impl StructuralPartialEq for Retry
Auto Trait Implementations§
impl RefUnwindSafe for Retry
impl Send for Retry
impl Sync for Retry
impl Unpin for Retry
impl UnwindSafe for Retry
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