#[must_use = "futures do nothing unless polled"]
pub struct Drain<T> { /* fields omitted */ }
A sink that will discard all items given to it.
See the drain()
function for more details.
Formats the value using the given formatter. Read more
The type of value that the sink accepts.
The type of value produced by the sink when an error occurs.
Attempts to prepare the Sink
to receive a value. Read more
Begin the process of sending a value to the sink. Each call to this function must be proceeded by a successful call to poll_ready
which returned Ok(Poll::Ready(()))
. Read more
Flush any remaining output from this sink. Read more
Flush any remaining output and close this sink, if necessary. Read more