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::Sessionpair: two peers in one process, no sockets or crypto. - poll
- Poll operations and their async helpers.
Structs§
- Keep
Alive - How long a session may go without hearing from its peer:
Staleaftersoft, closed asError::IdleTimeoutafterhard. - Limits
- Limits to change on a live session with
poll::Session::set_limits. EachNoneleaves its limit as it is. - Probe
- The rate a transport’s sender probes up to, which the session sets and the transport reads.
- Receive
Window - 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.
- Close
Kind - The typed transport condition when no application code was received.
- Keep
Alive Error - Why a transport refused a
KeepAlive. - Limits
Error - Why a transport did not apply
Limits. - Liveness
- Whether a session heard from its peer within its
KeepAlive’ssoftlimit.
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
Wireholds. - Wire
Source - 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.