pub struct Race<Fut, const N: usize>where
Fut: Future,{ /* private fields */ }
Expand description
Trait Implementations§
impl<'pin, Fut, const N: usize> Unpin for Race<Fut, N>
Auto Trait Implementations§
impl<Fut, const N: usize> Freeze for Race<Fut, N>where
Fut: Freeze,
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§
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§fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more
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::IntoFuture> ⓘwhere
Self: Sized,
D: IntoFuture,
fn wait_until<D>(self, deadline: D) -> WaitUntil<Self, D::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