Struct futures_concurrency::vec::FirstOk
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, T, E> Debug for FirstOk<Fut, T, E>where
Fut: Future<Output = Result<T, E>> + Debug,
Fut::Output: Debug,
impl<Fut, T, E> Debug for FirstOk<Fut, T, E>where
Fut: Future<Output = Result<T, E>> + Debug,
Fut::Output: Debug,
Auto Trait Implementations
impl<Fut, T, E> RefUnwindSafe for FirstOk<Fut, T, E>where
E: RefUnwindSafe,
Fut: RefUnwindSafe,
T: RefUnwindSafe,
impl<Fut, T, E> Send for FirstOk<Fut, T, E>where
E: Send,
Fut: Send,
T: Send,
impl<Fut, T, E> Sync for FirstOk<Fut, T, E>where
E: Sync,
Fut: Sync,
T: Sync,
impl<Fut, T, E> Unpin for FirstOk<Fut, T, E>
impl<Fut, T, E> UnwindSafe for FirstOk<Fut, T, E>where
E: UnwindSafe,
Fut: UnwindSafe,
T: 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