Skip to main content

send

Function send 

Source
pub async fn send(notification: Notification) -> Result<String, Error>
Expand description

Schedule a notification for immediate delivery.

Returns a Future that resolves with the notification’s request ID once the request is accepted by macOS. The ID can be used with close_delivered or cancel_pending even when no explicit ID was set via Notification::id.

Prefer Notification::send for the high-level two-phase API.