Module futures_util::sink

source ยท
Expand description

Asynchronous sinks.

This module contains:

  • The Sink trait, which allows you to asynchronously write data.
  • The SinkExt trait, which provides adapters for chaining and composing sinks.

Modulesยง

Structsยง

Traitsยง

  • A Sink is a value into which other values can be sent, asynchronously.
  • An extension trait for Sinks that provides a variety of convenient combinator functions.

Functionsยง

  • assert_sink ๐Ÿ”’
  • Create a sink that will just discard all items given to it.
  • Create a sink from a function which processes one item at a time.