diff options
author | Carl Lerche <me@carllerche.com> | 2019-11-20 00:05:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 00:05:14 -0800 |
commit | 69975fb9601bbb21659db283d888470733bae660 (patch) | |
tree | 8db7c9a31e4125646634af09e197ae6479e10cc4 /tokio/src/net/tcp/stream.rs | |
parent | 7c8b8877d440629ab9a27a2c9dcef859835d3536 (diff) |
Refactor the I/O driver, extracting slab to `tokio::util`. (#1792)
The I/O driver is made private and moved to `tokio::io::driver`. `Registration` is
moved to `tokio::io::Registration` and `PollEvented` is moved to `tokio::io::PollEvented`.
Additionally, the concurrent slab used by the I/O driver is cleaned up and extracted to
`tokio::util::slab`, allowing it to eventually be used by other types.
Diffstat (limited to 'tokio/src/net/tcp/stream.rs')
-rw-r--r-- | tokio/src/net/tcp/stream.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tokio/src/net/tcp/stream.rs b/tokio/src/net/tcp/stream.rs index 1a844e86..f1905d87 100644 --- a/tokio/src/net/tcp/stream.rs +++ b/tokio/src/net/tcp/stream.rs @@ -1,7 +1,6 @@ use crate::future::poll_fn; -use crate::io::{AsyncRead, AsyncWrite}; +use crate::io::{AsyncRead, AsyncWrite, PollEvented}; use crate::net::tcp::split::{split, ReadHalf, WriteHalf}; -use crate::net::util::PollEvented; use crate::net::ToSocketAddrs; use bytes::{Buf, BufMut}; |