Module udp

Source
Expand description

Provides a tokio::TcpStream like UdpStream implementation based on tokio::UdpSocket.

Structs§

UdpListener
An I/O object representing a UDP socket listening for incoming connections.
UdpStream
An I/O object representing a UDP stream connected to a remote endpoint.
UdpStreamReadHalf
UdpStream read-side implementation
UdpStreamWriteHalf
UdpStream write-side implementation

Functions§

set_custom_timeout
Set custom timeout. Note that this function can only be called before the [TIMEOUT] lazy variable is created.