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> Unpin for Forward<St, Si> where
Si: Unpin + Sink,
St: Unpin + Stream, impl<St, Si> Debug for Forward<St, Si> where
Si: Unpin + Debug + Sink,
St: Debug + Stream,
<Si as Sink>::SinkItem: Debug, [src]
impl<St, Si> Debug for Forward<St, Si> where
Si: Unpin + Debug + Sink,
St: Debug + Stream,
<Si as Sink>::SinkItem: Debug, fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>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]
impl<St, Si> Future for Forward<St, Si> where
Si: Sink + Unpin,
St: Stream<Item = Result<<Si as Sink>::SinkItem, <Si as Sink>::SinkError>>, type Output = Result<Si, <Si as Sink>::SinkError>
🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
The result of the Future.
fn poll(
self: PinMut<Forward<St, Si>>,
cx: &mut Context
) -> Poll<<Forward<St, Si> as Future>::Output>[src]
fn poll(
self: PinMut<Forward<St, Si>>,
cx: &mut Context
) -> Poll<<Forward<St, Si> as Future>::Output>🔬 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