Expand description
ToastSurface — the rendered chrome of one toast.
Built by ToastHost for each live entry. Owns the severity
glyph, title + body column, action row, close button, and the
Role::Alert / Role::Status AccessKit node mapping. The visual
chrome (background, padding, layout) is delegated to the active
ToastStyle via make_body.
Structs§
- Toast
Surface - One rendered toast — chrome owned by
ToastStyle::make_body, functional pieces (glyph, body, action row, close button) owned by this widget. Built fresh for each entry — there is no internalSignal<Option<…>>slot binding (the host rebuilds on changes). - Toast
Surface Data - Snapshot data passed to a
ToastSurfacefor one live entry. Owned by the host’sLiveEntryand cloned into the surface at build time.Rc<...>fields keep callbacks cheap to copy.