Struct futures::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, Fut, T, F> Unpin for Fold<St, Fut, T, F> where
    Fut: Unpin,
    St: Unpin
[src]

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

Formats the value using the given formatter. Read more

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