Module udp

Source
Expand description

A UDP socket.

This module contains the UDP networking types, similar to those found in std::net, but suitable for async programming via futures and async/await.

After creating a UdpSocket by binding it to a socket address, data can be sent to and received from any other socket address.

Structsยง

RecvFrom
The future returned by UdpSocket::recv_from
SendTo
The future returned by UdpSocket::send_to
UdpSocket
A UDP socket.