pub enum InterruptionLevel {
Critical,
TimeSensitive,
Active,
Passive,
}Expand description
Bark interruption level for a notification.
These values match Bark’s documented level parameter. The level is also
serialized into APNs as aps.interruption-level for direct delivery.
Variants§
Critical
Important alert. Bark uses this with critical notification sound handling.
TimeSensitive
Time-sensitive notification, available on iOS 15 and later.
Active
Default active notification behavior.
Passive
Adds the notification to Notification Center without actively alerting.
Implementations§
Source§impl InterruptionLevel
impl InterruptionLevel
Sourcepub const fn as_bark_str(self) -> &'static str
pub const fn as_bark_str(self) -> &'static str
Returns the level string recognized by Bark.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InterruptionLevel
Source§impl Debug for InterruptionLevel
impl Debug for InterruptionLevel
impl Eq for InterruptionLevel
Source§impl PartialEq for InterruptionLevel
impl PartialEq for InterruptionLevel
Source§impl Serialize for InterruptionLevel
impl Serialize 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 UnsafeUnpin 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.