Struct futures::sink::SendAll
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct SendAll<T, U> where
U: Stream, { /* fields omitted */ }
Future for the Sink::send_all
combinator, which sends a stream of values
to a sink and then waits until the sink has fully flushed those values.
Trait Implementations
impl<T, U> Debug for SendAll<T, U> where
T: Debug,
U: Debug + Stream,
<U as Stream>::Item: Debug,
[src]
T: Debug,
U: Debug + Stream,
<U as Stream>::Item: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<T, U> Future for SendAll<T, U> where
T: Sink,
U: Stream<Item = <T as Sink>::SinkItem>,
<T as Sink>::SinkError: From<<U as Stream>::Error>,
[src]
T: Sink,
U: Stream<Item = <T as Sink>::SinkItem>,
<T as Sink>::SinkError: From<<U as Stream>::Error>,
type Item = (T, U)
A successful value
type Error = <T as Sink>::SinkError
An error
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<(T, U)>, <T as Sink>::SinkError>
[src]
&mut self,
cx: &mut Context
) -> Result<Async<(T, U)>, <T as Sink>::SinkError>
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more