Struct futures::stream::Forward [] [src]

#[must_use = "futures do nothing unless polled"]
pub struct Forward<T, U> where
    T: Stream
{ /* fields omitted */ }

Future for the Stream::forward combinator, which sends a stream of values to a sink and then waits until the sink has fully flushed those values.

Methods

impl<T, U> Forward<T, U> where
    T: Stream,
    U: Sink<SinkItem = <T as Stream>::Item>,
    <T as Stream>::Error: From<<U as Sink>::SinkError>, 
[src]

[src]

Get a shared reference to the inner sink. If this combinator has already been polled to completion, None will be returned.

[src]

Get a mutable reference to the inner sink. If this combinator has already been polled to completion, None will be returned.

[src]

Get a shared reference to the inner stream. If this combinator has already been polled to completion, None will be returned.

[src]

Get a mutable reference to the inner stream. If this combinator has already been polled to completion, None will be returned.

Trait Implementations

impl<T, U> Future for Forward<T, U> where
    T: Stream,
    U: Sink<SinkItem = <T as Stream>::Item>,
    <T as Stream>::Error: From<<U as Sink>::SinkError>, 
[src]

A successful value

An error

[src]

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

impl<T, U> Debug for Forward<T, U> where
    T: Debug + Stream,
    U: Debug,
    <T as Stream>::Item: Debug
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T, U> Send for Forward<T, U> where
    T: Send,
    U: Send,
    <T as Stream>::Item: Send

impl<T, U> Sync for Forward<T, U> where
    T: Sync,
    U: Sync,
    <T as Stream>::Item: Sync