Struct cros_async::select::Select12
source · pub(crate) struct Select12<_Fut1: Future + Unpin, _Fut2: Future + Unpin, _Fut3: Future + Unpin, _Fut4: Future + Unpin, _Fut5: Future + Unpin, _Fut6: Future + Unpin, _Fut7: Future + Unpin, _Fut8: Future + Unpin, _Fut9: Future + Unpin, _Fut10: Future + Unpin, _Fut11: Future + Unpin, _Fut12: Future + Unpin> {
_Fut1: MaybeDone<_Fut1>,
_Fut2: MaybeDone<_Fut2>,
_Fut3: MaybeDone<_Fut3>,
_Fut4: MaybeDone<_Fut4>,
_Fut5: MaybeDone<_Fut5>,
_Fut6: MaybeDone<_Fut6>,
_Fut7: MaybeDone<_Fut7>,
_Fut8: MaybeDone<_Fut8>,
_Fut9: MaybeDone<_Fut9>,
_Fut10: MaybeDone<_Fut10>,
_Fut11: MaybeDone<_Fut11>,
_Fut12: MaybeDone<_Fut12>,
}
Fields§
§_Fut1: MaybeDone<_Fut1>
§_Fut2: MaybeDone<_Fut2>
§_Fut3: MaybeDone<_Fut3>
§_Fut4: MaybeDone<_Fut4>
§_Fut5: MaybeDone<_Fut5>
§_Fut6: MaybeDone<_Fut6>
§_Fut7: MaybeDone<_Fut7>
§_Fut8: MaybeDone<_Fut8>
§_Fut9: MaybeDone<_Fut9>
§_Fut10: MaybeDone<_Fut10>
§_Fut11: MaybeDone<_Fut11>
§_Fut12: MaybeDone<_Fut12>
Implementations§
source§impl<_Fut1: Future + Unpin, _Fut2: Future + Unpin, _Fut3: Future + Unpin, _Fut4: Future + Unpin, _Fut5: Future + Unpin, _Fut6: Future + Unpin, _Fut7: Future + Unpin, _Fut8: Future + Unpin, _Fut9: Future + Unpin, _Fut10: Future + Unpin, _Fut11: Future + Unpin, _Fut12: Future + Unpin> Select12<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12>
impl<_Fut1: Future + Unpin, _Fut2: Future + Unpin, _Fut3: Future + Unpin, _Fut4: Future + Unpin, _Fut5: Future + Unpin, _Fut6: Future + Unpin, _Fut7: Future + Unpin, _Fut8: Future + Unpin, _Fut9: Future + Unpin, _Fut10: Future + Unpin, _Fut11: Future + Unpin, _Fut12: Future + Unpin> Select12<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12>
pub(crate) fn new( _Fut1: _Fut1, _Fut2: _Fut2, _Fut3: _Fut3, _Fut4: _Fut4, _Fut5: _Fut5, _Fut6: _Fut6, _Fut7: _Fut7, _Fut8: _Fut8, _Fut9: _Fut9, _Fut10: _Fut10, _Fut11: _Fut11, _Fut12: _Fut12 ) -> Select12<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12> ⓘ
Trait Implementations§
source§impl<_Fut1: Future + Unpin, _Fut2: Future + Unpin, _Fut3: Future + Unpin, _Fut4: Future + Unpin, _Fut5: Future + Unpin, _Fut6: Future + Unpin, _Fut7: Future + Unpin, _Fut8: Future + Unpin, _Fut9: Future + Unpin, _Fut10: Future + Unpin, _Fut11: Future + Unpin, _Fut12: Future + Unpin> Future for Select12<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12>
impl<_Fut1: Future + Unpin, _Fut2: Future + Unpin, _Fut3: Future + Unpin, _Fut4: Future + Unpin, _Fut5: Future + Unpin, _Fut6: Future + Unpin, _Fut7: Future + Unpin, _Fut8: Future + Unpin, _Fut9: Future + Unpin, _Fut10: Future + Unpin, _Fut11: Future + Unpin, _Fut12: Future + Unpin> Future for Select12<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12>
§type Output = (SelectResult<_Fut1>, SelectResult<_Fut2>, SelectResult<_Fut3>, SelectResult<_Fut4>, SelectResult<_Fut5>, SelectResult<_Fut6>, SelectResult<_Fut7>, SelectResult<_Fut8>, SelectResult<_Fut9>, SelectResult<_Fut10>, SelectResult<_Fut11>, SelectResult<_Fut12>)
type Output = (SelectResult<_Fut1>, SelectResult<_Fut2>, SelectResult<_Fut3>, SelectResult<_Fut4>, SelectResult<_Fut5>, SelectResult<_Fut6>, SelectResult<_Fut7>, SelectResult<_Fut8>, SelectResult<_Fut9>, SelectResult<_Fut10>, SelectResult<_Fut11>, SelectResult<_Fut12>)
The type of value produced on completion.
Auto Trait Implementations§
impl<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12> RefUnwindSafe for Select12<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12>where
_Fut1: RefUnwindSafe,
_Fut10: RefUnwindSafe,
_Fut11: RefUnwindSafe,
_Fut12: RefUnwindSafe,
_Fut2: RefUnwindSafe,
_Fut3: RefUnwindSafe,
_Fut4: RefUnwindSafe,
_Fut5: RefUnwindSafe,
_Fut6: RefUnwindSafe,
_Fut7: RefUnwindSafe,
_Fut8: RefUnwindSafe,
_Fut9: RefUnwindSafe,
<_Fut1 as Future>::Output: RefUnwindSafe,
<_Fut10 as Future>::Output: RefUnwindSafe,
<_Fut11 as Future>::Output: RefUnwindSafe,
<_Fut12 as Future>::Output: RefUnwindSafe,
<_Fut2 as Future>::Output: RefUnwindSafe,
<_Fut3 as Future>::Output: RefUnwindSafe,
<_Fut4 as Future>::Output: RefUnwindSafe,
<_Fut5 as Future>::Output: RefUnwindSafe,
<_Fut6 as Future>::Output: RefUnwindSafe,
<_Fut7 as Future>::Output: RefUnwindSafe,
<_Fut8 as Future>::Output: RefUnwindSafe,
<_Fut9 as Future>::Output: RefUnwindSafe,
impl<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12> Send for Select12<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12>where
_Fut1: Send,
_Fut10: Send,
_Fut11: Send,
_Fut12: Send,
_Fut2: Send,
_Fut3: Send,
_Fut4: Send,
_Fut5: Send,
_Fut6: Send,
_Fut7: Send,
_Fut8: Send,
_Fut9: Send,
<_Fut1 as Future>::Output: Send,
<_Fut10 as Future>::Output: Send,
<_Fut11 as Future>::Output: Send,
<_Fut12 as Future>::Output: Send,
<_Fut2 as Future>::Output: Send,
<_Fut3 as Future>::Output: Send,
<_Fut4 as Future>::Output: Send,
<_Fut5 as Future>::Output: Send,
<_Fut6 as Future>::Output: Send,
<_Fut7 as Future>::Output: Send,
<_Fut8 as Future>::Output: Send,
<_Fut9 as Future>::Output: Send,
impl<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12> Sync for Select12<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12>where
_Fut1: Sync,
_Fut10: Sync,
_Fut11: Sync,
_Fut12: Sync,
_Fut2: Sync,
_Fut3: Sync,
_Fut4: Sync,
_Fut5: Sync,
_Fut6: Sync,
_Fut7: Sync,
_Fut8: Sync,
_Fut9: Sync,
<_Fut1 as Future>::Output: Sync,
<_Fut10 as Future>::Output: Sync,
<_Fut11 as Future>::Output: Sync,
<_Fut12 as Future>::Output: Sync,
<_Fut2 as Future>::Output: Sync,
<_Fut3 as Future>::Output: Sync,
<_Fut4 as Future>::Output: Sync,
<_Fut5 as Future>::Output: Sync,
<_Fut6 as Future>::Output: Sync,
<_Fut7 as Future>::Output: Sync,
<_Fut8 as Future>::Output: Sync,
<_Fut9 as Future>::Output: Sync,
impl<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12> Unpin for Select12<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12>
impl<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12> UnwindSafe for Select12<_Fut1, _Fut2, _Fut3, _Fut4, _Fut5, _Fut6, _Fut7, _Fut8, _Fut9, _Fut10, _Fut11, _Fut12>where
_Fut1: UnwindSafe,
_Fut10: UnwindSafe,
_Fut11: UnwindSafe,
_Fut12: UnwindSafe,
_Fut2: UnwindSafe,
_Fut3: UnwindSafe,
_Fut4: UnwindSafe,
_Fut5: UnwindSafe,
_Fut6: UnwindSafe,
_Fut7: UnwindSafe,
_Fut8: UnwindSafe,
_Fut9: UnwindSafe,
<_Fut1 as Future>::Output: UnwindSafe,
<_Fut10 as Future>::Output: UnwindSafe,
<_Fut11 as Future>::Output: UnwindSafe,
<_Fut12 as Future>::Output: UnwindSafe,
<_Fut2 as Future>::Output: UnwindSafe,
<_Fut3 as Future>::Output: UnwindSafe,
<_Fut4 as Future>::Output: UnwindSafe,
<_Fut5 as Future>::Output: UnwindSafe,
<_Fut6 as Future>::Output: UnwindSafe,
<_Fut7 as Future>::Output: UnwindSafe,
<_Fut8 as Future>::Output: UnwindSafe,
<_Fut9 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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn map<U, F>(self, f: F) -> Map<Self, F>
fn map<U, F>(self, f: F) -> Map<Self, F>
Map this future’s output to a different type, returning a new future of
the resulting type. Read more
§fn map_into<U>(self) -> MapInto<Self, U>
fn map_into<U>(self) -> MapInto<Self, U>
Map this future’s output to a different type, returning a new future of
the resulting type. Read more
§fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
Chain on a computation for when a future finished, passing the result of
the future to the provided closure
f
. Read more§fn left_future<B>(self) -> Either<Self, B>
fn left_future<B>(self) -> Either<Self, B>
§fn right_future<A>(self) -> Either<A, Self>
fn right_future<A>(self) -> Either<A, Self>
§fn into_stream(self) -> IntoStream<Self>where
Self: Sized,
fn into_stream(self) -> IntoStream<Self>where
Self: Sized,
Convert this future into a single element stream. Read more
§fn flatten(self) -> Flatten<Self>
fn flatten(self) -> Flatten<Self>
Flatten the execution of this future when the output of this
future is itself another future. Read more
§fn flatten_stream(self) -> FlattenStream<Self>
fn flatten_stream(self) -> FlattenStream<Self>
Flatten the execution of this future when the successful result of this
future is a stream. Read more
§fn fuse(self) -> Fuse<Self>where
Self: Sized,
fn fuse(self) -> Fuse<Self>where
Self: Sized,
Fuse a future such that
poll
will never again be called once it has
completed. This method can be used to turn any Future
into a
FusedFuture
. Read more§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more
§fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Create a cloneable handle to this future where all handles will resolve
to the same result. Read more
§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
Self: Sized,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
Self: Sized,
Turn this future into a future that yields
()
on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more
§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more
§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a
Future<Output = T>
into a
TryFuture<Ok = T, Error = ()
>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a
Future<Output = T>
into a
TryFuture<Ok = T, Error = Never
>.source§impl<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?
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