Enum libcamera::controls::AfPauseState
source · #[repr(i32)]pub enum AfPauseState {
Running,
Pausing,
Paused,
}
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
Continuous AF is running and the algorithm may restart a scan spontaneously.
Pausing
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
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<AfPauseState> for AfPauseState
impl PartialEq<AfPauseState> for AfPauseState
source§fn eq(&self, other: &AfPauseState) -> bool
fn eq(&self, other: &AfPauseState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<ControlValue> for AfPauseState
impl TryFrom<ControlValue> for AfPauseState
§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 StructuralEq for AfPauseState
impl StructuralPartialEq for AfPauseState
Auto Trait Implementations§
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