Expand description
Contains UDP socket-related helpers.
Structs§
- Connected
UdpStream - Mimics TCP-like stream functionality on a UDP socket by restricting it to a single
counterparty and implements [
tokio::io::AsyncRead
] and [tokio::io::AsyncWrite
]. The instance is always constructed using aUdpStreamBuilder
. - UdpStream
Builder - Builder object for the
ConnectedUdpStream
.
Enums§
- Foreign
Data Mode - Defines what happens when data from another
SocketAddr
arrives into theConnectedUdpStream
(other than the one that is considered a counterparty for that instance). - UdpStream
Parallelism - Determines how many parallel readers or writer sockets should be bound in
ConnectedUdpStream
.