Skip to main content

Module transport

Module transport 

Source
Expand description

The poll transport interface owned by moq-net.

Implement these traits for a transport, or wrap a backend at the application boundary. moq-tokio and moq-uring provide their own adapters, and memory links two peers in one process. The async helpers only drive the required poll methods. Sessions take a poll::Boxable transport, which adds thread bounds; wrap a thread-local transport in a type that checks the thread on use (moq-uring has one).

Modules§

memory
An in-memory poll::Session pair: two peers in one process, no sockets or crypto.
poll
Poll operations and their async helpers.

Structs§

KeepAlive
How long a session may go without hearing from its peer: Stale after soft, closed as Error::IdleTimeout after hard.
Limits
Limits to change on a live session with poll::Session::set_limits. Each None leaves its limit as it is.
Probe
The rate a transport’s sender probes up to, which the session sets and the transport reads.
ReceiveWindow
The receive credit a transport grants its peer, which bounds what a stream the session stops reading still holds.
Wire
One connection’s cumulative wire counters, which its transport updates as it sends and receives: its bytes, its sender’s losses and waits on the congestion controller and on the peer’s connection-level credit, and its receiver’s holds on a spent receive window.

Enums§

Address
Where a session’s request target travels.
CloseKind
The typed transport condition when no application code was received.
KeepAliveError
Why a transport refused a KeepAlive.
LimitsError
Why a transport did not apply Limits.
Liveness
Whether a session heard from its peer within its KeepAlive’s soft limit.

Constants§

MIN_RECEIVE_WINDOW
The smallest connection receive window a transport that leases may offer: one 1 MiB storage segment.
SETUP_RECEIVE_WINDOW
The connection receive window a server offers before it admits the session.

Traits§

Error
A transport failure with optional session and stream application codes.
Metrics
Connection-level metrics a transport reports, beyond the byte counts its Wire holds.
WireSource
Reads a connection’s counters on demand, for a transport that cannot cheaply push them as it sends and receives, such as a TCP socket whose kernel counts its bytes.