pub enum PermissionStatus {
NotDetermined,
Granted,
Denied,
Restricted,
Limited,
Unsupported,
}Expand description
Normalized authorization state returned across iOS, iPadOS, macOS, Android, Windows, Linux, and Web.
Variants§
NotDetermined
User has not yet been prompted for this permission.
Granted
Full authorization granted by the user or OS policy.
Denied
Explicitly denied by the user.
Restricted
Blocked by parental controls, MDM, or OS sandbox policy.
Limited
Partial access granted (e.g. iOS Selected Photos or approximate location).
Unsupported
Hardware or permission API does not exist on the active platform.
Trait Implementations§
Source§impl Clone for PermissionStatus
impl Clone for PermissionStatus
Source§fn clone(&self) -> PermissionStatus
fn clone(&self) -> PermissionStatus
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 PermissionStatus
Source§impl Debug for PermissionStatus
impl Debug for PermissionStatus
Source§impl Default for PermissionStatus
impl Default for PermissionStatus
Source§fn default() -> PermissionStatus
fn default() -> PermissionStatus
Returns the “default value” for a type. Read more
impl Eq for PermissionStatus
Source§impl Hash for PermissionStatus
impl Hash for PermissionStatus
Source§impl Ord for PermissionStatus
impl Ord for PermissionStatus
Source§fn cmp(&self, other: &PermissionStatus) -> Ordering
fn cmp(&self, other: &PermissionStatus) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PermissionStatus
impl PartialEq for PermissionStatus
Source§impl PartialOrd for PermissionStatus
impl PartialOrd for PermissionStatus
impl StructuralPartialEq for PermissionStatus
Auto Trait Implementations§
impl Forget for PermissionStatus
impl Freeze for PermissionStatus
impl Move for PermissionStatus
impl RefUnwindSafe for PermissionStatus
impl Send for PermissionStatus
impl Sync for PermissionStatus
impl Unpin for PermissionStatus
impl UnsafeUnpin for PermissionStatus
impl UnwindSafe for PermissionStatus
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