| Crates.io | tokio-rw-stream-sink |
| lib.rs | tokio-rw-stream-sink |
| version | 0.5.0 |
| created_at | 2021-11-17 08:13:16.726334+00 |
| updated_at | 2021-11-21 17:04:26.790682+00 |
| description | Adaptator between Stream/Sink and AsyncRead/AsyncWrite |
| homepage | |
| repository | https://github.com/paritytech/rw-stream-sink |
| max_upload_size | |
| id | 483208 |
| size | 7,603 |
This crate provides the RwStreamSink type. It wraps around a Stream
and Sink that produces and accepts byte arrays, and implements the
AsyncRead and AsyncWrite traits.
Each call to AsyncWrite::poll_write will send one packet to the sink.
Calls to AsyncRead::poll_read will read from the stream's incoming packets.