[][src]Module futures_util::sink

This is supported on crate feature sink only.

Sinks

This module contains a number of functions for working with Sinks, including the SinkExt trait which adds methods to Sink types.

This module is only available when the sink feature of this library is activated, and it is activated by default.

Structs

Buffersink

Sink for the buffer method.

Closesink

Future for the close method.

Drainsink

Sink for the drain function.

Fanoutsink

Sink that clones incoming items and forwards them to two sinks at the same time.

Flushsink

Future for the flush method.

Sendsink

Future for the send method.

SendAllsink

Future for the send_all method.

SinkErrIntosink

Sink for the sink_err_into method.

SinkMapErrsink

Sink for the sink_map_err method.

Withsink

Sink for the with method.

WithFlatMapsink

Sink for the with_flat_map method.

Traits

Sinksink

A Sink is a value into which other values can be sent, asynchronously.

SinkExtsink

An extension trait for Sinks that provides a variety of convenient combinator functions.

Functions

drainsink

Create a sink that will just discard all items given to it.