pub struct ChannelCapacities {
pub rx: NonZeroUsize,
pub unrouted: NonZeroUsize,
pub send: NonZeroUsize,
pub deliver: NonZeroUsize,
pub accept: NonZeroUsize,
}tokio only.Expand description
The capacity of every bounded channel the adapter owns, all the caller’s: a channel of zero slots is unrepresentable.
Fields§
§rx: NonZeroUsizeA per-connection inbound-datagram channel (the dedicated forwarder for a
SrtSocket::connected caller, or a SrtListener’s per-accepted-connection route):
bounded so a peer that floods faster than the driver task’s tick loop can drain does not
grow the queue without bound; excess datagrams are dropped, not buffered.
unrouted: NonZeroUsizeA SrtListener’s candidate-new-connection queue (datagrams the routing pump could not
match to any accepted connection): bounded for the same reason, even though
ListenerLimits::max_pending already caps how many candidates hold engine state.
send: NonZeroUsizeThe application-to-driver payload channel (SrtSocket::send). Bounded so the
application is paced by the driver instead of queueing without limit; the driver
additionally stops draining it while the sender holds a full flow window of
unacknowledged packets (see Driver::send_window_open).
deliver: NonZeroUsizeThe driver-to-application delivery channel (SrtSocket::recv_event). A full channel
drops payloads (counted in SocketStats::deliver_dropped and reported as one coalesced
damage report once space frees); damage reports and a policy refusal are never lost.
accept: NonZeroUsizeA SrtListener’s pending-accept queue: handshakes that finished while accept was
not being polled.