#[repr(i32)]pub enum AfPause {
Immediate = 0,
Deferred = 1,
Resume = 2,
}
Expand description
This control has no effect except when in continuous autofocus mode (AfModeContinuous). It can be used to pause any lens movements while (for example) images are captured. The algorithm remains inactive until it is instructed to resume.
Variants§
Immediate = 0
Pause the continuous autofocus algorithm immediately, whether or not any kind of scan is underway. AfPauseState will subsequently report AfPauseStatePaused. AfState may report any of AfStateScanning, AfStateFocused or AfStateFailed, depending on the algorithm’s state when it received this control.
Deferred = 1
This is similar to AfPauseImmediate, and if the AfState is currently reporting AfStateFocused or AfStateFailed it will remain in that state and AfPauseState will report AfPauseStatePaused.
However, if the algorithm is scanning (AfStateScanning), AfPauseState will report AfPauseStatePausing until the scan is finished, at which point AfState will report one of AfStateFocused or AfStateFailed, and AfPauseState will change to AfPauseStatePaused.
Resume = 2
Resume continuous autofocus operation. The algorithm starts again from exactly where it left off, and AfPauseState will report AfPauseStateRunning.
Trait Implementations§
source§impl From<AfPause> for ControlValue
impl From<AfPause> for ControlValue
source§impl TryFrom<ControlValue> for AfPause
impl TryFrom<ControlValue> for AfPause
source§type Error = ControlValueError
type Error = ControlValueError
impl Control for AfPause
impl Copy for AfPause
impl Eq for AfPause
impl StructuralPartialEq for AfPause
Auto Trait Implementations§
impl Freeze for AfPause
impl RefUnwindSafe for AfPause
impl Send for AfPause
impl Sync for AfPause
impl Unpin for AfPause
impl UnwindSafe for AfPause
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
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)
clone_to_uninit
)