Struct lightning_invoice::payment::RetryAttempts
source · [−]pub struct RetryAttempts(pub usize);
Expand description
Number of attempts to retry payment path failures for an Invoice
.
Note that this is the number of path failures, not full payment retries. For multi-path payments, if this is less than the total number of paths, we will never even retry all of the payment’s paths.
Tuple Fields
0: usize
Trait Implementations
sourceimpl Clone for RetryAttempts
impl Clone for RetryAttempts
sourcefn clone(&self) -> RetryAttempts
fn clone(&self) -> RetryAttempts
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RetryAttempts
impl Debug for RetryAttempts
sourceimpl Hash for RetryAttempts
impl Hash for RetryAttempts
sourceimpl PartialEq<RetryAttempts> for RetryAttempts
impl PartialEq<RetryAttempts> for RetryAttempts
sourcefn eq(&self, other: &RetryAttempts) -> bool
fn eq(&self, other: &RetryAttempts) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RetryAttempts) -> bool
fn ne(&self, other: &RetryAttempts) -> bool
This method tests for !=
.
impl Copy for RetryAttempts
impl Eq for RetryAttempts
impl StructuralEq for RetryAttempts
impl StructuralPartialEq for RetryAttempts
Auto Trait Implementations
impl RefUnwindSafe for RetryAttempts
impl Send for RetryAttempts
impl Sync for RetryAttempts
impl Unpin for RetryAttempts
impl UnwindSafe for RetryAttempts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more