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