Enum notify_rust::hints::NotificationHint
[−]
[src]
pub enum NotificationHint { ActionIcons(bool), Category(String), DesktopEntry(String), ImagePath(String), Resident(bool), SoundFile(String), SoundName(String), SuppressSound(bool), Transient(bool), X(i32), Y(i32), Urgency(NotificationUrgency), Custom(String, String), Invalid, }
All currently implemented NotificationHints that can be send.
Variants
ActionIcons(bool)
If true, server may interpret action identifiers as named icons and display those.
Category(String)
Check out:
DesktopEntry(String)
Name of the DesktopEntry representing the calling application. In case of "firefox.desktop" use "firefox". May be used to retrieve the correct icon.
ImagePath(String)
Display the image at this path.
Resident(bool)
This does not work on all servers, however timeout=0 will do the job
SoundFile(String)
Play the sound at this path.
SoundName(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".
SuppressSound(bool)
Transient(bool)
When set the server will treat the notification as transient and by-pass the server's persistence capability, if it should exist. When set the server will treat the notification as transient and by-pass the server's persistence capability, if it should exist.
X(i32)
Y(i32)
Urgency(NotificationUrgency)
Pass me a NotificationUrgency, either Low, Normal or Critical
Custom(String, String)
If you want to pass something entirely different.
Invalid
Only used by this NotificationServer implementation
Methods
impl NotificationHint
[src]
Trait Implementations
impl Debug for NotificationHint
[src]
impl Clone for NotificationHint
[src]
fn clone(&self) -> NotificationHint
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for NotificationHint
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for NotificationHint
[src]
fn eq(&self, __arg_0: &NotificationHint) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NotificationHint) -> bool
This method tests for !=
.
impl Eq for NotificationHint
[src]
impl<'a> From<&'a MessageItem> for NotificationHint
[src]
fn from(item: &MessageItem) -> NotificationHint
Performs the conversion.