pub struct Retry {
pub attempts: u32,
pub backoff: Duration,
}Expand description
How many times a transient failure is worth repeating, and how long to wait
first. A server that sends Retry-After overrides the delay.
Fields§
§attempts: u32§backoff: DurationImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Retry
impl RefUnwindSafe for Retry
impl Send for Retry
impl Sync for Retry
impl Unpin for Retry
impl UnsafeUnpin 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