Struct SelectAll

#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct SelectAll<Fut> { /* private fields */ }

Future for the select_all function.

Implementations

impl<Fut> SelectAll<Fut>

fn into_inner(self) -> Vec<Fut>

Consumes this combinator, returning the underlying futures.

Trait Implementations

impl<Fut: Debug> Debug for SelectAll<Fut>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<Fut: Future + Unpin> FromIterator<Fut> for SelectAll<Fut>

fn from_iter<T: IntoIterator<Item = Fut>>(iter: T) -> Self

impl<Fut: Future + Unpin> Future for SelectAll<Fut>

type Output = (<Fut as Future>::Output, usize, Vec<Fut>);
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

impl<Fut: Unpin> Unpin for SelectAll<Fut>

Auto Trait Implementations

impl<Fut> Freeze for SelectAll<Fut> where Vec<Fut>: Freeze,

impl<Fut> RefUnwindSafe for SelectAll<Fut> where Vec<Fut>: RefUnwindSafe,

impl<Fut> Send for SelectAll<Fut> where Vec<Fut>: Send,

impl<Fut> Sync for SelectAll<Fut> where Vec<Fut>: Sync,

impl<Fut> UnsafeUnpin for SelectAll<Fut> where Vec<Fut>: UnsafeUnpin,

impl<Fut> UnwindSafe for SelectAll<Fut> where Vec<Fut>: UnwindSafe,

Blanket Implementations

impl<F> IntoFuture for SelectAll<Fut> where F: Future,

type Output = <F as Future>::Output;
type IntoFuture = F;
fn into_future(self) -> <F as IntoFuture>::IntoFuture

impl<T> Any for SelectAll<Fut> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SelectAll<Fut> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SelectAll<Fut> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for SelectAll<Fut>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for SelectAll<Fut> where T: Future + ?Sized,

impl<T, U> Into<U> for SelectAll<Fut> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for SelectAll<Fut> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for SelectAll<Fut> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>