Struct backoff::future::Retry [−][src]
This is supported on crate feature
futures
only.Retry implementation.
Implementations
impl<S, B, N, Fn, Fut, I, E> Retry<S, B, N, Fn, Fut> where
S: Sleeper,
Fn: FnMut() -> Fut,
Fut: Future<Output = Result<I, Error<E>>>,
[src]
S: Sleeper,
Fn: FnMut() -> Fut,
Fut: Future<Output = Result<I, Error<E>>>,
Trait Implementations
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>>>,
[src]
S: Sleeper,
B: Backoff,
N: Notify<E>,
Fn: FnMut() -> Fut,
Fut: Future<Output = Result<I, Error<E>>>,
type Output = Result<I, E>
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
[src]
impl<'pin, S: Sleeper, B, N, Fn, Fut> Unpin for Retry<S, B, N, Fn, Fut> where
__Retry<'pin, S, B, N, Fn, Fut>: Unpin,
[src]
__Retry<'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,
[src]
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,
[src]
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,
[src]
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,
[src]
B: UnwindSafe,
Fn: UnwindSafe,
Fut: UnwindSafe,
N: UnwindSafe,
S: UnwindSafe,
<S as Sleeper>::Sleep: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src]
F: Future,
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<F, T, E> TryFuture for F where
F: Future<Output = Result<T, E>> + ?Sized,
[src]
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T
The type of successful values yielded by this future
type Error = E
The type of failures yielded by this future
pub fn try_poll(
self: Pin<&mut F>,
cx: &mut Context<'_>
) -> Poll<<F as Future>::Output>
[src]
self: Pin<&mut F>,
cx: &mut Context<'_>
) -> Poll<<F as Future>::Output>
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,