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: u16Identifies the bus where the input device is found, see sys::BUS_*
vendor: u16The vendor ID of the input device.
product: u16The product ID of the input device.
version: u16The 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 for InputId
impl PartialEq for InputId
source§impl PartialOrd for InputId
impl PartialOrd 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 moreimpl Copy for InputId
impl Eq for InputId
impl StructuralPartialEq for InputId
Auto Trait Implementations§
impl Freeze for InputId
impl RefUnwindSafe for InputId
impl Send for InputId
impl Sync for InputId
impl Unpin for InputId
impl UnwindSafe for InputId
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)