tokio-rw-stream-sink

Crates.iotokio-rw-stream-sink
lib.rstokio-rw-stream-sink
version0.5.0
sourcesrc
created_at2021-11-17 08:13:16.726334
updated_at2021-11-21 17:04:26.790682
descriptionAdaptator between Stream/Sink and AsyncRead/AsyncWrite
homepage
repositoryhttps://github.com/paritytech/rw-stream-sink
max_upload_size
id483208
size7,603
Donough Liu (ldm0)

documentation

README

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.

Commit count: 1

cargo fmt