Debian Codegraph @

src/hints.rs

raw symbols SCIP
1 #![cfg_attr(rustfmt, rustfmt_skip)]
2
3 #[cfg(all(feature = "zbus", unix, not(target_os = "macos")))]
4 use zbusrust-analyzer cargo zbus 5.19.0 crate/::zvariantrust-analyzer cargo zvariant 5.15.0 crate/;
5
6 #[cfg(all(unix, not(target_os = "macos")))]
7 pub(craterust-analyzer cargo notify-rust 4.18.0 crate/) mod messagerust-analyzer cargo notify-rust 4.18.0 hints/message/;
8
9 #[cfg(all(feature = "images_no_default_features", any(feature = "dbus", feature = "zbus"), unix, not(target_os = "macos")))]
10 use craterust-analyzer cargo notify-rust 4.18.0 crate/::imagerust-analyzer cargo notify-rust 4.18.0 image/::Imagerust-analyzer cargo notify-rust 4.18.0 image/Image#;
11
12 #[cfg(all(feature = "images_no_default_features", feature = "zbus", unix, not(target_os = "macos")))]
13 use craterust-analyzer cargo notify-rust 4.18.0 crate/::imagerust-analyzer cargo notify-rust 4.18.0 image/::image_spec_strrust-analyzer cargo notify-rust 4.18.0 image/image_spec_str().;
14 use craterust-analyzer cargo notify-rust 4.18.0 crate/::Urgencyrust-analyzer cargo notify-rust 4.18.0 urgency/Urgency#;
15
16 #[cfg(all(feature = "zbus", unix, not(target_os = "macos")))] use craterust-analyzer cargo notify-rust 4.18.0 crate/::notificationrust-analyzer cargo notify-rust 4.18.0 notification/::Notificationrust-analyzer cargo notify-rust 4.18.0 notification/Notification#;
17 #[cfg(all(feature = "zbus", unix, not(target_os = "macos")))] use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::collectionsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/::HashMaprust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/HashMap#;
18
19 mod constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/;
20
21 #[cfg(all(unix, not(target_os = "macos")))]
22 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
23 pub(craterust-analyzer cargo notify-rust 4.18.0 crate/) enum CustomHintTyperust-analyzer cargo notify-rust 4.18.0 hints/CustomHintType# {
24 Intrust-analyzer cargo notify-rust 4.18.0 hints/CustomHintType#Int#,
25 Stringrust-analyzer cargo notify-rust 4.18.0 hints/CustomHintType#String#,
26 }
27
28 /// Hints allow you to pass extra information to the notification server.
29 ///
30 /// Many of these are standardized by:
31 ///
32 /// * <https://specifications.freedesktop.org/notification-spec/latest/hints.html>
33 ///
34 /// Which hints are actually implemented depends strongly on the notification server you talk to.
35 /// Usually [`get_capabilities()`](`crate::get_capabilities`) gives some clues, but the standard usually mentions much more
36 /// than is actually available.
37 ///
38 /// Pass these to [`Notification::hint`].
39 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
40 pub enum Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint# {
41 /// If true, server may interpret action identifiers as named icons and display those.
42 ActionIconsrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ActionIcons#(bool),
43
44 /// Check out:
45 ///
46 /// * <https://specifications.freedesktop.org/notification-spec/latest/hints.html>
47 Categoryrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Category#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
48
49 /// Name of the `DesktopEntry` representing the calling application.
50 /// In case of `"firefox.desktop"` use `"firefox"`. May be used to retrieve the correct icon.
51 DesktopEntryrust-analyzer cargo notify-rust 4.18.0 hints/Hint#DesktopEntry#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
52
53 /// Image as raw data
54 #[cfg(all(feature = "images_no_default_features", unix, not(target_os = "macos")))]
55 ImageDatarust-analyzer cargo notify-rust 4.18.0 hints/Hint#ImageData#(Imagerust-analyzer cargo notify-rust 4.18.0 image/Image#),
56
57 /// Display the image at this path.
58 ImagePathrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ImagePath#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
59
60 /// This does not work on all servers, however timeout=0 will do the job
61 Residentrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Resident#(bool),
62
63 /// Play the sound at this path.
64 SoundFilerust-analyzer cargo notify-rust 4.18.0 hints/Hint#SoundFile#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
65
66 /// A themeable named sound from the freedesktop.org [sound naming specification](http://0pointer.de/public/sound-naming-spec.html) to play when the notification pops up.
67 /// Similar to icon-name, but for sounds. An example would be `"message-new-instant"`.
68 SoundNamerust-analyzer cargo notify-rust 4.18.0 hints/Hint#SoundName#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
69
70 /// Suppress the notification sound.
71 SuppressSoundrust-analyzer cargo notify-rust 4.18.0 hints/Hint#SuppressSound#(bool),
72
73 /// When set, the server will treat the notification as transient and bypass the server's persistence capability, if it exists.
74 Transientrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Transient#(bool),
75
76 /// Lets the notification point to a certain 'x' position on the screen.
77 /// Requires `Y`.
78 Xrust-analyzer cargo notify-rust 4.18.0 hints/Hint#X#(i32),
79
80 /// Lets the notification point to a certain 'y' position on the screen.
81 /// Requires `X`.
82 Yrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Y#(i32),
83
84 /// Pass a [`Urgency`](crate::Urgency), either `Low`, `Normal`, or `Critical`.
85 Urgencyrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Urgency#(Urgencyrust-analyzer cargo notify-rust 4.18.0 urgency/Urgency#),
86
87 /// If you want to pass something entirely different.
88 Customrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Custom#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
89
90 /// A custom numerical (integer) hint
91 CustomIntrust-analyzer cargo notify-rust 4.18.0 hints/Hint#CustomInt#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, i32),
92
93 /// Only used by this `NotificationServer` implementation.
94 Invalidrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Invalid# // TODO find a better solution to this
95 }
96
97 impl Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint# {
98 /// Get the `bool` representation of this hint.
99 pub fn as_boolrust-analyzer cargo notify-rust 4.18.0 hints/impl#[Hint]as_bool().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool> {
100 match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self {
101 | Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::ActionIconsrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ActionIcons#(inner)
102 | Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Residentrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Resident#(inner)
103 | Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SuppressSoundrust-analyzer cargo notify-rust 4.18.0 hints/Hint#SuppressSound#(inner)
104 | Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Transientrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Transient#(inner) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(inner),
105 _ => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#
106 }
107 }
108
109 /// Get the `i32` representation of this hint.
110 pub fn as_i32rust-analyzer cargo notify-rust 4.18.0 hints/impl#[Hint]as_i32().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i32> {
111 match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self {
112 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Xrust-analyzer cargo notify-rust 4.18.0 hints/Hint#X#(inner) | Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Yrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Y#(inner) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(inner),
113 _ => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#
114 }
115 }
116
117 /// Get the `&str` representation of this hint.
118 pub fn as_strrust-analyzer cargo notify-rust 4.18.0 hints/impl#[Hint]as_str().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&str> {
119 match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self {
120 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::DesktopEntryrust-analyzer cargo notify-rust 4.18.0 hints/Hint#DesktopEntry#(ref inner) |
121 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::ImagePathrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ImagePath#(ref inner) |
122 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SoundFilerust-analyzer cargo notify-rust 4.18.0 hints/Hint#SoundFile#(ref inner) |
123 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SoundNamerust-analyzer cargo notify-rust 4.18.0 hints/Hint#SoundName#(ref inner) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(inner),
124 _ => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#
125 }
126 }
127
128 /// Convenience function for converting a name and value into a hint.
129 pub fn from_key_valrust-analyzer cargo notify-rust 4.18.0 hints/impl#[Hint]from_key_val().(name: &str, value: &str) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#> {
130 match (name,value){
131 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::ACTION_ICONSrust-analyzer cargo notify-rust 4.18.0 hints/constants/ACTION_ICONS.,val) => val.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<bool>().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::ActionIconsrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ActionIcons#).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|e|e.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()),
132 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::CATEGORYrust-analyzer cargo notify-rust 4.18.0 hints/constants/CATEGORY., val) => Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Categoryrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Category#(val.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())),
133 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::DESKTOP_ENTRYrust-analyzer cargo notify-rust 4.18.0 hints/constants/DESKTOP_ENTRY., val) => Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::DesktopEntryrust-analyzer cargo notify-rust 4.18.0 hints/Hint#DesktopEntry#(val.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())),
134 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::IMAGE_PATHrust-analyzer cargo notify-rust 4.18.0 hints/constants/IMAGE_PATH., val) => Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::ImagePathrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ImagePath#(val.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())),
135 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::RESIDENTrust-analyzer cargo notify-rust 4.18.0 hints/constants/RESIDENT., val) => val.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<bool>().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Residentrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Resident#).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|e|e.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()),
136 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::SOUND_FILErust-analyzer cargo notify-rust 4.18.0 hints/constants/SOUND_FILE., val) => Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SoundFilerust-analyzer cargo notify-rust 4.18.0 hints/Hint#SoundFile#(val.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())),
137 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::SOUND_NAMErust-analyzer cargo notify-rust 4.18.0 hints/constants/SOUND_NAME., val) => Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SoundNamerust-analyzer cargo notify-rust 4.18.0 hints/Hint#SoundName#(val.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())),
138 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::SUPPRESS_SOUNDrust-analyzer cargo notify-rust 4.18.0 hints/constants/SUPPRESS_SOUND., val) => val.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<bool>().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SuppressSoundrust-analyzer cargo notify-rust 4.18.0 hints/Hint#SuppressSound#).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|e|e.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()),
139 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::TRANSIENTrust-analyzer cargo notify-rust 4.18.0 hints/constants/TRANSIENT., val) => val.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<bool>().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Transientrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Transient#).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|e|e.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()),
140 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::Xrust-analyzer cargo notify-rust 4.18.0 hints/constants/X., val) => val.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<i32>().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Xrust-analyzer cargo notify-rust 4.18.0 hints/Hint#X#).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|e|e.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()),
141 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::Yrust-analyzer cargo notify-rust 4.18.0 hints/constants/Y., val) => val.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<i32>().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Yrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Y#).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|e|e.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()),
142 _ => Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#::fromrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][`From<&str>`]from().("unknown name"))
143 }
144 }
145 }
146
147 #[cfg(all(unix, not(target_os = "macos")))]
148 impl Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint# {}
149
150 #[cfg(all(feature = "zbus", unix, not(target_os = "macos")))]
151 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
152 fn test_hints_to_maprust-analyzer cargo notify-rust 4.18.0 hints/test_hints_to_map().() {
153
154 // custom value should only be there once if the names are identical
155
156 let n1 = Notificationrust-analyzer cargo notify-rust 4.18.0 notification/Notification#::newrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]new().()
157 .hintrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]hint().(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Customrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Custom#("foo".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), "bar1".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()))
158 .hintrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]hint().(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Customrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Custom#("foo".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), "bar2".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()))
159 .hintrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]hint().(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Customrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Custom#("f00".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), "bar3".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()))
160 .finalizerust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]finalize().();
161
162 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(hints_to_maprust-analyzer cargo notify-rust 4.18.0 hints/hints_to_map().(&n1), maplitrust-analyzer cargo maplit 1.0.2 crate/::hashmaprust-analyzer cargo maplit 1.0.2 hashmap!!{
163 "foo" => zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Strrust-analyzer cargo zvariant 5.15.0 value/Value#Str#("bar2".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()),
164 "f00" => zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Strrust-analyzer cargo zvariant 5.15.0 value/Value#Str#("bar3".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().())
165 });
166 }
167
168 #[cfg(all(feature = "zbus", unix, not(target_os = "macos")))]
169 pub(craterust-analyzer cargo notify-rust 4.18.0 crate/) fn hints_to_maprust-analyzer cargo notify-rust 4.18.0 hints/hints_to_map().(notification: &Notificationrust-analyzer cargo notify-rust 4.18.0 notification/Notification#) -> HashMaprust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/hash/map/HashMap#::<&str, zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#<'_>> {
170 notification
171 .get_hintsrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]get_hints().()
172 .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(Intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#::intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().)
173 .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().()
174 }
175
176 #[cfg(all(feature = "zbus", unix, not(target_os = "macos")))]
177 impl<'a> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<&'a Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#> for (&'a str, zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#<'a>) {
178 fn fromrust-analyzer cargo notify-rust 4.18.0 hints/impl#[`(&'a str, zvariant::Value<'a>)`][`From<&'a Hint>`]from().(val: &'a Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#) -> Selfrust-analyzer cargo notify-rust 4.18.0 hints/impl#[`(&'a str, zvariant::Value<'a>)`][`From<&'a Hint>`] {
179 use selfrust-analyzer cargo notify-rust 4.18.0 hints/::constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::*;
180 match val {
181 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::ActionIconsrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ActionIcons#(value) => (ACTION_ICONSrust-analyzer cargo notify-rust 4.18.0 hints/constants/ACTION_ICONS. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Boolrust-analyzer cargo zvariant 5.15.0 value/Value#Bool#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().value)), // bool
182 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Categoryrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Category#(value) => (CATEGORYrust-analyzer cargo notify-rust 4.18.0 hints/constants/CATEGORY. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Strrust-analyzer cargo zvariant 5.15.0 value/Value#Str#(value.as_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_str().().intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().())),
183 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::DesktopEntryrust-analyzer cargo notify-rust 4.18.0 hints/Hint#DesktopEntry#(value) => (DESKTOP_ENTRYrust-analyzer cargo notify-rust 4.18.0 hints/constants/DESKTOP_ENTRY. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Strrust-analyzer cargo zvariant 5.15.0 value/Value#Str#(value.as_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_str().().intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().())),
184
185 #[cfg(all(feature = "zbus", feature = "images_no_default_features", unix, not(target_os = "macos")))]
186 //Hint::ImageData(image) => (image_spec(*crate::SPEC_VERSION).as_str(), ImagePayload::from(*image).into()),
187 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::ImageDatarust-analyzer cargo notify-rust 4.18.0 hints/Hint#ImageData#(image) => (
188 image_spec_strrust-analyzer cargo notify-rust 4.18.0 image/image_spec_str().(*rust-analyzer cargo notify-rust 4.18.0 impl#[SPEC_VERSION][Deref]deref().craterust-analyzer cargo notify-rust 4.18.0 crate/::SPEC_VERSIONrust-analyzer cargo notify-rust 4.18.0 SPEC_VERSION.),
189 zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Structurerust-analyzer cargo zvariant 5.15.0 value/Value#Structure#(
190 image.to_tuplerust-analyzer cargo notify-rust 4.18.0 image/impl#[Image]to_tuple().().intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()
191 )
192 ),
193
194
195 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::ImagePathrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ImagePath#(value) => (IMAGE_PATHrust-analyzer cargo notify-rust 4.18.0 hints/constants/IMAGE_PATH. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Strrust-analyzer cargo zvariant 5.15.0 value/Value#Str#(value.as_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_str().().intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().())),
196 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Residentrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Resident#(value) => (RESIDENTrust-analyzer cargo notify-rust 4.18.0 hints/constants/RESIDENT. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Boolrust-analyzer cargo zvariant 5.15.0 value/Value#Bool#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().value)), // bool
197 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SoundFilerust-analyzer cargo notify-rust 4.18.0 hints/Hint#SoundFile#(value) => (SOUND_FILErust-analyzer cargo notify-rust 4.18.0 hints/constants/SOUND_FILE. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Strrust-analyzer cargo zvariant 5.15.0 value/Value#Str#(value.as_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_str().().intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().())),
198 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SoundNamerust-analyzer cargo notify-rust 4.18.0 hints/Hint#SoundName#(value) => (SOUND_NAMErust-analyzer cargo notify-rust 4.18.0 hints/constants/SOUND_NAME. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Strrust-analyzer cargo zvariant 5.15.0 value/Value#Str#(value.as_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_str().().intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().())),
199 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SuppressSoundrust-analyzer cargo notify-rust 4.18.0 hints/Hint#SuppressSound#(value) => (SUPPRESS_SOUNDrust-analyzer cargo notify-rust 4.18.0 hints/constants/SUPPRESS_SOUND. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Boolrust-analyzer cargo zvariant 5.15.0 value/Value#Bool#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().value)),
200 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Transientrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Transient#(value) => (TRANSIENTrust-analyzer cargo notify-rust 4.18.0 hints/constants/TRANSIENT. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Boolrust-analyzer cargo zvariant 5.15.0 value/Value#Bool#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().value)),
201 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Xrust-analyzer cargo notify-rust 4.18.0 hints/Hint#X#(value) => (Xrust-analyzer cargo notify-rust 4.18.0 hints/constants/X. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::I32rust-analyzer cargo zvariant 5.15.0 value/Value#I32#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().value)),
202 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Yrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Y#(value) => (Yrust-analyzer cargo notify-rust 4.18.0 hints/constants/Y. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::I32rust-analyzer cargo zvariant 5.15.0 value/Value#I32#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().value)),
203 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Urgencyrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Urgency#(value) => (URGENCYrust-analyzer cargo notify-rust 4.18.0 hints/constants/URGENCY. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::U8rust-analyzer cargo zvariant 5.15.0 value/Value#U8#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().value as u8)),
204 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Customrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Custom#(key, val) => (key.as_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_str().() , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Strrust-analyzer cargo zvariant 5.15.0 value/Value#Str#(val.as_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_str().().intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().())),
205 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::CustomIntrust-analyzer cargo notify-rust 4.18.0 hints/Hint#CustomInt#(key, val) => (key.as_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_str().() , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::I32rust-analyzer cargo zvariant 5.15.0 value/Value#I32#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().val)),
206 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Invalidrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Invalid# => (INVALIDrust-analyzer cargo notify-rust 4.18.0 hints/constants/INVALID. , zvariantrust-analyzer cargo zvariant 5.15.0 crate/::Valuerust-analyzer cargo zvariant 5.15.0 value/Value#::Strrust-analyzer cargo zvariant 5.15.0 value/Value#Str#(INVALIDrust-analyzer cargo notify-rust 4.18.0 hints/constants/INVALID..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()))
207 }
208 }
209 }
210
211
212 #[cfg(all(feature = "dbus", unix, not(target_os = "macos")))]
213 impl<'a, A: dbusrust-analyzer cargo dbus 0.9.12 crate/::argrust-analyzer cargo dbus 0.9.12 arg/::RefArgrust-analyzer cargo dbus 0.9.12 arg/msgarg/RefArg#> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<(&'a Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, &'a A)> for Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint# {
214 fn fromrust-analyzer cargo notify-rust 4.18.0 hints/impl#[Hint][`From<(&'a String, &'a A)>`]from().(pair: (&Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, &A)) -> Selfrust-analyzer cargo notify-rust 4.18.0 hints/impl#[Hint][`From<(&'a String, &'a A)>`] {
215
216 let (key, variant) = pair;
217 match (key.as_refrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][`AsRef<str>`]as_ref().(), variant.as_u64rust-analyzer cargo dbus 0.9.12 arg/msgarg/RefArg#as_u64().(), variant.as_i64rust-analyzer cargo dbus 0.9.12 arg/msgarg/RefArg#as_i64().(), variant.as_strrust-analyzer cargo dbus 0.9.12 arg/msgarg/RefArg#as_str().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#::fromrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][`From<&str>`]from().)) {
218
219 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::ACTION_ICONSrust-analyzer cargo notify-rust 4.18.0 hints/constants/ACTION_ICONS., Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(1), _, _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::ActionIconsrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ActionIcons#(true),
220 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::ACTION_ICONSrust-analyzer cargo notify-rust 4.18.0 hints/constants/ACTION_ICONS., _, _, _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::ActionIconsrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ActionIcons#(false),
221 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::URGENCYrust-analyzer cargo notify-rust 4.18.0 hints/constants/URGENCY., level, _, _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Urgencyrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Urgency#(level.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()),
222 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::CATEGORYrust-analyzer cargo notify-rust 4.18.0 hints/constants/CATEGORY., _, _, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(name) ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Categoryrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Category#(name),
223
224 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::DESKTOP_ENTRYrust-analyzer cargo notify-rust 4.18.0 hints/constants/DESKTOP_ENTRY., _, _, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(entry)) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::DesktopEntryrust-analyzer cargo notify-rust 4.18.0 hints/Hint#DesktopEntry#(entry),
225 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::IMAGE_PATHrust-analyzer cargo notify-rust 4.18.0 hints/constants/IMAGE_PATH., _, _, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(path) ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::ImagePathrust-analyzer cargo notify-rust 4.18.0 hints/Hint#ImagePath#(path),
226 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::RESIDENTrust-analyzer cargo notify-rust 4.18.0 hints/constants/RESIDENT., Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(1), _, _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Residentrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Resident#(true),
227 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::RESIDENTrust-analyzer cargo notify-rust 4.18.0 hints/constants/RESIDENT., _, _, _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Residentrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Resident#(false),
228
229 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::SOUND_FILErust-analyzer cargo notify-rust 4.18.0 hints/constants/SOUND_FILE., _, _, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(path) ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SoundFilerust-analyzer cargo notify-rust 4.18.0 hints/Hint#SoundFile#(path),
230 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::SOUND_NAMErust-analyzer cargo notify-rust 4.18.0 hints/constants/SOUND_NAME., _, _, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(name) ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SoundNamerust-analyzer cargo notify-rust 4.18.0 hints/Hint#SoundName#(name),
231 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::SUPPRESS_SOUNDrust-analyzer cargo notify-rust 4.18.0 hints/constants/SUPPRESS_SOUND., Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(1), _, _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SuppressSoundrust-analyzer cargo notify-rust 4.18.0 hints/Hint#SuppressSound#(true),
232 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::SUPPRESS_SOUNDrust-analyzer cargo notify-rust 4.18.0 hints/constants/SUPPRESS_SOUND., _, _, _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::SuppressSoundrust-analyzer cargo notify-rust 4.18.0 hints/Hint#SuppressSound#(false),
233 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::TRANSIENTrust-analyzer cargo notify-rust 4.18.0 hints/constants/TRANSIENT., Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(1), _, _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Transientrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Transient#(true),
234 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::TRANSIENTrust-analyzer cargo notify-rust 4.18.0 hints/constants/TRANSIENT., _, _, _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Transientrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Transient#(false),
235 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::Xrust-analyzer cargo notify-rust 4.18.0 hints/constants/X., _, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(x), _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Xrust-analyzer cargo notify-rust 4.18.0 hints/Hint#X#(x as i32),
236 (constantsrust-analyzer cargo notify-rust 4.18.0 hints/constants/::Yrust-analyzer cargo notify-rust 4.18.0 hints/constants/Y., _, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(y), _ ) => Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Yrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Y#(y as i32),
237
238 other => {
239 eprintlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/eprintln!!("Invalid Hint {:#?} ", other);
240 Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Invalidrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Invalid#
241 }
242 }
243 }
244 }