mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 17:21:34 +00:00
* Rename Transport::RawConn to Output * Remove AsyncRead + AsyncWrite bound on Transport::Output * UpgradedNode now always implements Transport * Add and tweak modifiers for Transport and ConnectionUpgrade * Secio upgrade now returns the pubkey in its output * Add upgrade::apply * Add Transport::and_then * Rework the swarm * Rustfmt * Fix concerns
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.