Skip to main content

Module registry

Module registry 

Source
Expand description

ToastRegistry — the app-singleton service handle.

Registered into the app-state registry by install_toast(opts) (lives in the teksilo umbrella). Holds the queue + per-entry state shared between:

Routing: every live entry (and its mirrored archive row) carries a resolved ToastRoute — the presenting window by default, or an explicit audience/broadcast target. max_visible admission and High/Urgent eviction are bucketed per route (see ToastRegistry::enqueue) so a burst of one window’s/audience’s toasts can never starve another’s slot pool. ToastHost does the complementary filtering on the render side.

Structs§

ToastRegistry
Cheap to clone (Rc<RefCell<…>>). All public methods take &self and use interior mutability.