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]
impl<St: Debug, Fut: Debug, T: Debug, F: Debug> Debug for Fold<St, Fut, T, F>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
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: Unpin, Fut: Unpin, T, F> Unpin for Fold<St, Fut, T, F>
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]
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>,
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<Self>, cx: &mut Context) -> Poll<T>
[src]
fn poll(self: PinMut<Self>, 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