Struct futures_util::stream::Forward[][src]

#[must_use = "steams do nothing unless polled"]
pub struct Forward<St: Stream, Si: Sink + Unpin> { /* 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: Debug + Stream, Si: Debug + Sink + Unpin> Debug for Forward<St, Si> where
    Si::SinkItem: Debug
[src]

Formats the value using the given formatter. Read more

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

impl<St, Si> Future for Forward<St, Si> where
    Si: Sink + Unpin,
    St: Stream<Item = Result<Si::SinkItem, Si::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