diff options
author | Carl Lerche <me@carllerche.com> | 2019-11-25 14:32:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 14:32:55 -0800 |
commit | 4ddc4371709562d2bd1d0373f0555f7c31926e53 (patch) | |
tree | c34ef5906bf8ea7e7c732bd2c211795657e33455 /tokio/src/net/mod.rs | |
parent | 3ecaa6d91cef271b4c079a2e28bc3270280bcee6 (diff) |
doc: add more doc_cfg annotations (#1821)
Also makes the `tokio::net::{tcp, udp, unix}` modules only for "utility"
types. The primary types are in `tokio::net` directly.
Diffstat (limited to 'tokio/src/net/mod.rs')
-rw-r--r-- | tokio/src/net/mod.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tokio/src/net/mod.rs b/tokio/src/net/mod.rs index ac913b21..a7b98cdb 100644 --- a/tokio/src/net/mod.rs +++ b/tokio/src/net/mod.rs @@ -28,15 +28,18 @@ pub use addr::ToSocketAddrs; cfg_tcp! { pub mod tcp; - pub use tcp::{TcpListener, TcpStream}; + pub use tcp::listener::TcpListener; + pub use tcp::stream::TcpStream; } cfg_udp! { pub mod udp; - pub use udp::UdpSocket; + pub use udp::socket::UdpSocket; } cfg_uds! { pub mod unix; - pub use unix::{UnixDatagram, UnixListener, UnixStream}; + pub use unix::datagram::UnixDatagram; + pub use unix::listener::UnixListener; + pub use unix::stream::UnixStream; } |