6 releases
0.3.0 | May 31, 2022 |
---|---|
0.2.1 | Jan 24, 2020 |
0.1.2 | May 15, 2019 |
0.1.1 | Mar 10, 2019 |
0.1.0 | Jan 2, 2019 |
#2061 in Network programming
108,695 downloads per month
Used in 382 crates
(20 directly)
9KB
160 lines
This crate provides the [RwStreamSink
] type. It wraps around a [Stream
]
and [Sink
] that produces and accepts byte arrays, and implements
[AsyncRead
] and [AsyncWrite
].
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.
Dependencies
~1.4–2MB
~42K SLoC