Struct futures_util::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: Debug, Fut: Debug, T: Debug, F: Debug> Debug for Fold<S, Fut, T, F> where
    Fut: IntoFuture,
    Fut::Future: Debug
[src]

[src]

Formats the value using the given formatter. Read more

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

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