referrerpolicy=no-referrer-when-downgrade

Module polkadot_node_subsystem::gen::futures::prelude::sink

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.

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§

  • 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.