pub struct Retry<S: Sleeper, B, N, Fn, Fut> { /* private fields */ }
Expand description
Retry implementation.
Implementations§
Trait Implementations§
source§impl<S, B, N, Fn, Fut, I, E> Future for Retry<S, B, N, Fn, Fut>where
S: Sleeper,
B: Backoff,
N: Notify<E>,
Fn: FnMut() -> Fut,
Fut: Future<Output = Result<I, Error<E>>>,
impl<S, B, N, Fn, Fut, I, E> Future for Retry<S, B, N, Fn, Fut>where
S: Sleeper,
B: Backoff,
N: Notify<E>,
Fn: FnMut() -> Fut,
Fut: Future<Output = Result<I, Error<E>>>,
impl<'__pin, S: Sleeper, B, N, Fn, Fut> Unpin for Retry<S, B, N, Fn, Fut>where
__Origin<'__pin, S, B, N, Fn, Fut>: Unpin,
Auto Trait Implementations§
impl<S, B, N, Fn, Fut> RefUnwindSafe for Retry<S, B, N, Fn, Fut>where
B: RefUnwindSafe,
Fn: RefUnwindSafe,
Fut: RefUnwindSafe,
N: RefUnwindSafe,
S: RefUnwindSafe,
<S as Sleeper>::Sleep: RefUnwindSafe,
impl<S, B, N, Fn, Fut> Send for Retry<S, B, N, Fn, Fut>where
B: Send,
Fn: Send,
Fut: Send,
N: Send,
S: Send,
impl<S, B, N, Fn, Fut> Sync for Retry<S, B, N, Fn, Fut>where
B: Sync,
Fn: Sync,
Fut: Sync,
N: Sync,
S: Sync,
<S as Sleeper>::Sleep: Sync,
impl<S, B, N, Fn, Fut> UnwindSafe for Retry<S, B, N, Fn, Fut>where
B: UnwindSafe,
Fn: UnwindSafe,
Fut: UnwindSafe,
N: UnwindSafe,
S: UnwindSafe,
<S as Sleeper>::Sleep: UnwindSafe,
Blanket Implementations§
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