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

#[must_use = "steams do nothing unless polled"]
pub struct Forward<St, Si> where
    Si: Unpin + Sink,
    St: Stream
{ /* fields omitted */ }

Future for the Stream::forward combinator, which sends a stream of values to a sink and then flushes the sink.

Note: this is only usable with Unpin sinks, so Sinks that aren't Unpin will need to be pinned in order to be used with this combinator.

Trait Implementations

impl<St, Si> Unpin for Forward<St, Si> where
    Si: Unpin + Sink,
    St: Unpin + Stream
[src]

impl<St, Si> Debug for Forward<St, Si> where
    Si: Unpin + Debug + Sink,
    St: Debug + Stream,
    <Si as Sink>::SinkItem: Debug
[src]

Formats the value using the given formatter. Read more

impl<St, Si> Future for Forward<St, Si> where
    Si: Sink + Unpin,
    St: Stream<Item = Result<<Si as Sink>::SinkItem, <Si as Sink>::SinkError>>, 
[src]

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

The result of the Future.

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

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

Auto Trait Implementations

impl<St, Si> Send for Forward<St, Si> where
    Si: Send,
    St: Send,
    <Si as Sink>::SinkItem: Send

impl<St, Si> Sync for Forward<St, Si> where
    Si: Sync,
    St: Sync,
    <Si as Sink>::SinkItem: Sync