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:
crate::toast::ext::EventContextToastExt— looks up the registry to fulfilctx.show_toast(toast).crate::toast::host::ToastHost— readslive_entriesto render each rebuild, owns the per-frame timer, and registers itself here inbuild()soshow_toastcan find it.crate::toast::surface::ToastSurface— calls back into the registry to dismiss its entry on close-click / action-invoked.
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§
- Toast
Registry - Cheap to clone (
Rc<RefCell<…>>). All public methods take&selfand use interior mutability.