Skip to main content

Module seam_queue

Module seam_queue 

Source
Expand description

Bounded callback seams (spec 042, 3.12, I-3).

Every remote context and sink client declares an in-flight limit and a queue capacity, each 1 to 65,536 with no default. A call that finds the queue full is never enqueued: it is refused at once and counted. A call that waits for an in-flight slot waits no longer than its own deadline. A response that arrives after its caller stopped waiting is discarded and counted as late. Memory is bounded by the two limits, because every admitted call holds a slot until its exchange ends.

Structs§

QueueDeadline
The call’s deadline passed while it waited for an in-flight slot.
QueueFull
The queue was full; the call was not enqueued.
Running
An admitted call holding an in-flight slot.
SeamCounters
A seam’s counters, for metrics (3.12.4).
SeamQueue
One seam’s bounded queue. Clones share the queue.
Slot
An admitted call, queued until Slot::start returns.

Constants§

MAX_SEAM_LIMIT
The greatest in-flight limit or queue capacity (3.12.1).
QUEUE_FULL
The failure reason a full queue reports (3.12.1).