#[repr(transparent)]pub struct ENAuthorizationStatus(pub NSInteger);Available on crate feature
ENCommon only.Expand description
Indicates the status of authorization for the app.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl ENAuthorizationStatus
impl ENAuthorizationStatus
Sourcepub const Unknown: Self
pub const Unknown: Self
Authorization status has not yet been determined. This status means the user has not been prompted yet. Using the API in this state may prompt the user.
Sourcepub const Restricted: Self
pub const Restricted: Self
This app is not authorized to use Exposure Notification. The user cannot change this app’s authorization status. This status may be due to active restrictions, such as parental controls being in place.
Sourcepub const NotAuthorized: Self
pub const NotAuthorized: Self
The user denied authorization for this app.
Sourcepub const Authorized: Self
pub const Authorized: Self
The user has authorized this app to use Exposure Notification.
Trait Implementations§
Source§impl Clone for ENAuthorizationStatus
impl Clone for ENAuthorizationStatus
Source§fn clone(&self) -> ENAuthorizationStatus
fn clone(&self) -> ENAuthorizationStatus
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 ENAuthorizationStatus
impl Debug for ENAuthorizationStatus
Source§impl Encode for ENAuthorizationStatus
impl Encode for ENAuthorizationStatus
Source§impl Hash for ENAuthorizationStatus
impl Hash for ENAuthorizationStatus
Source§impl Ord for ENAuthorizationStatus
impl Ord for ENAuthorizationStatus
Source§fn cmp(&self, other: &ENAuthorizationStatus) -> Ordering
fn cmp(&self, other: &ENAuthorizationStatus) -> 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 ENAuthorizationStatus
impl PartialEq for ENAuthorizationStatus
Source§impl PartialOrd for ENAuthorizationStatus
impl PartialOrd for ENAuthorizationStatus
Source§impl RefEncode for ENAuthorizationStatus
impl RefEncode for ENAuthorizationStatus
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for ENAuthorizationStatus
impl Eq for ENAuthorizationStatus
impl StructuralPartialEq for ENAuthorizationStatus
Auto Trait Implementations§
impl Freeze for ENAuthorizationStatus
impl RefUnwindSafe for ENAuthorizationStatus
impl Send for ENAuthorizationStatus
impl Sync for ENAuthorizationStatus
impl Unpin for ENAuthorizationStatus
impl UnwindSafe for ENAuthorizationStatus
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<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.