ferrodock 1.13.2

A fast, native container manager for Docker, written in Rust.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! System notifications (Notification Center, Windows toasts, the Linux
//! desktop's), for things that happen while Ferrodock isn't in front.

/// Shows `body` as a notification from Ferrodock. It runs on its own
/// thread, since some systems answer slowly, and failures are ignored:
/// the same news also shows in the window.
pub fn send(body: String) {
    std::thread::spawn(move || {
        let _ = notify_rust::Notification::new()
            .summary("Ferrodock")
            .body(&body)
            .appname("Ferrodock")
            .show();
    });
}