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> Debug for Fold<S, Fut, T, F> where
F: Debug,
Fut: Debug + IntoFuture,
S: Debug,
T: Debug,
<Fut as IntoFuture>::Future: Debug,
[src]
F: Debug,
Fut: Debug + IntoFuture,
S: Debug,
T: Debug,
<Fut as IntoFuture>::Future: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
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]
F: FnMut(T, <S as Stream>::Item) -> Fut,
Fut: IntoFuture<Item = T, Error = <S as Stream>::Error>,
S: Stream,