Struct futures_util::stream::Fold[][src]

#[must_use = "streams do nothing unless polled"]
pub struct Fold<St, Fut, T, F> { /* 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<St: Debug, Fut: Debug, T: Debug, F: Debug> Debug for Fold<St, Fut, T, F>
[src]

Formats the value using the given formatter. Read more

impl<St: Unpin, Fut: Unpin, T, F> Unpin for Fold<St, Fut, T, F>
[src]

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

impl<St, Fut, T, F> Sync for Fold<St, Fut, T, F> where
    F: Sync,
    Fut: Sync,
    St: Sync,
    T: Sync