#[repr(i32)]pub enum AfTrigger {
Start = 0,
Cancel = 1,
}
Expand description
Start an autofocus scan.
This control starts an autofocus scan when AfMode is set to AfModeAuto, and is ignored if AfMode is set to AfModeManual or AfModeContinuous. It can also be used to terminate a scan early.
Variants§
Start = 0
Start an AF scan.
Setting the control to AfTriggerStart is ignored if a scan is in progress.
Cancel = 1
Cancel an AF scan.
This does not cause the lens to move anywhere else. Ignored if no scan is in progress.
Trait Implementations§
Source§impl From<AfTrigger> for ControlValue
impl From<AfTrigger> for ControlValue
Source§impl TryFrom<ControlValue> for AfTrigger
impl TryFrom<ControlValue> for AfTrigger
Source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
impl Control for AfTrigger
impl Copy for AfTrigger
impl Eq for AfTrigger
impl StructuralPartialEq for AfTrigger
Auto Trait Implementations§
impl Freeze for AfTrigger
impl RefUnwindSafe for AfTrigger
impl Send for AfTrigger
impl Sync for AfTrigger
impl Unpin for AfTrigger
impl UnwindSafe for AfTrigger
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