broker_tokio/net/
mod.rs

1#![cfg(not(loom))]
2
3//! TCP/UDP/Unix bindings for `tokio`.
4//!
5//! This module contains the TCP/UDP/Unix networking types, similar to the standard
6//! library, which can be used to implement networking protocols.
7//!
8//! # Organization
9//!
10//! * [`TcpListener`] and [`TcpStream`] provide functionality for communication over TCP
11//! * [`UdpSocket`] provides functionality for communication over UDP
12//! * [`UnixListener`] and [`UnixStream`] provide functionality for communication over a
13//! Unix Domain Stream Socket **(available on Unix only)**
14//! * [`UnixDatagram`] provides functionality for communication
15//! over Unix Domain Datagram Socket **(available on Unix only)**
16
17//!
18//! [`TcpListener`]: TcpListener
19//! [`TcpStream`]: TcpStream
20//! [`UdpSocket`]: UdpSocket
21//! [`UnixListener`]: UnixListener
22//! [`UnixStream`]: UnixStream
23//! [`UnixDatagram`]: UnixDatagram
24
25mod addr;
26pub use addr::ToSocketAddrs;
27
28cfg_dns! {
29    mod lookup_host;
30    pub use lookup_host::lookup_host;
31}
32
33cfg_tcp! {
34    pub mod tcp;
35    pub use tcp::listener::TcpListener;
36    pub use tcp::stream::TcpStream;
37}
38
39cfg_udp! {
40    pub mod udp;
41    pub use udp::socket::UdpSocket;
42}
43
44cfg_uds! {
45    pub mod unix;
46    pub use unix::datagram::UnixDatagram;
47    pub use unix::listener::UnixListener;
48    pub use unix::stream::UnixStream;
49}