pub struct RetryAction {
pub duration: Duration,
}Expand description
The action a RetryStrategy returns to indicate when to retry.
Contains the Duration to wait before the next retry attempt.
Fields§
§duration: DurationHow long to wait before retrying.
Implementations§
Trait Implementations§
Source§impl Clone for RetryAction
impl Clone for RetryAction
Source§fn clone(&self) -> RetryAction
fn clone(&self) -> RetryAction
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 moreAuto Trait Implementations§
impl Freeze for RetryAction
impl RefUnwindSafe for RetryAction
impl Send for RetryAction
impl Sync for RetryAction
impl Unpin for RetryAction
impl UnsafeUnpin for RetryAction
impl UnwindSafe for RetryAction
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