io: add tokio_util::io::{CopyToBytes, SinkWriter} (#5070)

Co-authored-by: Alice Ryhl <[email protected]>
Co-authored-by: Simon Farnsworth <[email protected]>
This commit is contained in:
Daniel Bischof
2022-10-30 11:04:22 +00:00
committed by GitHub
co-authored by Alice Ryhl Simon Farnsworth
parent 29c6de0e3e
commit 620880f4ca
4 changed files with 268 additions and 0 deletions
+4
View File
@@ -10,9 +10,11 @@
//! [`Body`]: https://docs.rs/hyper/0.13/hyper/struct.Body.html
//! [`AsyncRead`]: tokio::io::AsyncRead
mod copy_to_bytes;
mod inspect;
mod read_buf;
mod reader_stream;
mod sink_writer;
mod stream_reader;
cfg_io_util! {
@@ -20,8 +22,10 @@ cfg_io_util! {
pub use self::sync_bridge::SyncIoBridge;
}
pub use self::copy_to_bytes::CopyToBytes;
pub use self::inspect::{InspectReader, InspectWriter};
pub use self::read_buf::read_buf;
pub use self::reader_stream::ReaderStream;
pub use self::sink_writer::SinkWriter;
pub use self::stream_reader::StreamReader;
pub use crate::util::{poll_read_buf, poll_write_buf};