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

Download history 28893/week @ 2022-11-27 28963/week @ 2022-12-04 30595/week @ 2022-12-11 26347/week @ 2022-12-18 14861/week @ 2022-12-25 23662/week @ 2023-01-01 27640/week @ 2023-01-08 31226/week @ 2023-01-15 30743/week @ 2023-01-22 26604/week @ 2023-01-29 26029/week @ 2023-02-05 28692/week @ 2023-02-12 27130/week @ 2023-02-19 28380/week @ 2023-02-26 25770/week @ 2023-03-05 25847/week @ 2023-03-12

108,695 downloads per month
Used in 382 crates (20 directly)

MIT license

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