#[repr(u32)]pub enum HidIoCommandId {
Show 37 variants
SupportedIds = 0,
GetInfo = 1,
TestPacket = 2,
ResetHidIo = 3,
Reserved = 4,
GetProperties = 16,
KeyState = 17,
KeyboardLayout = 18,
KeyLayout = 19,
KeyShapes = 20,
LedLayout = 21,
FlashMode = 22,
UnicodeText = 23,
UnicodeState = 24,
HostMacro = 25,
SleepMode = 26,
KllState = 32,
PixelSetting = 33,
PixelSet1c8b = 34,
PixelSet3c8b = 35,
PixelSet1c16b = 36,
PixelSet3c16b = 37,
DirectSet = 38,
OpenUrl = 48,
TerminalCmd = 49,
GetInputLayout = 50,
SetInputLayout = 51,
TerminalOut = 52,
HidKeyboard = 64,
HidKeyboardLed = 65,
HidMouse = 66,
HidJoystick = 67,
HidSystemCtrl = 68,
HidConsumerCtrl = 69,
ManufacturingTest = 80,
ManufacturingResult = 81,
Unused = 65_535,
}
Expand description
Requests for to perform a specific action
Variants§
SupportedIds = 0
GetInfo = 1
TestPacket = 2
ResetHidIo = 3
Reserved = 4
GetProperties = 16
KeyState = 17
KeyboardLayout = 18
KeyLayout = 19
KeyShapes = 20
LedLayout = 21
FlashMode = 22
UnicodeText = 23
UnicodeState = 24
HostMacro = 25
SleepMode = 26
KllState = 32
PixelSetting = 33
PixelSet1c8b = 34
PixelSet3c8b = 35
PixelSet1c16b = 36
PixelSet3c16b = 37
DirectSet = 38
OpenUrl = 48
TerminalCmd = 49
GetInputLayout = 50
SetInputLayout = 51
TerminalOut = 52
HidKeyboard = 64
HidKeyboardLed = 65
HidMouse = 66
HidJoystick = 67
HidSystemCtrl = 68
HidConsumerCtrl = 69
ManufacturingTest = 80
ManufacturingResult = 81
Unused = 65_535
Trait Implementations§
Source§impl Clone for HidIoCommandId
impl Clone for HidIoCommandId
Source§fn clone(&self) -> HidIoCommandId
fn clone(&self) -> HidIoCommandId
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 HidIoCommandId
impl Debug for HidIoCommandId
Source§impl Ord for HidIoCommandId
impl Ord for HidIoCommandId
Source§fn cmp(&self, other: &HidIoCommandId) -> Ordering
fn cmp(&self, other: &HidIoCommandId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HidIoCommandId
impl PartialEq for HidIoCommandId
Source§impl PartialOrd for HidIoCommandId
impl PartialOrd for HidIoCommandId
Source§impl TryFrom<u32> for HidIoCommandId
impl TryFrom<u32> for HidIoCommandId
Source§type Error = TryFromPrimitiveError<HidIoCommandId>
type Error = TryFromPrimitiveError<HidIoCommandId>
The type returned in the event of a conversion error.
Source§fn try_from(
number: u32,
) -> Result<HidIoCommandId, TryFromPrimitiveError<HidIoCommandId>>
fn try_from( number: u32, ) -> Result<HidIoCommandId, TryFromPrimitiveError<HidIoCommandId>>
Performs the conversion.
Source§impl TryFromPrimitive for HidIoCommandId
impl TryFromPrimitive for HidIoCommandId
const NAME: &'static str = "HidIoCommandId"
type Primitive = u32
fn try_from_primitive( number: <HidIoCommandId as TryFromPrimitive>::Primitive, ) -> Result<HidIoCommandId, TryFromPrimitiveError<HidIoCommandId>>
impl Copy for HidIoCommandId
impl Eq for HidIoCommandId
impl StructuralPartialEq for HidIoCommandId
Auto Trait Implementations§
impl Freeze for HidIoCommandId
impl RefUnwindSafe for HidIoCommandId
impl Send for HidIoCommandId
impl Sync for HidIoCommandId
impl Unpin for HidIoCommandId
impl UnwindSafe for HidIoCommandId
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§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.