Expand description
Outbound fragmentation planning and fixed-capacity reassembly.
Reassembly storage is one global page pool shared by all conversations: a fragment’s bytes are stored in linked 80-byte pages, and a slot holds only its key, presence bitmaps, per-fragment lengths/page heads, first-fragment metadata, and deadlines. A conversation with no incomplete fragmented message consumes no page storage.
Structs§
- Body
TooLarge - The body exceeds the wire maximum of 10 fragments × 160 bytes.
- First
Meta - Message-level metadata retained from fragment zero (spec: options from the first fragment apply to the entire reassembled message).
- Fragment
Plan - Plan for splitting an outbound body into fragments.
- Reassembly
Pool - Fixed-capacity reassembly pool.
- Render
Result - Result of rendering a slot.
- Render
Sentinels - Sentinels inserted for absent portions of a partial message.
- Slot
- One in-progress reassembly.
Enums§
- Insert
Outcome - Outcome of storing one received fragment.
Constants§
Functions§
- empty_
slot - render_
slot - Render a slot’s fragments into
outas UTF-8, inserting one sentinel per absent run and skipping code points damaged by missing byte boundaries.