pub enum NotificationHint {
Show 15 variants 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(StringString), CustomInt(Stringi32), Invalid,
}
Expand description

All currently implemented NotificationHints that can be send.

as found on https://developer.gnome.org/notification-spec/

Variants§

§

ActionIcons(bool)

If true, server may interpret action identifiers as named icons and display those.

§

Category(String)

Check out:

  • http://www.galago-project.org/specs/notification/0.9/x211.html
  • https://developer.gnome.org/notification-spec/#categories
§

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(StringString)

If you want to pass something entirely different.

§

CustomInt(Stringi32)

A custom numerical (integer) hint

§

Invalid

Only used by this NotificationServer implementation

Implementations§

Get the bool representation of this hint.

Get the i32 representation of this hint.

Get the &str representation of this hint.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.