pub struct AndThenAsync<Fut1, Fut2, F> { /* private fields */ }Expand description
Future that chains two async computations sequentially.
Internally manages polling of the first, then the second future produced by the chaining closure.
Trait Implementations§
Source§impl<Fut1, Fut2, F, T, U, E> Future for AndThenAsync<Fut1, Fut2, F>
impl<Fut1, Fut2, F, T, U, E> Future for AndThenAsync<Fut1, Fut2, F>
Auto Trait Implementations§
impl<Fut1, Fut2, F> Freeze for AndThenAsync<Fut1, Fut2, F>
impl<Fut1, Fut2, F> RefUnwindSafe for AndThenAsync<Fut1, Fut2, F>
impl<Fut1, Fut2, F> Send for AndThenAsync<Fut1, Fut2, F>
impl<Fut1, Fut2, F> Sync for AndThenAsync<Fut1, Fut2, F>
impl<Fut1, Fut2, F> Unpin for AndThenAsync<Fut1, Fut2, F>
impl<Fut1, Fut2, F> UnsafeUnpin for AndThenAsync<Fut1, Fut2, F>
impl<Fut1, Fut2, F> UnwindSafe for AndThenAsync<Fut1, Fut2, F>
Blanket Implementations§
Source§impl<T, E, F> AsyncResultChainExt<T, E> for F
impl<T, E, F> AsyncResultChainExt<T, E> for F
Source§fn and_then_async<Fut, F, U>(self, f: F) -> AndThenAsync<Self, Fut, F> ⓘ
fn and_then_async<Fut, F, U>(self, f: F) -> AndThenAsync<Self, Fut, F> ⓘ
Chains an asynchronous computation to execute if the previous future resolves to
Ok. Read moreSource§impl<T, E, Fut> AsyncResultExt<T, E> for Fut
impl<T, E, Fut> AsyncResultExt<T, E> for Fut
Source§fn with_context<C>(self, ctx: C) -> WithContext<Self, E, C> ⓘ
fn with_context<C>(self, ctx: C) -> WithContext<Self, E, C> ⓘ
Adds context to an error produced by this future lazily. Read more
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,
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