pub trait SystemNotificationProvider: Send + Sync {
// Required methods
fn notify<'life0, 'async_trait>(
&'life0 self,
options: NotificationOptions,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn schedule<'life0, 'life1, 'async_trait>(
&'life0 self,
options: NotificationOptions,
at: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn cancel<'life0, 'life1, 'async_trait>(
&'life0 self,
notification_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn request_permission<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
System notifications provider trait
Required Methods§
Sourcefn notify<'life0, 'async_trait>(
&'life0 self,
options: NotificationOptions,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn notify<'life0, 'async_trait>(
&'life0 self,
options: NotificationOptions,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a notification
Sourcefn schedule<'life0, 'life1, 'async_trait>(
&'life0 self,
options: NotificationOptions,
at: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn schedule<'life0, 'life1, 'async_trait>(
&'life0 self,
options: NotificationOptions,
at: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Schedule a notification
Sourcefn cancel<'life0, 'life1, 'async_trait>(
&'life0 self,
notification_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cancel<'life0, 'life1, 'async_trait>(
&'life0 self,
notification_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Cancel a scheduled notification
Sourcefn list_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List pending notifications
Sourcefn request_permission<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn request_permission<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Request notification permission