Struct gr::backoff::ExponentialBackoff
source · pub struct ExponentialBackoff<'a, R> { /* private fields */ }Expand description
ExponentialBackoff wraps an HttpRunner and retries requests with an exponential backoff retry mechanism.
Implementations§
source§impl<'a, R> ExponentialBackoff<'a, R>
impl<'a, R> ExponentialBackoff<'a, R>
source§impl<'a, R: HttpRunner<Response = Response>> ExponentialBackoff<'a, R>
impl<'a, R: HttpRunner<Response = Response>> ExponentialBackoff<'a, R>
Auto Trait Implementations§
impl<'a, R> Freeze for ExponentialBackoff<'a, R>
impl<'a, R> RefUnwindSafe for ExponentialBackoff<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for ExponentialBackoff<'a, R>
impl<'a, R> Sync for ExponentialBackoff<'a, R>
impl<'a, R> Unpin for ExponentialBackoff<'a, R>
impl<'a, R> UnwindSafe for ExponentialBackoff<'a, R>where
R: RefUnwindSafe,
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