Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sunfishcode/layered-io

I/O traits extending Read and Write
https://github.com/sunfishcode/layered-io

library rust

Last synced: 27 days ago
JSON representation

I/O traits extending Read and Write

Awesome Lists containing this project

README

        


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.

[`ReadLayered`]: https://docs.rs/layered-io/latest/layered_io/trait.ReadLayered.html
[`WriteLayered`]: https://docs.rs/layered-io/latest/layered_io/trait.WriteLayered.html
[`std::io::Read`]: https://doc.rust-lang.org/std/io/trait.Read.html
[`std::io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
[`LayeredReader`]: https://docs.rs/layered-io/latest/layered_io/struct.LayeredReader.html
[`LayeredWriter`]: https://docs.rs/layered-io/latest/layered_io/struct.LayeredWriter.html
[`LayeredDuplexer`]: https://docs.rs/layered-io/latest/layered_io/struct.LayeredDuplexer.html