status-notifier 0.1.1

A StatusNotifierHost for building system trays and similar applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use status_notifier::Host;

fn main() {
    let mut host = Host::new().unwrap();

    loop {
        host.process_events(
            |name, item, event| {
                println!("Event: {}({}) {:?}", name, item.id, event);
            },
            |error| {
                eprintln!("Error: {error:?}");
            },
            None,
        )
        .unwrap();
    }
}