Struct tokio_retry::RetryIf
source · pub struct RetryIf<I, A, C>{ /* private fields */ }
Expand description
Future that drives multiple attempts at an action via a retry strategy. Retries are only attempted if
the Error
returned by the future satisfies a given condition.
Implementations§
Trait Implementations§
source§impl<I, A, C> Future for RetryIf<I, A, C>
impl<I, A, C> Future for RetryIf<I, A, C>
impl<'pin, I, A, C> Unpin for RetryIf<I, A, C>
Auto Trait Implementations§
impl<I, A, C> !Freeze for RetryIf<I, A, C>
impl<I, A, C> !RefUnwindSafe for RetryIf<I, A, C>
impl<I, A, C> Send for RetryIf<I, A, C>
impl<I, A, C> Sync for RetryIf<I, A, C>
impl<I, A, C> !UnwindSafe for RetryIf<I, A, C>
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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more