[][src]Struct parallel_stream::ForEach

pub struct ForEach { /* fields omitted */ }

Call a closure on each element of the stream.

Methods

impl ForEach[src]

pub fn new<S, F, Fut>(stream: S, f: F) -> Self where
    S: ParallelStream,
    F: FnMut(S::Item) -> Fut + Send + Sync + Copy + 'static,
    Fut: Future<Output = ()> + Send
[src]

Create a new instance of ForEach.

Trait Implementations

impl Debug for ForEach[src]

impl Future for ForEach[src]

type Output = ()

The type of value produced on completion.

impl<'__pin> Unpin for ForEach where
    __Origin<'__pin>: Unpin
[src]

Auto Trait Implementations

impl !RefUnwindSafe for ForEach

impl Send for ForEach

impl Sync for ForEach

impl !UnwindSafe for ForEach

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoFuture for T where
    T: Future
[src]

type Output = <T as Future>::Output

The type of value produced on completion.

type Future = T

Which kind of future are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.