Enum generic_camera::PropertyValue
source · #[non_exhaustive]pub enum PropertyValue {
Bool(bool),
Int(i64),
Float(f64),
Unsigned(u64),
PixelFmt(GenCamPixelBpp),
Duration(Duration),
EnumStr(String),
}Expand description
A property value
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bool(bool)
A boolean value
Int(i64)
An integer value
Float(f64)
A floating point value
Unsigned(u64)
An unsigned integer value
PixelFmt(GenCamPixelBpp)
A pixel format value
Duration(Duration)
A duration value
EnumStr(String)
An enum string value
Trait Implementations§
source§impl Clone for PropertyValue
impl Clone for PropertyValue
source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
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 PropertyValue
impl Debug for PropertyValue
source§impl<'de> Deserialize<'de> for PropertyValue
impl<'de> Deserialize<'de> for PropertyValue
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
source§impl From<&PropertyValue> for PropertyType
impl From<&PropertyValue> for PropertyType
source§fn from(prop: &PropertyValue) -> Self
fn from(prop: &PropertyValue) -> Self
Converts to this type from the input type.
source§impl From<&str> for PropertyValue
impl From<&str> for PropertyValue
source§impl From<Duration> for PropertyValue
impl From<Duration> for PropertyValue
source§impl From<GenCamPixelBpp> for PropertyValue
impl From<GenCamPixelBpp> for PropertyValue
source§fn from(val: GenCamPixelBpp) -> Self
fn from(val: GenCamPixelBpp) -> Self
Converts to this type from the input type.
source§impl<'a> From<PropertyValue> for GenCamOk<'a>
impl<'a> From<PropertyValue> for GenCamOk<'a>
source§fn from(value: PropertyValue) -> Self
fn from(value: PropertyValue) -> Self
Converts to this type from the input type.
source§impl From<String> for PropertyValue
impl From<String> for PropertyValue
source§impl From<bool> for PropertyValue
impl From<bool> for PropertyValue
source§impl From<f64> for PropertyValue
impl From<f64> for PropertyValue
source§impl From<i64> for PropertyValue
impl From<i64> for PropertyValue
source§impl From<u64> for PropertyValue
impl From<u64> for PropertyValue
source§impl PartialEq for PropertyValue
impl PartialEq for PropertyValue
source§impl Serialize for PropertyValue
impl Serialize for PropertyValue
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
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)