Struct input_linux::InputId
source · #[repr(C)]pub struct InputId {
pub bustype: u16,
pub vendor: u16,
pub product: u16,
pub version: u16,
}
Expand description
Identifies an input device.
Fields§
§bustype: u16
Identifies the bus where the input device is found, see sys::BUS_*
vendor: u16
The vendor ID of the input device.
product: u16
The product ID of the input device.
version: u16
The version of the input device.
Trait Implementations§
source§impl<'de> Deserialize<'de> for InputId
impl<'de> Deserialize<'de> for InputId
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
source§impl Ord for InputId
impl Ord for InputId
source§impl PartialEq<InputId> for InputId
impl PartialEq<InputId> for InputId
source§impl PartialOrd<InputId> for InputId
impl PartialOrd<InputId> for InputId
1.0.0 · source§fn 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 more