#[repr(transparent)]pub struct AVCaptureFlashMode(pub NSInteger);Available on crate feature
AVCaptureDevice only.Expand description
Constants indicating the mode of the flash on the receiver’s device, if it has one.
Indicates that the flash should always be off.
Indicates that the flash should always be on.
Indicates that the flash should be used automatically depending on ambient light conditions.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Trait Implementations§
Source§impl Clone for AVCaptureFlashMode
impl Clone for AVCaptureFlashMode
Source§fn clone(&self) -> AVCaptureFlashMode
fn clone(&self) -> AVCaptureFlashMode
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 AVCaptureFlashMode
impl Debug for AVCaptureFlashMode
Source§impl Encode for AVCaptureFlashMode
impl Encode for AVCaptureFlashMode
Source§impl Hash for AVCaptureFlashMode
impl Hash for AVCaptureFlashMode
Source§impl Ord for AVCaptureFlashMode
impl Ord for AVCaptureFlashMode
Source§fn cmp(&self, other: &AVCaptureFlashMode) -> Ordering
fn cmp(&self, other: &AVCaptureFlashMode) -> 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 AVCaptureFlashMode
impl PartialEq for AVCaptureFlashMode
Source§impl PartialOrd for AVCaptureFlashMode
impl PartialOrd for AVCaptureFlashMode
Source§impl RefEncode for AVCaptureFlashMode
impl RefEncode for AVCaptureFlashMode
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 AVCaptureFlashMode
impl Eq for AVCaptureFlashMode
impl StructuralPartialEq for AVCaptureFlashMode
Auto Trait Implementations§
impl Freeze for AVCaptureFlashMode
impl RefUnwindSafe for AVCaptureFlashMode
impl Send for AVCaptureFlashMode
impl Sync for AVCaptureFlashMode
impl Unpin for AVCaptureFlashMode
impl UnwindSafe for AVCaptureFlashMode
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.