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(StringString),
    CustomInt(Stringi32),
    Invalid,
}

All currently implemented NotificationHints that can be send.

Variants

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

Name of the DesktopEntry representing the calling application. In case of "firefox.desktop" use "firefox". May be used to retrieve the correct icon.

Display the image at this path.

This does not work on all servers, however timeout=0 will do the job

Play the sound at this path.

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".

Suppress the notification sound.

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.

Lets the notification point to a certain 'x' position on the screen. Requires Y.

Lets the notification point to a certain 'y' position on the screen. Requires X.

Pass me a NotificationUrgency, either Low, Normal or Critical

If you want to pass something entirely different.

A custom numerical (integer) hint

Only used by this NotificationServer implementation

Methods

impl NotificationHint
[src]

Get the bool representation of this hint.

Get the i32 representation of this hint.

Get the &str representation of this hint.

Trait Implementations

impl Eq for NotificationHint
[src]

impl PartialEq for NotificationHint
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for NotificationHint
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Clone for NotificationHint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NotificationHint
[src]

Formats the value using the given formatter.

impl<'a> From<&'a MessageItem> for NotificationHint
[src]

Performs the conversion.