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]
F: FnMut(T, <S as Stream>::Item) -> Fut,
Fut: IntoFuture<Item = T, Error = <S as Stream>::Error>,
S: Stream,
type Item = T
A successful value
type Error = <S as Stream>::Error
An error
fn poll(&mut self, cx: &mut Context) -> Result<Async<T>, <S as Stream>::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]
F: Debug,
Fut: Debug + IntoFuture,
S: Debug,
T: Debug,
<Fut as IntoFuture>::Future: Debug,