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

#[must_use = "streams do nothing unless polled"]
pub struct Collect<S> 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> Future for Collect<S> where
    S: Stream
[src]

A successful value

An error

[src]

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

impl<S> Debug for Collect<S> where
    S: Debug + Stream,
    <S as Stream>::Item: Debug
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S> Send for Collect<S> where
    S: Send,
    <S as Stream>::Item: Send

impl<S> Sync for Collect<S> where
    S: Sync,
    <S as Stream>::Item: Sync