#api #io #stream

layered-io

I/O traits extending Read and Write

17 releases (10 breaking)

0.10.1 Nov 19, 2021
0.9.0 Nov 12, 2021
0.6.1 Jul 14, 2021
0.4.0 Mar 2, 2021

#1114 in Rust patterns

Download history 126/week @ 2021-08-16 24/week @ 2021-08-23 1/week @ 2021-08-30 8/week @ 2021-09-06 60/week @ 2021-09-13 6/week @ 2021-09-20 14/week @ 2021-09-27 17/week @ 2021-10-04 19/week @ 2021-10-11 6/week @ 2021-10-18 10/week @ 2021-10-25 5/week @ 2021-11-01 49/week @ 2021-11-08 95/week @ 2021-11-15 5/week @ 2021-11-22 30/week @ 2021-11-29

179 downloads per month
Used in 5 crates

Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT

68KB
1.5K SLoC

layered-io

I/O traits extending Read and Write

Github Actions CI Status crates.io page docs.rs docs

This crate defines ReadLayered and WriteLayered traits which extend std::io::Read and std::io::Write with additional functionality useful for performing I/O through layers of buffering and translation.

And it defines LayeredReader, LayeredWriter, and LayeredDuplexer types which implement ReadLayered, WriteLayered, and both, respectively, by wrapping implementations of std::io::Read, std::io::Write, and both, respectively.

Dependencies

~0.3–2.3MB
~53K SLoC

a