pub struct ResetTimerBackoff<B, C = SystemClock> { /* private fields */ }
Expand description
A Backoff
wrapper that resets after a fixed duration has elapsed.
Implementations§
Source§impl<B> ResetTimerBackoff<B>where
B: Backoff,
impl<B> ResetTimerBackoff<B>where
B: Backoff,
pub fn new(backoff: B, reset_duration: Duration) -> ResetTimerBackoff<B>
Trait Implementations§
Source§impl<B, C> Backoff for ResetTimerBackoff<B, C>
impl<B, C> Backoff for ResetTimerBackoff<B, C>
Auto Trait Implementations§
impl<B, C> Freeze for ResetTimerBackoff<B, C>
impl<B, C> RefUnwindSafe for ResetTimerBackoff<B, C>where
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<B, C> Send for ResetTimerBackoff<B, C>
impl<B, C> Sync for ResetTimerBackoff<B, C>
impl<B, C> Unpin for ResetTimerBackoff<B, C>
impl<B, C> UnwindSafe for ResetTimerBackoff<B, C>where
B: UnwindSafe,
C: 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