pub enum HidppOperation {
Show 23 variants
ResolveFeature,
DumpFeatures,
ReadDpi,
ReadDpiCapabilities,
WriteDpi,
ReadSmartShift,
WriteSmartShift,
Lighting,
ReadWheelMode,
WriteWheelMode,
ReadBacklight,
WriteBacklight,
WriteFnLock,
Light,
PlayHaptic,
ReadFnLock,
ReadPointerScaling,
WritePointerScaling,
WriteOsLayout,
ReadReportRate,
WriteReportRate,
ReadHosts,
RenameHost,
}Expand description
HID++ operation being performed when a device write/read failed.
Variant order is wire format because this travels inside WriteError.
Variants§
ResolveFeature
Resolve a feature ID to its runtime feature index.
DumpFeatures
Enumerate the device feature table.
ReadDpi
Read current DPI.
ReadDpiCapabilities
Read DPI capabilities.
WriteDpi
Write DPI.
ReadSmartShift
Read SmartShift status.
WriteSmartShift
Write SmartShift status.
Lighting
Write keyboard lighting.
ReadWheelMode
Read HiResWheel capabilities or the current wheel mode.
WriteWheelMode
Write and verify the native HiResWheel mode.
ReadBacklight
Read the keyboard backlight config or info.
WriteBacklight
Write the keyboard backlight config.
WriteFnLock
Write keyboard Fn-lock (fn inversion).
Light
Write a standalone-light command. Appended last — variant order is wire format.
PlayHaptic
Play one haptic waveform. Appended last — variant order is wire format.
ReadFnLock
Read keyboard Fn-lock (fn inversion). Appended last — variant order is wire format.
ReadPointerScaling
Read the 0x2205 pointer-motion scaling. Appended last — variant order
is wire format.
WritePointerScaling
Write the 0x2205 pointer-motion scaling. Appended last — variant order
is wire format.
WriteOsLayout
Keep a keyboard’s 0x4531 platform on the host OS: read the platform
table and the current host’s platform, and write it when it differs.
Appended last — variant order is wire format.
ReadReportRate
Read the 0x8060 / 0x8061 report rate and the rates the device
lists. Appended last — variant order is wire format.
WriteReportRate
Write the 0x8060 / 0x8061 report rate. Appended last — variant
order is wire format.
ReadHosts
Read the 0x1815 Easy-Switch host slots, their names and OS.
Appended last — variant order is wire format.
RenameHost
Write an Easy-Switch slot’s 0x1815 host name. Appended last —
variant order is wire format.
Trait Implementations§
Source§impl Clone for HidppOperation
impl Clone for HidppOperation
impl Copy for HidppOperation
Source§impl Debug for HidppOperation
impl Debug for HidppOperation
Source§impl<'de> Deserialize<'de> for HidppOperation
impl<'de> Deserialize<'de> for HidppOperation
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>,
impl Eq for HidppOperation
Source§impl PartialEq for HidppOperation
impl PartialEq for HidppOperation
Source§impl Serialize for HidppOperation
impl Serialize for HidppOperation
impl StructuralPartialEq for HidppOperation
Auto Trait Implementations§
impl Freeze for HidppOperation
impl RefUnwindSafe for HidppOperation
impl Send for HidppOperation
impl Sync for HidppOperation
impl Unpin for HidppOperation
impl UnsafeUnpin for HidppOperation
impl UnwindSafe for HidppOperation
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.