Module sequence

Module sequence 

Source
Expand description

Per-stream sequence state: serial-number arithmetic, duplicate windows, and wire-ID-to-handle mappings.

Sequence IDs are scoped to (conversation, sender). Each stream keeps a windowed bitmap of recently seen IDs (half-range window of 128) plus a bounded ring mapping recent wire IDs to stable application handles.

Structs§

EditRing
Bounded ring mapping an edit’s own wire ID back to the ID it replaced.
InboundStream
Inbound stream state for one (conversation, sender) pair.
MessageHandle
Stable application identity of a transcript message.
OutboundStream
Outbound stream state for the local sender in one conversation.
PendingRepair
A pending automatic repair request for one missing frame.
RefRing
Bounded ring mapping recent wire IDs to message handles within one stream epoch. When an ID is reused or evicted, the old mapping retires.
SeenWindow
256-bit seen-ID bitmap with half-range window semantics.
StreamKey
Key of an inbound stream.

Enums§

SerialClass
Classification of a received ID relative to a stream baseline.

Functions§

classify
serial_delta
Serial-number delta from last to id, modulo 256.