#[repr(i64)]pub enum UNAuthorizationStatus {
NotDetermined = 0,
Denied = 1,
Authorized = 2,
}
Expand description
Constants indicating whether the app is allowed to schedule notifications.
Variants§
NotDetermined = 0
The user hasn’t yet made a choice about whether the app is allowed to schedule notifications.
Denied = 1
The app isn’t authorized to schedule or receive notifications.
Authorized = 2
The app is authorized to schedule or receive notifications.
Trait Implementations§
Source§impl Clone for UNAuthorizationStatus
impl Clone for UNAuthorizationStatus
Source§fn clone(&self) -> UNAuthorizationStatus
fn clone(&self) -> UNAuthorizationStatus
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 UNAuthorizationStatus
impl Debug for UNAuthorizationStatus
Source§impl Ord for UNAuthorizationStatus
impl Ord for UNAuthorizationStatus
Source§fn cmp(&self, other: &UNAuthorizationStatus) -> Ordering
fn cmp(&self, other: &UNAuthorizationStatus) -> 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 UNAuthorizationStatus
impl PartialEq for UNAuthorizationStatus
Source§impl PartialOrd for UNAuthorizationStatus
impl PartialOrd for UNAuthorizationStatus
impl Copy for UNAuthorizationStatus
impl Eq for UNAuthorizationStatus
impl StructuralPartialEq for UNAuthorizationStatus
Auto Trait Implementations§
impl Freeze for UNAuthorizationStatus
impl RefUnwindSafe for UNAuthorizationStatus
impl Send for UNAuthorizationStatus
impl Sync for UNAuthorizationStatus
impl Unpin for UNAuthorizationStatus
impl UnwindSafe for UNAuthorizationStatus
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