#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

#1585 in Asynchronous

Download history 24/week @ 2024-01-08 9/week @ 2024-01-15 8/week @ 2024-01-22 2/week @ 2024-01-29 13/week @ 2024-02-05 14/week @ 2024-02-12 27/week @ 2024-02-19 36/week @ 2024-02-26 34/week @ 2024-03-04 32/week @ 2024-03-11 38/week @ 2024-03-18 28/week @ 2024-03-25 67/week @ 2024-04-01 24/week @ 2024-04-08 29/week @ 2024-04-15

151 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