#[repr(i32)]pub enum AfTrigger {
Start = 0,
Cancel = 1,
}
Expand description
This control starts an autofocus scan when AfMode is set to AfModeAuto, and can also be used to terminate a scan early.
It is ignored if AfMode is set to AfModeManual or AfModeContinuous.
Variants§
Start = 0
Start an AF scan. 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)