io: wrappers for inspecting data on IO resources (#5033)

This commit is contained in:
Simon Farnsworth
2022-09-28 18:21:51 +00:00
committed by GitHub
parent 9b87daad7e
commit 96fab053ab
3 changed files with 331 additions and 0 deletions
+3
View File
@@ -10,14 +10,17 @@
//! [`Body`]: https://docs.rs/hyper/0.13/hyper/struct.Body.html
//! [`AsyncRead`]: tokio::io::AsyncRead
mod inspect;
mod read_buf;
mod reader_stream;
mod stream_reader;
cfg_io_util! {
mod sync_bridge;
pub use self::sync_bridge::SyncIoBridge;
}
pub use self::inspect::{InspectReader, InspectWriter};
pub use self::read_buf::read_buf;
pub use self::reader_stream::ReaderStream;
pub use self::stream_reader::StreamReader;