Struct futures::stream::Then [] [src]

#[must_use = "streams do nothing unless polled"]
pub struct Then<S, U, F> where
    U: IntoFuture
{ /* 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<S, U, F> Sink for Then<S, U, F> where
    S: Sink,
    U: IntoFuture
[src]

The type of value that the sink accepts.

The type of value produced by the sink when an error occurs.

[src]

Attempts to prepare the Sink to receive a value. Read more

[src]

Begin the process of sending a value to the sink. Each call to this function must be proceeded by a successful call to poll_ready which returned Ok(Async::Ready(())). Read more

[src]

Flush any remaining output from this sink. Read more

[src]

Flush any remaining output and close this sink, if necessary. Read more

impl<S, U, F> Stream for Then<S, U, F> where
    F: FnMut(Result<<S as Stream>::Item, <S as Stream>::Error>) -> U,
    S: Stream,
    U: IntoFuture
[src]

Values yielded by the stream.

Errors yielded by the stream.

[src]

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

impl<S, U, F> Debug for Then<S, U, F> where
    F: Debug,
    S: Debug,
    U: Debug + IntoFuture,
    <U as IntoFuture>::Future: Debug
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S, U, F> Send for Then<S, U, F> where
    F: Send,
    S: Send,
    <U as IntoFuture>::Future: Send

impl<S, U, F> Sync for Then<S, U, F> where
    F: Sync,
    S: Sync,
    <U as IntoFuture>::Future: Sync