Struct futures::stream::Collect [] [src]

#[must_use = "streams do nothing unless polled"]
pub struct Collect<S, C> where
    S: Stream
{ /* fields omitted */ }

A future which collects all of the values of a stream into a vector.

This future is created by the Stream::collect method.

Trait Implementations

impl<S, C> Debug for Collect<S, C> where
    C: Debug,
    S: Debug + Stream


Formats the value using the given formatter. Read more

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

A successful value

An error


Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

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

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