[][src]Module tokio::net::udp

UDP bindings for tokio.

The main struct for UDP is the UdpSocket, which represents a UDP socket. Reading and writing to it can be done using futures, which return the RecvDgram and SendDgram structs respectively.

For convenience it's also possible to convert raw datagrams into higher-level frames.



A future used to receive a datagram from a UDP socket.


A future used to write the entire contents of some data to a UDP socket.


A unified Stream and Sink interface to an underlying UdpSocket, using the Encoder and Decoder traits to encode and decode frames.


An I/O object representing a UDP socket.