pub struct CameraControls(pub BTreeMap<String, i32>);Expand description
Per-webcam UVC controls, keyed by control name (brightness, focus,
focus_auto, …). Each value is the raw device unit (its scale comes from
the camera’s own min/max); auto toggles store 0/1. Persisted so values
survive an unplug or reboot — the GUI re-applies them over USB when the
camera is next viewed, since the hardware only retains them until it loses
power. Serializes to the same TOML table the earlier fixed-field struct
wrote, so existing saved controls load unchanged.
Tuple Fields§
§0: BTreeMap<String, i32>Trait Implementations§
Source§impl Clone for CameraControls
impl Clone for CameraControls
Source§fn clone(&self) -> CameraControls
fn clone(&self) -> CameraControls
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 moreSource§impl Debug for CameraControls
impl Debug for CameraControls
Source§impl Default for CameraControls
impl Default for CameraControls
Source§fn default() -> CameraControls
fn default() -> CameraControls
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CameraControls
impl<'de> Deserialize<'de> for CameraControls
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CameraControls
Source§impl PartialEq for CameraControls
impl PartialEq for CameraControls
Source§impl Serialize for CameraControls
impl Serialize for CameraControls
impl StructuralPartialEq for CameraControls
Auto Trait Implementations§
impl Freeze for CameraControls
impl RefUnwindSafe for CameraControls
impl Send for CameraControls
impl Sync for CameraControls
impl Unpin for CameraControls
impl UnsafeUnpin for CameraControls
impl UnwindSafe for CameraControls
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.