Struct futures::stream::Fold [] [src]

#[must_use = "streams do nothing unless polled"]
pub struct Fold<S, Fut, T, F> where
    Fut: IntoFuture
{ /* fields omitted */ }

A future used to collect all the results of a stream into one generic type.

This future is returned by the Stream::fold method.

Trait Implementations

impl<S, Fut, T, F> Future for Fold<S, Fut, T, F> where
    F: FnMut(T, <S as Stream>::Item) -> Fut,
    Fut: IntoFuture<Item = T, Error = <S as Stream>::Error>,
    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, Fut, T, F> Debug for Fold<S, Fut, T, F> where
    F: Debug,
    Fut: Debug + IntoFuture,
    S: Debug,
    T: Debug,
    <Fut as IntoFuture>::Future: Debug
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S, Fut, T, F> Send for Fold<S, Fut, T, F> where
    F: Send,
    S: Send,
    T: Send,
    <Fut as IntoFuture>::Future: Send

impl<S, Fut, T, F> Sync for Fold<S, Fut, T, F> where
    F: Sync,
    S: Sync,
    T: Sync,
    <Fut as IntoFuture>::Future: Sync