Struct futures::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, Fut, F> Unpin for Then<St, Fut, F> where
    Fut: Unpin,
    St: Unpin
[src]

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

Formats the value using the given formatter. Read more

impl<St, Fut, F> Stream for Then<St, Fut, F> where
    F: FnMut(<St as Stream>::Item) -> Fut,
    Fut: Future,
    St: Stream
[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