Available on (crate features
native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature tokio
only.Expand description
Types used for networking (tokio implementation)
Macros§
- stream_
impl 🔒 - Provide a set of network stream wrappers for a single stream type.
Structs§
- Incoming
TcpStreams - Asynchronous stream that yields incoming connections from a Tcp Listener.
- Incoming
Unix Streams - Asynchronous stream that yields incoming connections from a Unix Listener.
- TcpListener
- Wrap a Tokio Tcp Listener to behave as a futures::io::TcpListener.
- TcpStream
- Wrapper for Tokio’s Tcp streams, that implements the standard AsyncRead and AsyncWrite.
- Tokio
TcpListener 🔒 - A TCP socket server, listening for connections.
- Tokio
TcpStream 🔒 - A TCP stream between a local and a remote socket.
- Tokio
UdpSocket 🔒 - A UDP socket.
- Tokio
Unix 🔒Listener Unix - A Unix socket which can accept connections from other Unix sockets.
- Tokio
Unix 🔒Stream Unix - A structure representing a connected Unix socket.
- UdpSocket
- Wrap a Tokio UdpSocket
- Unix
Listener - Wrap a Tokio Unix Listener to behave as a futures::io::TcpListener.
- Unix
Stream - Wrapper for Tokio’s Unix streams, that implements the standard AsyncRead and AsyncWrite.
Functions§
- identity_
fn_ 🔒socketaddr - Wrapper for (not) converting std::net::SocketAddr to itself.
- try_
cvt_ 🔒tokio_ unix_ addr Unix - Try to convert a tokio
unix::SocketAddr
into a crate::SocketAddr.