pub enum InterruptionLevel {
Active,
Critical,
Passive,
TimeSensitive,
}Expand description
Alert interruption level.
Variants§
Active
The system presents the notification immediately, lights up the screen, and can play a sound.
Critical
The system presents the notification immediately, lights up the screen, and bypasses the mute switch to play a sound.
Passive
The system adds the notification to the notification list without lighting up the screen or playing a sound.
TimeSensitive
The system presents the notification immediately, lights up the screen, and can play a sound, but won’t break through system notification controls.
Trait Implementations§
Source§impl Clone for InterruptionLevel
impl Clone for InterruptionLevel
Source§fn clone(&self) -> InterruptionLevel
fn clone(&self) -> InterruptionLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterruptionLevel
impl Debug for InterruptionLevel
Source§impl<'de> Deserialize<'de> for InterruptionLevel
impl<'de> Deserialize<'de> for InterruptionLevel
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
Source§impl Display for InterruptionLevel
impl Display for InterruptionLevel
Source§impl FromStr for InterruptionLevel
impl FromStr for InterruptionLevel
Source§impl PartialEq for InterruptionLevel
impl PartialEq for InterruptionLevel
Source§impl Serialize for InterruptionLevel
impl Serialize for InterruptionLevel
impl Copy for InterruptionLevel
impl Eq for InterruptionLevel
impl StructuralPartialEq for InterruptionLevel
Auto Trait Implementations§
impl Freeze for InterruptionLevel
impl RefUnwindSafe for InterruptionLevel
impl Send for InterruptionLevel
impl Sync for InterruptionLevel
impl Unpin for InterruptionLevel
impl UnwindSafe for InterruptionLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.