mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-22 00:00:11 +02:00
io: Take struct re-export to main crate (#1670)
This commit is contained in:
@@ -43,6 +43,8 @@ pub use self::empty::{empty, Empty};
|
||||
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
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ pub use self::async_write::AsyncWrite;
|
||||
#[cfg(feature = "util")]
|
||||
pub use self::io::{
|
||||
copy, empty, repeat, sink, AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader, BufStream,
|
||||
BufWriter, Copy, Empty, Repeat, Sink,
|
||||
BufWriter, Copy, Empty, Repeat, Sink, Take,
|
||||
};
|
||||
|
||||
// Re-export `Buf` and `BufMut` since they are part of the API
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ pub use tokio_fs::{stderr, stdin, stdout, Stderr, Stdin, Stdout};
|
||||
pub use tokio_io::split::split;
|
||||
pub use tokio_io::{
|
||||
empty, repeat, sink, AsyncBufRead, AsyncBufReadExt, AsyncRead, AsyncReadExt, AsyncWrite,
|
||||
AsyncWriteExt, BufReader, BufWriter, Empty, Repeat, Sink,
|
||||
AsyncWriteExt, BufReader, BufWriter, Empty, Repeat, Sink, Take,
|
||||
};
|
||||
|
||||
// Re-export io::Error so that users don't have to deal
|
||||
|
||||
Reference in New Issue
Block a user