Debian Codegraph @

examples/sound.rs

raw symbols SCIP
1 #![allow(unused_must_use)]
2 use notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::Notificationrust-analyzer cargo notify-rust 4.18.0 notification/Notification#;
3
4 #[cfg(target_os = "macos")]
5 static SOUND: &str = "Submarine";
6
7 #[cfg(all(unix, not(target_os = "macos")))]
8 static SOUNDrust-analyzer cargo notify-rust 4.18.0 SOUND.: &str = "message-new-instant";
9
10 #[cfg(target_os = "windows")]
11 static SOUND: &str = "Mail";
12
13 fn mainrust-analyzer cargo notify-rust 4.18.0 main().() {
14 Notificationrust-analyzer cargo notify-rust 4.18.0 notification/Notification#::newrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]new().()
15 .summaryrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]summary().("notification with sound")
16 .sound_namerust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]sound_name().(SOUNDrust-analyzer cargo notify-rust 4.18.0 SOUND.)
17 .showrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]show().()
18 .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
19 }