[][src]Module futures_util::sink

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

Buffer

Sink for the buffer method.

Close

Future for the close method.

Drain

Sink for the drain function.

Fanout

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

Flush

Future for the flush method.

Send

Future for the send method.

SendAll

Future for the send_all method.

SinkErrInto

Sink for the sink_err_into method.

SinkMapErr

Sink for the sink_map_err method.

With

Sink for the with method.

WithFlatMap

Sink for the with_flat_map method.

Traits

Sink

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

SinkExt

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

Functions

drain

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