Struct futures_util::stream::Then[][src]

#[must_use = "streams do nothing unless polled"]
pub struct Then<St, Fut, F> { /* fields omitted */ }

A stream combinator which chains a computation onto each item produced by a stream.

This structure is produced by the Stream::then method.

Trait Implementations

impl<St: Debug, Fut: Debug, F: Debug> Debug for Then<St, Fut, F>
[src]

Formats the value using the given formatter. Read more

impl<St: Unpin, Fut: Unpin, F> Unpin for Then<St, Fut, F>
[src]

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

Values yielded by the stream.

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more

Auto Trait Implementations

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

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