pub struct ExponentialBackoffStrategy;Expand description
Performs backoffs in millisecond powers of 2
Trait Implementations§
Source§impl BackoffStrategy for ExponentialBackoffStrategy
impl BackoffStrategy for ExponentialBackoffStrategy
fn backoff_duration(&self, repeats: u32) -> Duration
Source§impl Clone for ExponentialBackoffStrategy
impl Clone for ExponentialBackoffStrategy
Source§fn clone(&self) -> ExponentialBackoffStrategy
fn clone(&self) -> ExponentialBackoffStrategy
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 ExponentialBackoffStrategy
impl RefUnwindSafe for ExponentialBackoffStrategy
impl Send for ExponentialBackoffStrategy
impl Sync for ExponentialBackoffStrategy
impl Unpin for ExponentialBackoffStrategy
impl UnwindSafe for ExponentialBackoffStrategy
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