libnotify 1.0.3

Rust bindings to libnotify
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate libnotify;

fn main() {
    // Init libnotify
    libnotify::init("myapp");
    // Create a new notification (doesn't show it yet)
    let n =
        libnotify::Notification::new("Summary", Some("Optional Body"), None);
    // Show the notification
    n.show().unwrap();
    // Update the existent notification
    n.update("I am another notification", None, None).unwrap();
    // Show the updated notification
    n.show().unwrap();
    // We are done, deinit
    libnotify::uninit();
}