Debian Codegraph @

examples/wait_for_closing.rs

raw symbols SCIP
1 #[cfg(any(target_os = "windows", target_os = "macos"))]
2 fn main() {
3 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("this is an xdg only feature")
4 }
5
6 #[cfg(all(unix, not(target_os = "macos")))]
7
8 fn mainrust-analyzer cargo notify-rust 4.18.0 main().() {
9 use notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::CloseReasonrust-analyzer cargo notify-rust 4.18.0 response/CloseReason#;
10
11 notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::Notificationrust-analyzer cargo notify-rust 4.18.0 notification/Notification#::newrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]new().()
12 .summaryrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]summary().("Don't Mind me")
13 .hintrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]hint().(notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Transientrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Transient#(true))
14 .bodyrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]body().("I'll be gone soon enough.\nSorry for the inconvenience.")
15 .showrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]show().()
16 .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().()
17 .on_closerust-analyzer cargo notify-rust 4.18.0 xdg/impl#[NotificationHandle]on_close().(|reason: CloseReasonrust-analyzer cargo notify-rust 4.18.0 response/CloseReason#| printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("the notification was closed reason: {reason:?}"));
18 }