Struct generic_camera::Property
source · pub struct Property { /* private fields */ }Expand description
A property
Implementations§
source§impl Property
impl Property
sourcepub fn new<T>(name: T, prop: PropertyLims, auto: bool) -> Selfwhere
T: Into<GenCamCtrl>,
pub fn new<T>(name: T, prop: PropertyLims, auto: bool) -> Selfwhere
T: Into<GenCamCtrl>,
Create a new property
sourcepub fn get_name(&self) -> GenCamCtrl
pub fn get_name(&self) -> GenCamCtrl
Get the name of the property
sourcepub fn get_type(&self) -> PropertyType
pub fn get_type(&self) -> PropertyType
Get the type of the property
sourcepub fn supports_auto(&self) -> bool
pub fn supports_auto(&self) -> bool
Check if the property supports auto mode
sourcepub fn get_min(&self) -> Result<PropertyValue>
pub fn get_min(&self) -> Result<PropertyValue>
Get the minimum value of the property
sourcepub fn get_max(&self) -> Result<PropertyValue>
pub fn get_max(&self) -> Result<PropertyValue>
Get the maximum value of the property
sourcepub fn get_step(&self) -> Result<PropertyValue>
pub fn get_step(&self) -> Result<PropertyValue>
Get the step value of the property
sourcepub fn get_default(&self) -> Result<PropertyValue>
pub fn get_default(&self) -> Result<PropertyValue>
Get the default value of the property
sourcepub fn get_variants(&self) -> Result<Vec<PropertyValue>>
pub fn get_variants(&self) -> Result<Vec<PropertyValue>>
Get the variants of the property
Trait Implementations§
source§impl<'de> Deserialize<'de> for Property
impl<'de> Deserialize<'de> for Property
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 StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)