Expand description
Thread-local generational slab for connection sessions (MM-01).
Session slots are pre-reserved up front and reused via free list; the 16-bit generation counter guards against ABA when a completion for a closed session races the slot’s reuse. Single-threaded by design: the worker that owns a slab is the only thread that touches it.
Structs§
- Session
Slab - Generational slab of sessions.
Enums§
- Slab
Error - Errors from
SessionSlab::new.
Constants§
- MAX_
SLOTS - Maximum sessions a slab tracks (24-bit slot index in
crate::token::Token).
Traits§
- Generation
Bump - Bumps a slot’s generation (called by the worker right before reuse).