pub struct JoinAll<H: Future, T: Future> {
pub head: H,
pub tail: T,
pub head_res: Option<H::Output>,
pub tail_res: Option<T::Output>,
}Available on crate feature
nano-alloc only.Expand description
A Future that polls two sub-futures and stores their outputs.
Once both futures resolve, the outputs are returned as a tuple.
Fields§
§head: H§tail: T§head_res: Option<H::Output>§tail_res: Option<T::Output>Implementations§
Trait Implementations§
Source§impl<H: Future, T: Future> Future for JoinAll<H, T>
impl<H: Future, T: Future> Future for JoinAll<H, T>
impl<'pin, H: Future, T: Future> Unpin for JoinAll<H, T>where
PinnedFieldsOf<__JoinAll<'pin, H, T>>: Unpin,
Auto Trait Implementations§
impl<H, T> Freeze for JoinAll<H, T>
impl<H, T> RefUnwindSafe for JoinAll<H, T>where
H: RefUnwindSafe,
T: RefUnwindSafe,
<H as Future>::Output: RefUnwindSafe,
<T as Future>::Output: RefUnwindSafe,
impl<H, T> Send for JoinAll<H, T>
impl<H, T> Sync for JoinAll<H, T>
impl<H, T> UnwindSafe for JoinAll<H, T>where
H: UnwindSafe,
T: UnwindSafe,
<H as Future>::Output: UnwindSafe,
<T as Future>::Output: UnwindSafe,
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> FutureExt for F
impl<F> FutureExt for F
Source§impl<F1> FutureExt for F1where
F1: Future,
impl<F1> FutureExt for F1where
F1: Future,
Source§fn join<F2>(self, other: F2) -> Join2<F1, <F2 as IntoFuture>::IntoFuture>where
F1: Future,
F2: IntoFuture,
fn join<F2>(self, other: F2) -> Join2<F1, <F2 as IntoFuture>::IntoFuture>where
F1: Future,
F2: IntoFuture,
Wait for both futures to complete.
Source§fn race<T, S2>(self, other: S2) -> Race2<T, F1, <S2 as IntoFuture>::IntoFuture>where
F1: Future<Output = T>,
S2: IntoFuture<Output = T>,
fn race<T, S2>(self, other: S2) -> Race2<T, F1, <S2 as IntoFuture>::IntoFuture>where
F1: Future<Output = T>,
S2: IntoFuture<Output = T>,
Wait for the first future to complete.
Source§fn wait_until<D>(
self,
deadline: D,
) -> WaitUntil<Self, <D as IntoFuture>::IntoFuture> ⓘwhere
Self: Sized,
D: IntoFuture,
fn wait_until<D>(
self,
deadline: D,
) -> WaitUntil<Self, <D as IntoFuture>::IntoFuture> ⓘwhere
Self: Sized,
D: IntoFuture,
Delay resolving the future until the given deadline. 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