#[repr(transparent)]pub struct AVAuthorizationStatus(pub NSInteger);Available on crate feature
AVCaptureDevice only.Expand description
Constants indicating the client’s authorization to the underlying hardware supporting a media type.
Indicates that the user has not yet made a choice regarding whether the client can access the hardware.
The client is not authorized to access the hardware for the media type. The user cannot change the client’s status, possibly due to active restrictions such as parental controls being in place.
The user explicitly denied access to the hardware supporting a media type for the client.
The client is authorized to access the hardware supporting a media type.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl AVAuthorizationStatus
impl AVAuthorizationStatus
pub const NotDetermined: Self
pub const Restricted: Self
pub const Denied: Self
pub const Authorized: Self
Trait Implementations§
Source§impl Clone for AVAuthorizationStatus
impl Clone for AVAuthorizationStatus
Source§fn clone(&self) -> AVAuthorizationStatus
fn clone(&self) -> AVAuthorizationStatus
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 AVAuthorizationStatus
impl Debug for AVAuthorizationStatus
Source§impl Encode for AVAuthorizationStatus
impl Encode for AVAuthorizationStatus
Source§impl Hash for AVAuthorizationStatus
impl Hash for AVAuthorizationStatus
Source§impl Ord for AVAuthorizationStatus
impl Ord for AVAuthorizationStatus
Source§fn cmp(&self, other: &AVAuthorizationStatus) -> Ordering
fn cmp(&self, other: &AVAuthorizationStatus) -> 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 AVAuthorizationStatus
impl PartialEq for AVAuthorizationStatus
Source§impl PartialOrd for AVAuthorizationStatus
impl PartialOrd for AVAuthorizationStatus
Source§impl RefEncode for AVAuthorizationStatus
impl RefEncode for AVAuthorizationStatus
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 AVAuthorizationStatus
impl Eq for AVAuthorizationStatus
impl StructuralPartialEq for AVAuthorizationStatus
Auto Trait Implementations§
impl Freeze for AVAuthorizationStatus
impl RefUnwindSafe for AVAuthorizationStatus
impl Send for AVAuthorizationStatus
impl Sync for AVAuthorizationStatus
impl Unpin for AVAuthorizationStatus
impl UnwindSafe for AVAuthorizationStatus
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.