type AdmissionCell = Arc<OnceLock<AdmissionToken>>;Expand description
The admission-token cell a SessionSlot shares with the SessionSlotGuard that allocated it.
Behind an Arc for two reasons. The slot is cloned into the sessions cache and into the guard, so
the token commit writes through the guard has to land in the cached copy every teardown reads
from — the Arc is that one shared cell. And it lets commit_slot_guard recognise its own slot
when it re-reads the cache by key: the key is a reusable pseudonym, so the entry found there may be
a successor Session’s, and comparing this cell by identity is what rejects a foreign slot.
Aliased Type§
struct AdmissionCell { /* private fields */ }