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

#[must_use = "streams do nothing unless polled"]
pub struct Collect<St, C> where
    St: 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<St, C> Unpin for Collect<St, C> where
    St: Unpin + Stream
[src]

impl<St, C> Debug for Collect<St, C> where
    C: Debug,
    St: Debug + Stream
[src]

Formats the value using the given formatter. Read more

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

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

The result of the Future.

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

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<St, C> Send for Collect<St, C> where
    C: Send,
    St: Send

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