diff options
author | Carl Lerche <me@carllerche.com> | 2019-08-02 12:50:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-02 12:50:40 -0700 |
commit | ee9105d166e4cf64b6beec8c9b773f7d5dbea522 (patch) | |
tree | db135761f81544b5ab0e5c6b2e7260af658d0000 /tokio/src/prelude.rs | |
parent | 5a4f849bba2b7f7788b1f9d108c8763d89241418 (diff) |
tokio: add async io traits to prelude (#1378)
Diffstat (limited to 'tokio/src/prelude.rs')
-rw-r--r-- | tokio/src/prelude.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tokio/src/prelude.rs b/tokio/src/prelude.rs index 921c8eef..48b1e790 100644 --- a/tokio/src/prelude.rs +++ b/tokio/src/prelude.rs @@ -12,6 +12,9 @@ pub use crate::util::FutureExt; pub use std::future::Future; -pub use std::task::{self, Poll}; + #[cfg(feature = "io")] -pub use tokio_io::{AsyncRead, AsyncWrite}; +pub use tokio_io::{ + AsyncBufRead, AsyncBufReadExt as _, AsyncRead, AsyncReadExt as _, AsyncWrite, + AsyncWriteExt as _, +}; |