pub enum Urgency {
Low,
Normal,
Critical,
}Expand description
The urgency level of the notification.
Represents how important is the notification and may affect how it’s displayed in the graphical interface.
Variants§
Low
A low level of urgency.
Notification does not require immediate user attention.
Normal
A normal level of urgency.
For example, a notification about new message from a chat app.
Critical
A critical level of urgency.
The notification requires user attention and should stand out from the rest of notifications.
Trait Implementations§
impl Copy for Urgency
Source§impl<'de> Deserialize<'de> for Urgency
impl<'de> Deserialize<'de> for Urgency
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Urgency
impl RefUnwindSafe for Urgency
impl Send for Urgency
impl Sync for Urgency
impl Unpin for Urgency
impl UnsafeUnpin for Urgency
impl UnwindSafe for Urgency
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more