#[non_exhaustive]pub enum DeviceCtrl {
Show 20 variants
ScanType,
VendorName,
ModelName,
FamilyName,
MfgInfo,
Version,
FwVersion,
SerialNumber,
Id,
UserId,
TlType,
TemperatureSelector,
Temperature,
Reset,
CoolerTemp,
CoolerPower,
CoolerEnable,
HighSpeedMode,
FanToggle,
Custom(CustomName),
}
Expand description
Describes device-specific control options.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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
)
Reset
Reset device (PropertyType::Command
)
CoolerTemp
Configure the cooler temperature (PropertyType::Float
)
CoolerPower
Configure the cooler power (PropertyType::Float
)
CoolerEnable
Enable or disable the cooler (PropertyType::Bool
)
HighSpeedMode
Configure high speed mode (PropertyType::Bool
)
FanToggle
Configure device fan (PropertyType::Bool
)
Custom(CustomName)
A custom command
Trait Implementations§
source§impl Clone for DeviceCtrl
impl Clone for DeviceCtrl
source§fn clone(&self) -> DeviceCtrl
fn clone(&self) -> DeviceCtrl
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
source§impl Documented for DeviceCtrl
impl Documented for DeviceCtrl
source§impl DocumentedVariants for DeviceCtrl
impl DocumentedVariants for DeviceCtrl
source§fn get_variant_docs(&self) -> &'static str
fn get_variant_docs(&self) -> &'static str
source§impl From<DeviceCtrl> for GenCamCtrl
impl From<DeviceCtrl> for GenCamCtrl
source§fn from(ctrl: DeviceCtrl) -> Self
fn from(ctrl: DeviceCtrl) -> Self
source§impl Hash for DeviceCtrl
impl Hash for DeviceCtrl
source§impl PartialEq for DeviceCtrl
impl PartialEq for DeviceCtrl
source§impl Serialize for DeviceCtrl
impl Serialize for DeviceCtrl
source§impl ToolTip for DeviceCtrl
impl ToolTip for DeviceCtrl
impl Copy for DeviceCtrl
impl Eq 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
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)
clone_to_uninit
)