pub struct LinearBackoffStrategy { /* private fields */ }Expand description
Performs backoffs in multiples of a duration
Implementations§
Trait Implementations§
Source§impl BackoffStrategy for LinearBackoffStrategy
impl BackoffStrategy for LinearBackoffStrategy
fn backoff_duration(&self, repeats: u32) -> Duration
Source§impl Clone for LinearBackoffStrategy
impl Clone for LinearBackoffStrategy
Source§fn clone(&self) -> LinearBackoffStrategy
fn clone(&self) -> LinearBackoffStrategy
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 LinearBackoffStrategy
impl RefUnwindSafe for LinearBackoffStrategy
impl Send for LinearBackoffStrategy
impl Sync for LinearBackoffStrategy
impl Unpin for LinearBackoffStrategy
impl UnwindSafe for LinearBackoffStrategy
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