pub enum CameraControl {
Zoom,
Focus,
Exposure,
Brightness,
Contrast,
Saturation,
Sharpness,
WhiteBalance,
Tint,
}Expand description
One adjustable camera control, mapped to a UVC selector by each backend.
Variants§
Implementations§
Source§impl CameraControl
impl CameraControl
Sourcepub const ALL: [Self; 9]
pub const ALL: [Self; 9]
Every control, in the order the UI lists them (lens first, then image).
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
Stable snake_case identifier used for config persistence and the CLI.
Sourcepub fn auto_toggle(self) -> Option<AutoToggle>
pub fn auto_toggle(self) -> Option<AutoToggle>
The auto-mode toggle that gates this control, if the device has one.
Trait Implementations§
Source§impl Clone for CameraControl
impl Clone for CameraControl
Source§fn clone(&self) -> CameraControl
fn clone(&self) -> CameraControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CameraControl
Source§impl Debug for CameraControl
impl Debug for CameraControl
impl Eq for CameraControl
Source§impl PartialEq for CameraControl
impl PartialEq for CameraControl
impl StructuralPartialEq for CameraControl
Auto Trait Implementations§
impl Freeze for CameraControl
impl RefUnwindSafe for CameraControl
impl Send for CameraControl
impl Sync for CameraControl
impl Unpin for CameraControl
impl UnsafeUnpin for CameraControl
impl UnwindSafe for CameraControl
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