pub struct ControlDescriptor {
pub id: ControlId,
pub unit: ControlUnit,
pub readable: bool,
pub writable: Option<bool>,
pub range: Option<ControlRange>,
pub modes: Vec<ControlMode>,
pub requires_manual: Option<ControlId>,
}Expand description
Capabilities and access rules for one camera control.
Fields§
§id: ControlIdThe id value.
unit: ControlUnitThe unit value.
readable: boolThe readable value.
writable: Option<bool>The writable value.
range: Option<ControlRange>The range value.
modes: Vec<ControlMode>The modes value.
requires_manual: Option<ControlId>Some controls only apply while the associated automatic mode is disabled.
Trait Implementations§
Source§impl Clone for ControlDescriptor
impl Clone for ControlDescriptor
Source§fn clone(&self) -> ControlDescriptor
fn clone(&self) -> ControlDescriptor
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 moreAuto Trait Implementations§
impl Freeze for ControlDescriptor
impl RefUnwindSafe for ControlDescriptor
impl Send for ControlDescriptor
impl Sync for ControlDescriptor
impl Unpin for ControlDescriptor
impl UnsafeUnpin for ControlDescriptor
impl UnwindSafe for ControlDescriptor
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