#[non_exhaustive]pub enum PropertyType {
Command,
Bool,
Int,
Float,
Unsigned,
PixelFmt,
Duration,
EnumStr,
EnumInt,
EnumUnsigned,
}
Expand description
The type of a property
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.
Command
A command property
Bool
A boolean property
Int
An integer property (i64
)
Float
A floating point property (f64
)
Unsigned
An unsigned integer property (u64
)
PixelFmt
A pixel format property (GenCamPixelBpp
)
Duration
A duration property (Duration
)
EnumStr
An enum string property (String
)
EnumInt
An enum integer property (i64
)
EnumUnsigned
An enum unsigned integer property (u64
)
Trait Implementations§
source§impl Clone for PropertyType
impl Clone for PropertyType
source§fn clone(&self) -> PropertyType
fn clone(&self) -> PropertyType
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 PropertyType
impl Debug for PropertyType
source§impl<'de> Deserialize<'de> for PropertyType
impl<'de> Deserialize<'de> for PropertyType
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<&PropertyLims> for PropertyType
impl From<&PropertyLims> for PropertyType
source§fn from(prop: &PropertyLims) -> Self
fn from(prop: &PropertyLims) -> Self
Converts to this type from the input type.
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 PartialEq for PropertyType
impl PartialEq for PropertyType
source§impl Serialize for PropertyType
impl Serialize for PropertyType
impl Copy for PropertyType
impl StructuralPartialEq for PropertyType
Auto Trait Implementations§
impl Freeze for PropertyType
impl RefUnwindSafe for PropertyType
impl Send for PropertyType
impl Sync for PropertyType
impl Unpin for PropertyType
impl UnwindSafe for PropertyType
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
)