Struct futures_concurrency::array::Race
source · [−]Expand description
Waits for two similarly-typed futures to complete.
Awaits multiple futures simultaneously, returning the output of the futures once both complete.
Trait Implementations
sourceimpl<Fut, const N: usize> Debug for Race<Fut, N>where
Fut: Future + Debug,
Fut::Output: Debug,
impl<Fut, const N: usize> Debug for Race<Fut, N>where
Fut: Future + Debug,
Fut::Output: Debug,
impl<'pin, Fut, const N: usize> Unpin for Race<Fut, N>where
Fut: Future,
__Race<'pin, Fut, N>: Unpin,
Auto Trait Implementations
impl<Fut, const N: usize> RefUnwindSafe for Race<Fut, N>where
Fut: RefUnwindSafe,
impl<Fut, const N: usize> Send for Race<Fut, N>where
Fut: Send,
impl<Fut, const N: usize> Sync for Race<Fut, N>where
Fut: Sync,
impl<Fut, const N: usize> UnwindSafe for Race<Fut, N>where
Fut: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more