diff options
Diffstat (limited to 'tokio/src/io/io/mod.rs')
-rw-r--r-- | tokio/src/io/io/mod.rs | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tokio/src/io/io/mod.rs b/tokio/src/io/io/mod.rs new file mode 100644 index 00000000..07ad0e7b --- /dev/null +++ b/tokio/src/io/io/mod.rs @@ -0,0 +1,51 @@ +mod async_buf_read_ext; +mod async_read_ext; +mod async_write_ext; +mod buf_reader; +mod buf_stream; +mod buf_writer; +mod chain; +mod copy; +mod empty; +mod flush; +mod lines; +mod read; +mod read_exact; +mod read_line; +mod read_to_end; +mod read_to_string; +mod read_until; +mod repeat; +mod shutdown; +mod sink; +mod split; +mod take; +mod write; +mod write_all; + +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::async_buf_read_ext::AsyncBufReadExt; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::async_read_ext::AsyncReadExt; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::async_write_ext::AsyncWriteExt; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::buf_reader::BufReader; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::buf_stream::BufStream; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::buf_writer::BufWriter; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::copy::{copy, Copy}; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::empty::{empty, Empty}; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::repeat::{repeat, Repeat}; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::sink::{sink, Sink}; +#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411 +pub use self::take::Take; + +// used by `BufReader` and `BufWriter` +// https://github.com/rust-lang/rust/blob/master/src/libstd/sys_common/io.rs#L1 +const DEFAULT_BUF_SIZE: usize = 8 * 1024; |