#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

#1710 in Asynchronous

Download history 23/week @ 2024-07-20 32/week @ 2024-07-27 29/week @ 2024-08-03 37/week @ 2024-08-10 24/week @ 2024-08-17 33/week @ 2024-08-24 48/week @ 2024-08-31 19/week @ 2024-09-07 10/week @ 2024-09-14 42/week @ 2024-09-21 26/week @ 2024-09-28 13/week @ 2024-10-05 8/week @ 2024-10-12 13/week @ 2024-10-19 13/week @ 2024-10-26 17/week @ 2024-11-02

52 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

~700KB
~13K SLoC