Skip to main content

Module notifications

Module notifications 

Source
Expand description

In-app notification log.

§Structs

§OCP contract

Capacity is settable via NotificationLog::with_capacity. NotificationLog::push_with_broadcast accepts any EventEmitter impl, so tests can pass a MockChannel and production code passes the AppHandle. Adding a new Severity or NotificationCategory variant requires only a new enum arm — no other match arms change.

Modules§

os
OS notification bridge.

Structs§

Notification
A single immutable notification entry stored in the log.
NotificationLog
In-memory ring buffer for in-app notifications.
NotificationLogHandle
Newtype around Arc<RwLock<NotificationLog>> used as Tauri managed state.

Enums§

NotificationCategory
Classification that drives frontend placement policy (panel-only vs panel+toast vs panel+inline — consumed in task 22).
Severity
Severity level of a notification.