Enum notify_rust::Hint [−][src]
pub enum Hint { }
Expand description
All currently implemented Hints
that can be sent.
as found on https://developer.gnome.org/notification-spec/
Variants
ActionIcons(bool)
Expand description
If true, server may interpret action identifiers as named icons and display those.
Category(String)
Expand description
Check out:
- http://www.galago-project.org/specs/notification/0.9/x211.html
- https://developer.gnome.org/notification-spec/#categories
DesktopEntry(String)
Expand description
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)
Expand description
Display the image at this path.
Resident(bool)
Expand description
This does not work on all servers, however timeout=0 will do the job
SoundFile(String)
Expand description
Play the sound at this path.
SoundName(String)
Expand description
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)
Expand description
Suppress the notification sound.
Transient(bool)
Expand description
When set the server will treat the notification as transient and by-pass the server’s persistence capability, if it should exist.
X(i32)
Expand description
Lets the notification point to a certain ‘x’ position on the screen.
Requires Y
.
Y(i32)
Expand description
Lets the notification point to a certain ‘y’ position on the screen.
Requires X
.
Urgency(Urgency)
Expand description
Pass me a Urgency, either Low, Normal or Critical
Expand description
If you want to pass something entirely different.
Expand description
A custom numerical (integer) hint
Expand description
Only used by this NotificationServer implementation
Implementations
Trait Implementations
impl Eq for Hint
[src]
impl StructuralEq for Hint
[src]
impl StructuralPartialEq for Hint
[src]
Auto Trait Implementations
impl RefUnwindSafe for Hint
impl Send for Hint
impl Sync for Hint
impl Unpin for Hint
impl UnwindSafe for Hint
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more