Expand description
Messages for a panel user: the toast a write flashes, and the
StoredNotifications Notifications sends to the bell of a panel with
Panel::notifications.
Re-exports§
pub use self::bell::clear_notifications;pub use self::bell::mark_all_notifications_read;pub use self::bell::mark_notification;pub use self::bell::notification_bell;pub use self::bell::remove_notification;pub use self::stored::StoredNotification;
Structs§
- Live
Toast - Owns the signals that mount a
Notificationin place without navigation. - Live
Toaster Props - Reads the page’s
LiveToastsignals and mounts the toast in place when one is set. - Live
Toaster Props Builder - Typestate builder for
LiveToasterProps, created byLiveToasterProps::builder().build()becomes available once every required property has been set. - Stored
Notification - Shipped record of a
Notificationkept for one panel user: what it says, whose it is, on which panel and for which tenant, and whether they read it. - clear_
notifications - Removes every notification the bell lists.
- live_
toaster - Reads the page’s
LiveToastsignals and mounts the toast in place when one is set. - mark_
all_ notifications_ read - Marks every notification the bell lists read.
- mark_
notification - Marks one of the user’s notifications read, or unread with
readfalse. An id the user’s inbox does not hold changes nothing. - notification_
bell - The bell: its trigger with the unread count, and the sheet it opens.
- remove_
notification - Removes one of the user’s notifications. An id the user’s inbox does not hold changes nothing.
Functions§
- live_
toast - The live toast signals for this request (call once per page).
- render_
notification - Renders one notification as the toast, with
attrsmerged onto its surface. - set_
notification - Store a notification for the next request (flash).
- take_
notification - Take the notification from the request (if present) and clear it.