#future #io #async #file-io #read-write #bufio

nightly futures-bufio

Buffered IO with futures on top of a threadpool for blocking IO

3 unstable releases

Uses old Rust 2015

0.2.0 Sep 7, 2017
0.1.1 Sep 7, 2017
0.1.0 Sep 4, 2017

#108 in #file-io

MIT license

36KB
515 lines

futures-bufio

Build Status Crates.io Documentation

Buffered IO with futures on top of a threadpool for blocking IO. This crate is primarily useful for readers or writers that cannot return EWOULDBLOCK, but may block or sleep (i.e., file IO).

This uses the nightly only feature conservative_impl_trait to make the types on non-allocating futures understable.


lib.rs:

This library provides buffered IO with futures on top of a threadpool for blocking IO.

This crate is most useful when readers or writers do not or cannot block, but do put threads to sleep. For example, files can always read or write, but their reads or writes are slow.

This crate uses the nightly-only feature conservative_impl_trait to eliminate box allocations around futures while still making the return types semi-readable.

Dependencies

~145KB