Skip to main content

Module spsc

Module spsc 

Source
Expand description

Bounded SPSC ownership receipts (E10.2).

Packet/index ownership moves through a fixed ring. There is no shared mutable packet buffer: [pop] transfers exclusive ownership of a Copy receipt. A second take of the same (slot, generation) is Unauthorized.

Structs§

OwnershipReceipt
Exclusive ownership of one packet or index range. Copy is a token, not a second owner — SpscQueue::take of an already-popped receipt fails.
SpscQueue
Single-producer / single-consumer queue of ownership receipts.

Constants§

SPSC_CAP
Ring capacity. A 33rd live receipt is QdnfError::Capacity.