Skip to main content

Module proxy

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§

DatagramForwardService
Per-association memory and metadata policy.
DatagramToProxyBridge
Connects an egress socket for each ingress association, with a pluggable connector, and hands both to the inner service as a BridgeIo.
DatagramToProxyBridgeLayer
A Layer that produces DatagramToProxyBridge services.
Peer
An application-authorized peer on a dedicated receive socket.
UdpConnector
Connects a UdpPacketSocket to the request’s IP target, configured by its UdpSocketConfig. Resolving a name is the caller’s: a domain target is refused.

Enums§

DatagramForwardError
A forwarding failure ends both directions; it never authorizes a route change.
EcnPolicy
ECN behavior selected before either direction starts sending.

Traits§

DatagramBridgeInput
What a DatagramToProxyBridge bridges: an ingress socket, alone or with what an inspection learned about it, handed on with its egress.