Expand description
SessionSlot - the (org, project, label) triple that names a
session, and the routing key the view <-> workspace boundary
addresses one session task by.
The triple names the slot; the session id names the occupant. A
slot is stable for the life of a project’s lead session or a
worker’s: /new, /resume and a restart swap the occupant and
leave the slot alone.
Lives in forge-primitives so the same routing key flows through every layer (view, workspace, agent) without each crate growing its own near-identical newtype.
Re-exports§
use crate::workers::LEAD_LABEL;🔒
Structs§
- Session
Slot - The
(org, project, label)triple naming one session.organdprojectare theforge.tomlnames - the same pair the redbsessionstable is keyed by - andlabelcarries the role:LEAD_LABELfor a project’s lead, the worker’s own label otherwise.