Function nustify::send[][src]

pub async fn send(
    notification: &Notification,
    event: &str,
    key: &str
) -> Result<(), Error>

Send a notification asynchronously.

Examples

let notification = Notification::new(None, "Hello from Rust".to_owned());
nustify::send(&notification, "nustify", "IFTTT_KEY").await?;