Function mac_notification_sys::send_notification [−][src]
pub fn send_notification(
title: &str,
subtitle: &Option<&str>,
message: &str,
sound: &Option<&str>
) -> NotificationResult<()>
Delivers a new notification
Returns a NotificationError
if a notification could not be delivered
Example:
// daliver a silent notification let _ = send_notification("Title", &None, "This is the body", &None).unwrap();