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> Unpin for Fold<St, Fut, T, F> where
Fut: Unpin,
St: Unpin,
impl<St, Fut, T, F> Debug for Fold<St, Fut, T, F> where
F: Debug,
Fut: Debug,
St: Debug,
T: Debug,
[src]
impl<St, Fut, T, F> Debug for Fold<St, Fut, T, F> where
F: Debug,
Fut: Debug,
St: Debug,
T: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
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]
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,
type Output = T
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(self: PinMut<Fold<St, Fut, T, F>>, cx: &mut Context) -> Poll<T>
[src]
fn poll(self: PinMut<Fold<St, Fut, T, F>>, cx: &mut Context) -> Poll<T>
🔬 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