#api #io #stream

layered-io

I/O traits extending Read and Write

26 releases (breaking)

0.21.0 Mar 7, 2023
0.20.0 Nov 27, 2022
0.19.0 Nov 27, 2022
0.14.0 Jun 16, 2022
0.4.0 Mar 2, 2021

#2217 in Rust patterns

Download history 64/week @ 2023-02-13 178/week @ 2023-02-20 27/week @ 2023-02-27 62/week @ 2023-03-06 19/week @ 2023-03-13 5/week @ 2023-03-20 29/week @ 2023-03-27 32/week @ 2023-04-03 43/week @ 2023-04-10 9/week @ 2023-04-17 28/week @ 2023-04-24 25/week @ 2023-05-01 60/week @ 2023-05-08 14/week @ 2023-05-15 4/week @ 2023-05-22 61/week @ 2023-05-29

139 downloads per month
Used in 5 crates

Apache-2.0…

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.2–6MB
~103K SLoC