Module proxy
Available on crate features
std and udp only.Expand description
Bounded, packet-preserving forwarding between two fixed UDP peers: the datagram counterpart of forwarding a byte stream untouched.
This is address translation, not an IP tunnel. Payloads and datagram boundaries are preserved, including empty datagrams and GRO groups. ECN preservation is explicit; timestamps, interface indices and original destinations remain local receive metadata. No QUIC parsing, retransmission or congestion control occurs.
Structs§
- Datagram
Forward Recovery - An opt-in forwarding bridge which prepares replacement egress sockets through the same connector and original request. Network observations never select a new destination.
- Datagram
Forward Service - Per-association memory and metadata policy.
- Datagram
Recovery - Recovery controls shared by a set of independently forwarded associations.
- Datagram
Recovery Config - Preparation and outage policy for opt-in egress transport recovery.
- Datagram
Recovery Signal - A bounded, coalescing signal from a trusted network or routing-policy observer.
- Datagram
Recovery State - Trusted routing revision and whether a usable replacement can be prepared. Repeated identical snapshots are ignored. Revisions need only change, not increase.
- Datagram
ToProxy Bridge - Connects an egress socket for each ingress association, with a pluggable connector, and
hands both to the inner service as a
BridgeIo. - Datagram
ToProxy Bridge Layer - A
Layerthat producesDatagramToProxyBridgeservices. - Peer
- An application-authorized peer on a dedicated receive socket.
- UdpConnector
- Connects a
UdpPacketSocketto the request’s IP target, configured by itsUdpSocketConfig: itsConnectorTargetwhen set, else its authority. Resolving a name is the caller’s: a domain target is refused.
Enums§
- Datagram
Forward Error - A forwarding failure ends both directions; a closed socket permits a bounded drain. Neither outcome authorizes a route change.
- Datagram
Recovery Failure Action - What happens when preparing or validating a replacement fails.
- EcnPolicy
- ECN behavior selected before either direction starts sending.
- Packet
Error Policy - How
DatagramForwardServicetreats an error concerning one datagram.
Traits§
- Datagram
Bridge Input - What a
DatagramToProxyBridgebridges: an ingress socket, alone or with what an inspection learned about it, handed on with its egress.