Struct futures_util::sink::Drain[][src]

#[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.

Trait Implementations

impl<T: Debug> Debug for Drain<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Sink for Drain<T>
[src]

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

Auto Trait Implementations

impl<T> Send for Drain<T> where
    T: Send

impl<T> Sync for Drain<T> where
    T: Sync