rust-libp2p/rw-stream-sink
Jef 5217e29fab
Add rustfmt to travis (#137)
* RFC styling-based `rustfmt.toml`

* Add rustfmt to travis

* Remove rustfmt.toml and actually fix too-long lines instead of ignoring them
2018-03-07 16:20:55 +01:00
..
2018-03-07 16:20:55 +01:00
2017-11-20 12:40:45 +01:00
2017-12-07 12:59:46 +01:00

This crate provides the RwStreamSink type. It wraps around a Stream + Sink that produces and accepts byte arrays, and implements AsyncRead and AsyncWrite.

Each call to write() will send one packet on the sink. Calls to read() will read from incoming packets.

Note

: Although this crate is hosted in the libp2p repo, it is purely a utility crate and not at all specific to libp2p.