pub trait Notifier {
// Required methods
fn request_permission(&self);
fn notify(&self, request: NotifyRequest);
fn cancel(&self, id: &str);
}Expand description
Posts local notifications. Installed by the platform backend; the default is a no-op.
Required Methods§
Sourcefn request_permission(&self)
fn request_permission(&self)
Request permission to show notifications (idempotent; safe to call more than once).
Sourcefn notify(&self, request: NotifyRequest)
fn notify(&self, request: NotifyRequest)
Post (or replace, by id) a local notification.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".