[−][src]Enum notify_rust::Urgency
Levels of Urgency.
Specification
Developers must use their own judgement when deciding the urgency of a notification. Typically, if the majority of programs are using the same level for a specific type of urgency, other applications should follow them.
For low and normal urgencies, server implementations may display the notifications how they choose. They should, however, have a sane expiration timeout dependent on the urgency level.
Critical notifications should not automatically expire, as they are things that the user will most likely want to know about. They should only be closed when the user dismisses them, for example, by clicking on the notification.
— see Galago or Gnome specification.
Example
Notification::new() .summary("oh no") .icon("dialog-warning") .urgency(Urgency::Critical) .show()?;
Variants
The behaviour for Low
urgency depends on the notification server.
The behaviour for Normal
urgency depends on the notification server.
A critical notification will not time out.
Trait Implementations
impl Clone for Urgency
[src]
impl Copy for Urgency
[src]
impl Debug for Urgency
[src]
impl Eq for Urgency
[src]
impl From<Option<u64>> for Urgency
[src]
impl From<u64> for Urgency
[src]
impl Hash for Urgency
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Urgency> for Urgency
[src]
impl StructuralEq for Urgency
[src]
impl StructuralPartialEq for Urgency
[src]
impl<'_> TryFrom<&'_ str> for Urgency
[src]
Auto Trait Implementations
impl RefUnwindSafe for Urgency
impl Send for Urgency
impl Sync for Urgency
impl Unpin for Urgency
impl UnwindSafe for Urgency
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,