pub enum HidppOperation {
Show 15 variants
ResolveFeature,
DumpFeatures,
ReadDpi,
ReadDpiCapabilities,
WriteDpi,
ReadSmartShift,
WriteSmartShift,
Lighting,
ReadWheelMode,
WriteWheelMode,
ReadBacklight,
WriteBacklight,
WriteFnLock,
Light,
PlayHaptic,
}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.
Trait Implementations§
Source§impl Clone for HidppOperation
impl Clone for HidppOperation
Source§fn clone(&self) -> HidppOperation
fn clone(&self) -> HidppOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.