9 lines
411 B
Markdown
Raw Normal View History

2017-12-06 16:24:15 +01:00
This crate provides the `RwStreamSink` type. It wraps around a `Stream + Sink` that produces
2017-12-07 12:59:46 +01:00
and accepts byte arrays, and implements `AsyncRead` and `AsyncWrite`.
2017-12-06 16:24:15 +01:00
Each call to `write()` will send one packet on the sink. Calls to `read()` will read from
incoming packets.
2017-12-07 12:59:46 +01:00
> **Note**: Although this crate is hosted in the libp2p repo, it is purely a utility crate and
> not at all specific to libp2p.