Enum generic_camera::DeviceCtrl
source · #[non_exhaustive]pub enum DeviceCtrl {
Show 13 variants
ScanType,
VendorName,
ModelName,
FamilyName,
MfgInfo,
Version,
FwVersion,
SerialNumber,
Id,
UserId,
TlType,
TemperatureSelector,
Temperature,
}Expand description
Describes device-specific control options.
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.
ScanType
Query line or area scan type, usually PropertyType::EnumStr
VendorName
Query device vendor (PropertyType::EnumStr)
ModelName
Query device model (PropertyType::EnumStr)
FamilyName
Query device family (PropertyType::EnumStr)
MfgInfo
Query manufacturer information (PropertyType::EnumStr)
Version
Query version (PropertyType::EnumStr)
FwVersion
Query firmware version (PropertyType::EnumStr)
SerialNumber
Query serial number (PropertyType::EnumStr)
Id
Query unique ID (PropertyType::EnumStr)
UserId
Query user-set ID (PropertyType::EnumStr)
TlType
Query transport layer type (PropertyType::EnumStr)
TemperatureSelector
Select device temperature source (PropertyType::EnumStr)
Temperature
Query selected temperature (PropertyType::Float)
Trait Implementations§
source§impl Clone for DeviceCtrl
impl Clone for DeviceCtrl
source§fn clone(&self) -> DeviceCtrl
fn clone(&self) -> DeviceCtrl
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 DeviceCtrl
impl Debug for DeviceCtrl
source§impl<'de> Deserialize<'de> for DeviceCtrl
impl<'de> Deserialize<'de> for DeviceCtrl
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<DeviceCtrl> for GenCamCtrl
impl From<DeviceCtrl> for GenCamCtrl
source§fn from(ctrl: DeviceCtrl) -> Self
fn from(ctrl: DeviceCtrl) -> Self
Converts to this type from the input type.
source§impl PartialEq for DeviceCtrl
impl PartialEq for DeviceCtrl
source§impl Serialize for DeviceCtrl
impl Serialize for DeviceCtrl
impl Copy for DeviceCtrl
impl StructuralPartialEq for DeviceCtrl
Auto Trait Implementations§
impl Freeze for DeviceCtrl
impl RefUnwindSafe for DeviceCtrl
impl Send for DeviceCtrl
impl Sync for DeviceCtrl
impl Unpin for DeviceCtrl
impl UnwindSafe for DeviceCtrl
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)