Skip to main content

Module net

Module net 

Source
Expand description

Types used for networking (tokio implementation)

MacrosΒ§

stream_impl πŸ”’
Provide a set of network stream wrappers for a single stream type.

StructsΒ§

IncomingTcpStreams
Asynchronous stream that yields incoming connections from a Tcp Listener.
IncomingUnixStreams
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.
TokioTcpListener πŸ”’
A TCP socket server, listening for connections.
TokioTcpStream πŸ”’
A TCP stream between a local and a remote socket.
TokioUdpSocket πŸ”’
A UDP socket.
TokioUnixListener πŸ”’
A Unix socket which can accept connections from other Unix sockets.
TokioUnixStream πŸ”’
A structure representing a connected Unix socket.
UdpSocket
Wrap a Tokio UdpSocket
UnixListener
Wrap a Tokio Unix Listener to behave as a futures::io::TcpListener.
UnixStream
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 πŸ”’
Try to convert a tokio unix::SocketAddr into a crate::SocketAddr.