pub struct Exponential<S>where
S: Backoff,{ /* private fields */ }Trait Implementations§
Source§impl<S> Backoff for Exponential<S>where
S: Backoff,
impl<S> Backoff for Exponential<S>where
S: Backoff,
Source§fn next_retry(&mut self) -> Option<Duration>
fn next_retry(&mut self) -> Option<Duration>
Get the duration to wait for before attempting again
Source§fn exponential(self) -> Exponential<Self>where
Self: Sized,
fn exponential(self) -> Exponential<Self>where
Self: Sized,
Grow the backoff duration exponentially
Source§fn max_backoff(self, max: Duration) -> Max<Self>where
Self: Sized,
fn max_backoff(self, max: Duration) -> Max<Self>where
Self: Sized,
Set the maximum backoff duration
Source§fn min_backoff(self, min: Duration) -> Min<Self>where
Self: Sized,
fn min_backoff(self, min: Duration) -> Min<Self>where
Self: Sized,
Set the minimum backoff duration
Source§fn jitter(self, scale: f64) -> Jitter<Self>where
Self: Sized,
fn jitter(self, scale: f64) -> Jitter<Self>where
Self: Sized,
Randomize the backoff duration. Read more
fn num_attempts(self, num: u32) -> MaxAttempts<Self>where
Self: Sized,
fn deadline(self, deadline: Instant) -> Deadline<Self>where
Self: Sized,
Auto Trait Implementations§
impl<S> Freeze for Exponential<S>where
S: Freeze,
impl<S> RefUnwindSafe for Exponential<S>where
S: RefUnwindSafe,
impl<S> Send for Exponential<S>
impl<S> Sync for Exponential<S>where
S: Sync,
impl<S> Unpin for Exponential<S>where
S: Unpin,
impl<S> UnwindSafe for Exponential<S>where
S: UnwindSafe,
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