[][src]Struct futures_util::stream::ForEach

#[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: Debug, Fut: Debug, F: Debug> Debug for ForEach<St, Fut, F>
[src]

Formats the value using the given formatter. Read more

impl<St, Fut, F> Unpin for ForEach<St, Fut, F> where
    St: Stream + Unpin,
    F: FnMut(St::Item) -> Fut,
    Fut: Future<Output = ()> + Unpin
[src]

impl<St, Fut, F> Future for ForEach<St, Fut, F> where
    St: Stream,
    F: FnMut(St::Item) -> Fut,
    Fut: Future<Output = ()>, 
[src]

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

The result of the Future.

🔬 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

Auto Trait Implementations

impl<St, Fut, F> Send for ForEach<St, Fut, F> where
    F: Send,
    Fut: Send,
    St: Send

impl<St, Fut, F> Sync for ForEach<St, Fut, F> where
    F: Sync,
    Fut: Sync,
    St: Sync