Struct Collect

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

Future for the collect method.

Trait Implementations

impl<'__pin, St, C> Unpin for Collect<St, C> where PinnedFieldsOf<__Origin<'__pin, St, C>>: Unpin,

impl<St, C> FusedFuture for Collect<St, C> where St: FusedStream, C: Default + Extend<St::Item>,

fn is_terminated(&self) -> bool

impl<St, C> Future for Collect<St, C> where St: Stream, C: Default + Extend<St::Item>,

type Output = C;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<C>

impl<St: Debug, C: Debug> Debug for Collect<St, C>

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

Auto Trait Implementations

impl<St, C> Freeze for Collect<St, C> where St: Freeze, C: Freeze,

impl<St, C> RefUnwindSafe for Collect<St, C> where St: RefUnwindSafe, C: RefUnwindSafe,

impl<St, C> Send for Collect<St, C> where St: Send, C: Send,

impl<St, C> Sync for Collect<St, C> where St: Sync, C: Sync,

impl<St, C> UnsafeUnpin for Collect<St, C> where St: UnsafeUnpin, C: UnsafeUnpin,

impl<St, C> UnwindSafe for Collect<St, C> where St: UnwindSafe, C: UnwindSafe,

Blanket Implementations

impl<F> IntoFuture for Collect<St, C> where F: Future,

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

impl<T> Any for Collect<St, C> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Collect<St, C> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Collect<St, C> where T: ?Sized,

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

impl<T> From<T> for Collect<St, C>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for Collect<St, C> where T: Future + ?Sized,

impl<T, U> Into<U> for Collect<St, C> 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 Collect<St, C> where U: Into<T>,

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

impl<T, U> TryInto<U> for Collect<St, C> where U: TryFrom<T>,

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