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§

DatagramForwardRecovery
An opt-in forwarding bridge which prepares replacement egress sockets through the same connector and original request. Network observations never select a new destination.
DatagramForwardService
Per-association memory and metadata policy.
DatagramRecovery
Recovery controls shared by a set of independently forwarded associations.
DatagramRecoveryConfig
Preparation and outage policy for opt-in egress transport recovery.
DatagramRecoverySignal
A bounded, coalescing signal from a trusted network or routing-policy observer.
DatagramRecoveryState
Trusted routing revision and whether a usable replacement can be prepared. Repeated identical snapshots are ignored. Revisions need only change, not increase.
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: its ConnectorTarget when set, else its authority. Resolving a name is the caller’s: a domain target is refused.

Enums§

DatagramForwardError
A forwarding failure ends both directions; a closed socket permits a bounded drain. Neither outcome authorizes a route change.
DatagramRecoveryFailureAction
What happens when preparing or validating a replacement fails.
EcnPolicy
ECN behavior selected before either direction starts sending.
PacketErrorPolicy
How DatagramForwardService treats an error concerning one datagram.

Traits§

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