[−][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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Urgency> for Urgency
[src]
pub fn eq(&self, other: &Urgency) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Urgency
[src]
impl StructuralPartialEq for Urgency
[src]
impl TryFrom<&'_ str> for Urgency
[src]
Auto Trait Implementations
impl RefUnwindSafe for Urgency
[src]
impl Send for Urgency
[src]
impl Sync for Urgency
[src]
impl Unpin for Urgency
[src]
impl UnwindSafe for Urgency
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,