pub enum CameraPermission {
Granted,
NotDetermined,
Denied,
}Expand description
Camera permission probe (M-CAM.2 / AUT-256). Stub-returns
Granted on every platform today; full macOS implementation via
AVCaptureDevice.authorizationStatus(for:) is M-RECP.0 territory.
Variants§
Granted
User has granted camera access.
NotDetermined
macOS has not yet asked the user — the next capture call will trigger the OS-level prompt.
Denied
User has explicitly denied access.
Trait Implementations§
Source§impl Clone for CameraPermission
impl Clone for CameraPermission
Source§fn clone(&self) -> CameraPermission
fn clone(&self) -> CameraPermission
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 moreSource§impl Debug for CameraPermission
impl Debug for CameraPermission
Source§impl<'de> Deserialize<'de> for CameraPermission
impl<'de> Deserialize<'de> for CameraPermission
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CameraPermission
impl Serialize for CameraPermission
impl Copy for CameraPermission
Auto Trait Implementations§
impl Freeze for CameraPermission
impl RefUnwindSafe for CameraPermission
impl Send for CameraPermission
impl Sync for CameraPermission
impl Unpin for CameraPermission
impl UnsafeUnpin for CameraPermission
impl UnwindSafe for CameraPermission
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,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more