diff options
author | Joel Galenson <jgalenson@google.com> | 2020-10-23 08:03:13 -0700 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2020-10-23 08:03:13 -0700 |
commit | 4bf0c30e286d482eb711dc677be906adcba4650b (patch) | |
tree | de038d1f2268222ebb5925c40db9bda0e2d8e565 /src/net/mod.rs | |
parent | 33e7b955494b6d15ed72863ad35c620e904302ed (diff) | |
download | mio-4bf0c30e286d482eb711dc677be906adcba4650b.tar.gz |
Import mio-0.7.3
Test: None
Change-Id: I7df903972aaf06adb1ecb20a63793fcf128edb8f
Diffstat (limited to 'src/net/mod.rs')
-rw-r--r-- | src/net/mod.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/net/mod.rs b/src/net/mod.rs new file mode 100644 index 0000000..91804ec --- /dev/null +++ b/src/net/mod.rs @@ -0,0 +1,24 @@ +//! Networking primitives +//! +//! The types provided in this module are non-blocking by default and are +//! designed to be portable across all supported Mio platforms. As long as the +//! [portability guidelines] are followed, the behavior should be identical no +//! matter the target platform. +//! +//! [portability guidelines]: ../struct.Poll.html#portability + +cfg_tcp! { + mod tcp; + pub use self::tcp::{TcpListener, TcpSocket, TcpStream}; +} + +cfg_udp! { + mod udp; + pub use self::udp::UdpSocket; +} + +#[cfg(unix)] +cfg_uds! { + mod uds; + pub use self::uds::{SocketAddr, UnixDatagram, UnixListener, UnixStream}; +} |