Struct futures::stream::ForEach [−][src]
#[must_use = "streams do nothing unless polled"]pub struct ForEach<St, Fut, F> { /* fields omitted */ }
A stream combinator which executes a unit closure over each item on a stream.
This structure is returned by the Stream::for_each method.
Trait Implementations
impl<St, Fut, F> Unpin for ForEach<St, Fut, F> where
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future<Output = ()> + Unpin,
St: Stream + Unpin, [src]
impl<St, Fut, F> Unpin for ForEach<St, Fut, F> where
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future<Output = ()> + Unpin,
St: Stream + Unpin, impl<St, Fut, F> Debug for ForEach<St, Fut, F> where
F: Debug,
Fut: Debug,
St: Debug, [src]
impl<St, Fut, F> Debug for ForEach<St, Fut, F> where
F: Debug,
Fut: Debug,
St: 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, F> Future for ForEach<St, Fut, F> where
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future<Output = ()>,
St: Stream, [src]
impl<St, Fut, F> Future for ForEach<St, Fut, F> where
F: FnMut(<St as Stream>::Item) -> Fut,
Fut: Future<Output = ()>,
St: Stream, type Output = ()
🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
The result of the Future.
fn poll(self: PinMut<ForEach<St, Fut, F>>, cx: &mut Context) -> Poll<()>[src]
fn poll(self: PinMut<ForEach<St, Fut, F>>, cx: &mut Context) -> Poll<()>🔬 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