#buffer #stream #tokio #tcp #io-stream

tk-bufstream

A buffered stream backed by contiguous buffers (netbuf) for tokio

7 releases

Uses old Rust 2015

0.3.0 Mar 30, 2017
0.2.4 Feb 17, 2017
0.2.3 Dec 29, 2016
0.2.0 Nov 22, 2016
0.1.0 Oct 20, 2016

#1689 in Asynchronous

Download history 35/week @ 2024-03-13 36/week @ 2024-03-20 37/week @ 2024-03-27 54/week @ 2024-04-03 25/week @ 2024-04-10 29/week @ 2024-04-17 35/week @ 2024-04-24 26/week @ 2024-05-01 31/week @ 2024-05-08 37/week @ 2024-05-15 23/week @ 2024-05-22 42/week @ 2024-05-29 22/week @ 2024-06-05 25/week @ 2024-06-12 25/week @ 2024-06-19 20/week @ 2024-06-26

95 downloads per month
Used in 11 crates (5 directly)

MIT/Apache

31KB
623 lines

Buffered Stream Abstraction for Tokio (Rust)

Status:Alpha

Unlike in synchronous code, where buffered stream are very common, in async code buffers are usually put in some glue code (I guess it's called Transport in tokio-proto).

This crate explores alternative idea of tying buffers (and some helpers for making transports) to IO Stream, which might make certain cases easier.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~690KB
~13K SLoC