pub struct Retry<E = Error> { /* private fields */ }Expand description
Exponential-backoff retry helper.
Implementations§
Source§impl<E> Retry<E>
impl<E> Retry<E>
Sourcepub fn new(cfg: RetryConfig<E>) -> Self
pub fn new(cfg: RetryConfig<E>) -> Self
Build a Retry with the given config.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Retry<E>
impl<E = Error> !RefUnwindSafe for Retry<E>
impl<E> Send for Retry<E>
impl<E> Sync for Retry<E>
impl<E> Unpin for Retry<E>
impl<E> UnsafeUnpin for Retry<E>
impl<E = Error> !UnwindSafe for Retry<E>
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