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§
- Edit
Ring - Bounded ring mapping an edit’s own wire ID back to the ID it replaced.
- Inbound
Stream - Inbound stream state for one
(conversation, sender)pair. - Message
Handle - Stable application identity of a transcript message.
- Outbound
Stream - Outbound stream state for the local sender in one conversation.
- Pending
Repair - 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.
- Seen
Window - 256-bit seen-ID bitmap with half-range window semantics.
- Stream
Key - Key of an inbound stream.
Enums§
- Serial
Class - Classification of a received ID relative to a stream baseline.
Functions§
- classify
- serial_
delta - Serial-number delta from
lasttoid, modulo 256.