Crate sansio_transport

Crate sansio_transport 

Source
Expand description

Uniform interface to send/recv UDP packets with ECN information.

Structs§

Capabilities
The capabilities a UDP socket supports on a certain platform
FiveTuple
Five Tuple consists of local address, peer address and protocol
FourTuple
Four Tuple consists of local address and peer address
RecvMeta
Transmit
TransportContext
Transport Context with local address, peer address, ECN, protocol, etc.
TransportMessage
A generic transmit with TransportContext
UdpSockRef
A borrowed UDP socket
UdpSocket
UdpSocketState
Tokio-compatible UDP socket with some useful specializations.

Enums§

EcnCodepoint
Explicit congestion notification codepoint
TransportProtocol
Type of transport protocol, either UDP or TCP

Constants§

BATCH_SIZE
Number of UDP packets to send/receive at a time

Traits§

AsyncUdpSocket
Abstract implementation of a UDP socket for runtime independence

Type Aliases§

TaggedBytesMut
BytesMut type transmit with TransportContext
TaggedString
String type transmit with TransportContext