Module net

Source
Expand description

Asynchronous networking abstractions.

Structs§

AcceptStream
A stream which resolves to an io::Result<(TcpStream, SocketAddr)>.
Acceptor
A future which resolves to an io::Result<(TcpListener, TcpStream, SocketAddr)>.
DatagramSocket
An I/O object representing a datagram socket.
EventedFd
A type which can be used for receiving IO events for a file descriptor.
RecvFrom
Future returned by DatagramSocket::recv_from().
SendTo
Future returned by DatagramSocket::send_to().
SendToVectored
Future returned by DatagramSocket::send_to_vectored().
TcpConnector
A future which resolves to a connected TcpStream.
TcpListener
An I/O object representing a TCP socket listening for incoming connections.
TcpStream
A single TCP connection.
UdpRecvFrom
Future returned by UdpSocket::recv_from().
UdpSocket
An I/O object representing a UDP socket.