#[repr(i64)]pub enum UNNotificationSetting {
NotSupported = 0,
Disabled = 1,
Enabled = 2,
}
Expand description
Constants that indicate the current status of a notification setting.
Variants§
NotSupported = 0
The setting is not available to your app.
Disabled = 1
The setting is disabled.
Enabled = 2
The setting is enabled.
Trait Implementations§
Source§impl Clone for UNNotificationSetting
impl Clone for UNNotificationSetting
Source§fn clone(&self) -> UNNotificationSetting
fn clone(&self) -> UNNotificationSetting
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UNNotificationSetting
impl Debug for UNNotificationSetting
Source§impl Ord for UNNotificationSetting
impl Ord for UNNotificationSetting
Source§fn cmp(&self, other: &UNNotificationSetting) -> Ordering
fn cmp(&self, other: &UNNotificationSetting) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UNNotificationSetting
impl PartialEq for UNNotificationSetting
Source§impl PartialOrd for UNNotificationSetting
impl PartialOrd for UNNotificationSetting
impl Copy for UNNotificationSetting
impl Eq for UNNotificationSetting
impl StructuralPartialEq for UNNotificationSetting
Auto Trait Implementations§
impl Freeze for UNNotificationSetting
impl RefUnwindSafe for UNNotificationSetting
impl Send for UNNotificationSetting
impl Sync for UNNotificationSetting
impl Unpin for UNNotificationSetting
impl UnwindSafe for UNNotificationSetting
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