Struct futures_concurrency::vec::Race
source · [−]pub struct Race<Fut>where
Fut: Future,{ /* private fields */ }
Expand description
Waits for multiple similarly-typed futures to complete.
Awaits multiple futures simultaneously, returning the output of the first future which completes.
Trait Implementations
impl<'pin, Fut> Unpin for Race<Fut>where
Fut: Future,
__Race<'pin, Fut>: Unpin,
Auto Trait Implementations
impl<Fut> RefUnwindSafe for Race<Fut>where
Fut: RefUnwindSafe,
impl<Fut> Send for Race<Fut>where
Fut: Send,
impl<Fut> Sync for Race<Fut>where
Fut: Sync,
impl<Fut> UnwindSafe for Race<Fut>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