pub struct Description {
pub id: ControlId,
pub typ: Type,
pub name: String,
pub minimum: i64,
pub maximum: i64,
pub step: u64,
pub default: i64,
pub flags: Flags,
pub items: Option<Vec<(u32, MenuItem)>>,
}
Expand description
Device control description
Fields§
§id: ControlId
Control identifier, set by the the application
typ: Type
Type of control
name: String
Name of the control, intended for the user
minimum: i64
Minimum value, inclusive
maximum: i64
Maximum value, inclusive
step: u64
Step size, always positive
default: i64
Default value
flags: Flags
Control flags
items: Option<Vec<(u32, MenuItem)>>
Items for menu controls (only valid if typ is a menu type)
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Source§fn clone(&self) -> Description
fn clone(&self) -> Description
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 Debug for Description
impl Debug for Description
Source§impl Display for Description
impl Display for Description
Source§impl From<v4l2_query_ext_ctrl> for Description
impl From<v4l2_query_ext_ctrl> for Description
Source§impl PartialEq for Description
impl PartialEq for Description
impl StructuralPartialEq for Description
Auto Trait Implementations§
impl Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnwindSafe for Description
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