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), CustomInt(String, i32), 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)
Suppress the notification sound.
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)
Lets the notification point to a certain 'x' position on the screen.
Requires Y
.
Y(i32)
Lets the notification point to a certain 'y' position on the screen.
Requires X
.
Urgency(NotificationUrgency)
Pass me a NotificationUrgency, either Low, Normal or Critical
Custom(String, String)
If you want to pass something entirely different.
CustomInt(String, i32)
A custom numerical (integer) hint
Invalid
Only used by this NotificationServer implementation
Methods
impl NotificationHint
[src]
fn as_bool(&self) -> Option<bool>
Get the bool
representation of this hint.
fn as_i32(&self) -> Option<i32>
Get the i32
representation of this hint.
fn as_str(&self) -> Option<&str>
Get the &str
representation of this hint.
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.