Enum libcamera::controls::AfPauseState
source · #[repr(i32)]pub enum AfPauseState {
Running = 0,
Pausing = 1,
Paused = 2,
}
Expand description
Only applicable in continuous (AfModeContinuous) mode, this reports whether the algorithm is currently running, paused or pausing (that is, will pause as soon as any in-progress scan completes).
Any change to AfMode will cause AfPauseStateRunning to be reported.
Variants§
Running = 0
Continuous AF is running and the algorithm may restart a scan spontaneously.
Pausing = 1
Continuous AF has been sent an AfPauseDeferred control, and will pause as soon as any in-progress scan completes (and then report AfPauseStatePaused). No new scans will be start spontaneously until the AfPauseResume control is sent.
Paused = 2
Continuous AF is paused. No further state changes or lens movements will occur until the AfPauseResume control is sent.
Trait Implementations§
source§impl Clone for AfPauseState
impl Clone for AfPauseState
source§fn clone(&self) -> AfPauseState
fn clone(&self) -> AfPauseState
Returns a copy 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 ControlEntry for AfPauseState
impl ControlEntry for AfPauseState
source§impl Debug for AfPauseState
impl Debug for AfPauseState
source§impl From<AfPauseState> for ControlValue
impl From<AfPauseState> for ControlValue
source§fn from(val: AfPauseState) -> Self
fn from(val: AfPauseState) -> Self
Converts to this type from the input type.
source§impl From<AfPauseState> for i32
impl From<AfPauseState> for i32
source§fn from(enum_value: AfPauseState) -> Self
fn from(enum_value: AfPauseState) -> Self
Converts to this type from the input type.
source§impl PartialEq for AfPauseState
impl PartialEq for AfPauseState
source§impl TryFrom<ControlValue> for AfPauseState
impl TryFrom<ControlValue> for AfPauseState
source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
source§impl TryFrom<i32> for AfPauseState
impl TryFrom<i32> for AfPauseState
source§impl TryFromPrimitive for AfPauseState
impl TryFromPrimitive for AfPauseState
impl Control for AfPauseState
impl Copy for AfPauseState
impl Eq for AfPauseState
impl StructuralPartialEq for AfPauseState
Auto Trait Implementations§
impl Freeze for AfPauseState
impl RefUnwindSafe for AfPauseState
impl Send for AfPauseState
impl Sync for AfPauseState
impl Unpin for AfPauseState
impl UnwindSafe for AfPauseState
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
)