Enum notify_rust::Hint [−][src]
pub enum Hint {
}Expand description
Hints allow you to pass extra information to the server.
Many of these are standardized by either:
- http://www.galago-project.org/specs/notification/0.9/x344.html
- https://developer.gnome.org/notification-spec/#hints
Which of these are actually implemented depends strongly on the Notification server you talk to.
Usually the get_capabilities() gives some clues, but the standards usually mention much more
than is actually available.
you pass these to Notification::hint
Variants
ActionIcons(bool)If true, server may interpret action identifiers as named icons and display those.
Tuple Fields of ActionIcons
0: boolCategory(String)Check out:
Tuple Fields of Category
0: StringDesktopEntry(String)Name of the DesktopEntry representing the calling application. In case of “firefox.desktop” use “firefox”. May be used to retrieve the correct icon.
Tuple Fields of DesktopEntry
0: StringImagePath(String)Display the image at this path.
Tuple Fields of ImagePath
0: StringResident(bool)This does not work on all servers, however timeout=0 will do the job
Tuple Fields of Resident
0: boolSoundFile(String)Play the sound at this path.
Tuple Fields of SoundFile
0: StringSoundName(String)A themeable named sound from the freedesktop.org sound naming specification to play when the notification pops up. Similar to icon-name, only for sounds. An example would be “message-new-instant”.
Tuple Fields of SoundName
0: StringSuppressSound(bool)Suppress the notification sound.
Tuple Fields of SuppressSound
0: boolTransient(bool)When set the server will treat the notification as transient and by-pass the server’s persistence capability, if it should exist.
Tuple Fields of Transient
0: boolX(i32)Lets the notification point to a certain ‘x’ position on the screen.
Requires Y.
Tuple Fields of X
0: i32Y(i32)Lets the notification point to a certain ‘y’ position on the screen.
Requires X.
Tuple Fields of Y
0: i32Urgency(Urgency)Pass me a Urgency, either Low, Normal or Critical
Tuple Fields of Urgency
0: UrgencyIf you want to pass something entirely different.
A custom numerical (integer) hint
Only used by this NotificationServer implementation
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Hint
impl UnwindSafe for Hint
Blanket Implementations
Mutably borrows from an owned value. Read more