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

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]

🔬 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