Module sink
Source Expand description
Asynchronous sinks.
This module contains:
- The Sinktrait, which allows you to asynchronously write data.
- The SinkExttrait, which provides adapters for chaining and composing
sinks.
- Buffer
- Sink for the buffermethod.
- Close
- Future for the closemethod.
- Drain
- Sink for the drainfunction.
- Fanout
- Sink that clones incoming items and forwards them to two sinks at the same time.
- Feed
- Future for the feedmethod.
- Flush
- Future for the flushmethod.
- Send
- Future for the sendmethod.
- SendAll
- Future for the send_allmethod.
- SinkErrInto
- Sink for the sink_err_intomethod.
- SinkMapErr
- Sink for the sink_map_errmethod.
- Unfold
- Sink for the unfoldfunction.
- With
- Sink for the withmethod.
- WithFlatMap
- Sink for the with_flat_mapmethod.
- Sink
- A Sinkis a value into which other values can be sent, asynchronously.
- SinkExt
- An extension trait for Sinks that provides a variety of convenient
combinator functions.
- drain
- Create a sink that will just discard all items given to it.
- unfold
- Create a sink from a function which processes one item at a time.