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

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.

Pass me a NotificationUrgency, either Low, Normal or Critical

If you want to pass something entirely different.

Only used by this NotificationServer implementation

Methods

impl NotificationHint
[src]

Trait Implementations

impl Debug for NotificationHint
[src]

Formats the value using the given formatter.

impl Clone for NotificationHint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 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 Eq for NotificationHint
[src]

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

Performs the conversion.