Enum hid_io_protocol::HidIoCommandId
source · #[repr(u32)]
pub enum HidIoCommandId {
Show 37 variants
SupportedIds,
GetInfo,
TestPacket,
ResetHidIo,
Reserved,
GetProperties,
KeyState,
KeyboardLayout,
KeyLayout,
KeyShapes,
LedLayout,
FlashMode,
UnicodeText,
UnicodeState,
HostMacro,
SleepMode,
KllState,
PixelSetting,
PixelSet1c8b,
PixelSet3c8b,
PixelSet1c16b,
PixelSet3c16b,
DirectSet,
OpenUrl,
TerminalCmd,
GetInputLayout,
SetInputLayout,
TerminalOut,
HidKeyboard,
HidKeyboardLed,
HidMouse,
HidJoystick,
HidSystemCtrl,
HidConsumerCtrl,
ManufacturingTest,
ManufacturingResult,
Unused,
}
Expand description
Requests for to perform a specific action
Variants
SupportedIds
GetInfo
TestPacket
ResetHidIo
Reserved
GetProperties
KeyState
KeyboardLayout
KeyLayout
KeyShapes
LedLayout
FlashMode
UnicodeText
UnicodeState
HostMacro
SleepMode
KllState
PixelSetting
PixelSet1c8b
PixelSet3c8b
PixelSet1c16b
PixelSet3c16b
DirectSet
OpenUrl
TerminalCmd
GetInputLayout
SetInputLayout
TerminalOut
HidKeyboard
HidKeyboardLed
HidMouse
HidJoystick
HidSystemCtrl
HidConsumerCtrl
ManufacturingTest
ManufacturingResult
Unused
Trait Implementations
sourceimpl Clone for HidIoCommandId
impl Clone for HidIoCommandId
sourcefn clone(&self) -> HidIoCommandId
fn clone(&self) -> HidIoCommandId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HidIoCommandId
impl Debug for HidIoCommandId
sourceimpl From<HidIoCommandId> for u32
impl From<HidIoCommandId> for u32
sourcefn from(enum_value: HidIoCommandId) -> Self
fn from(enum_value: HidIoCommandId) -> Self
Converts to this type from the input type.
sourceimpl Ord for HidIoCommandId
impl Ord for HidIoCommandId
sourcefn cmp(&self, other: &HidIoCommandId) -> Ordering
fn cmp(&self, other: &HidIoCommandId) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<HidIoCommandId> for HidIoCommandId
impl PartialEq<HidIoCommandId> for HidIoCommandId
sourcefn eq(&self, other: &HidIoCommandId) -> bool
fn eq(&self, other: &HidIoCommandId) -> bool
sourceimpl PartialOrd<HidIoCommandId> for HidIoCommandId
impl PartialOrd<HidIoCommandId> for HidIoCommandId
sourcefn partial_cmp(&self, other: &HidIoCommandId) -> Option<Ordering>
fn partial_cmp(&self, other: &HidIoCommandId) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl TryFrom<u32> for HidIoCommandId
impl TryFrom<u32> for HidIoCommandId
type Error = TryFromPrimitiveError<HidIoCommandId>
type Error = TryFromPrimitiveError<HidIoCommandId>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for HidIoCommandId
impl TryFromPrimitive for HidIoCommandId
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for HidIoCommandId
impl Eq for HidIoCommandId
impl StructuralEq for HidIoCommandId
impl StructuralPartialEq for HidIoCommandId
Auto Trait Implementations
impl RefUnwindSafe for HidIoCommandId
impl Send for HidIoCommandId
impl Sync for HidIoCommandId
impl Unpin for HidIoCommandId
impl UnwindSafe for HidIoCommandId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more