Struct futures::stream::OrElse [] [src]

#[must_use = "streams do nothing unless polled"]
pub struct OrElse<S, U, F> where
    U: IntoFuture
{ /* fields omitted */ }

A stream combinator which chains a computation onto errors produced by a stream.

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

Trait Implementations

impl<S, U, F> Debug for OrElse<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

impl<S, U, F> Sink for OrElse<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 OrElse<S, U, F> where
    F: FnMut(<S as Stream>::Error) -> U,
    S: Stream,
    U: IntoFuture<Item = <S as Stream>::Item>, 
[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

Auto Trait Implementations

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

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