pub struct TryAsyncFuture<'a, E, F, Fut> { /* private fields */ }Available on crate features
async-io-2 or tokio only.Expand description
Future returned by TryAsync::into_future(), TryAsync::enforce_deadline_with().
If the current state of the EaseOff prescribes a sleep before the next attempt,
the future will not be invoked immediately.
§Panics
If an async runtime is not available for sleeping between retries.
Trait Implementations§
Source§impl<'a, T, E, F, Fut> Future for TryAsyncFuture<'a, E, F, Fut>
impl<'a, T, E, F, Fut> Future for TryAsyncFuture<'a, E, F, Fut>
impl<'pin, 'a, E, F, Fut> Unpin for TryAsyncFuture<'a, E, F, Fut>where
PinnedFieldsOf<__TryAsyncFuture<'pin, 'a, E, F, Fut>>: Unpin,
Auto Trait Implementations§
impl<'a, E, F, Fut> !Freeze for TryAsyncFuture<'a, E, F, Fut>
impl<'a, E, F, Fut> !RefUnwindSafe for TryAsyncFuture<'a, E, F, Fut>
impl<'a, E, F, Fut> !UnsafeUnpin for TryAsyncFuture<'a, E, F, Fut>
impl<'a, E, F, Fut> !UnwindSafe for TryAsyncFuture<'a, E, F, Fut>
impl<'a, E, F, Fut> Send for TryAsyncFuture<'a, E, F, Fut>
impl<'a, E, F, Fut> Sync for TryAsyncFuture<'a, E, F, Fut>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<F> FutureExt for F
impl<F> FutureExt for F
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§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