Skip to main content

NotificationScheduling

Trait NotificationScheduling 

Source
pub trait NotificationScheduling {
    // Required method
    fn schedule(
        &self,
        notification: &Notification,
        at: SystemTime,
    ) -> PostFuture;
}
Expand description

Delivery at a later time, which the system holds whether or not the app runs.

Required Methods§

Source

fn schedule(&self, notification: &Notification, at: SystemTime) -> PostFuture

Shows notification at at, or at once where at has passed; a later post or schedule under its id replaces it, and Notifications::remove cancels it. It never asks the user, as a post does not.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§