Skip to main content

Module udp

Module udp 

Source
Expand description

Contains UDP socket-related helpers.

Structsยง

ConnectedUdpStream
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 must always be constructed using a UdpStreamBuilder.
METRIC_UDP_EGRESS_LEN ๐Ÿ”’
METRIC_UDP_INGRESS_LEN ๐Ÿ”’
UdpStreamBuilder
Builder object for the ConnectedUdpStream.

Enumsยง

ForeignDataMode
Defines what happens when data from another SocketAddr arrives into the ConnectedUdpStream (other than the one that is considered a counterparty for that instance).
State ๐Ÿ”’
UdpStreamParallelism
Determines how many parallel readers or writer sockets should be bound in ConnectedUdpStream.

Constantsยง

QUEUE_DISPATCH_THRESHOLD ๐Ÿ”’

Type Aliasesยง

BoxIoSink ๐Ÿ”’