pub struct RawDeviceAddress {
pub vendor_id: u16,
pub product_id: u16,
pub usage_page: u16,
pub usage_id: u16,
pub identity: String,
}Expand description
Address of a standalone raw-HID interface.
The identity is an opaque transport-generated string. It is deliberately
kept separate from the HID++ receiver/slot address so a raw device cannot
accidentally enter the HID++ Direct path.
Fields§
§vendor_id: u16HID vendor ID.
product_id: u16HID product ID.
usage_page: u16HID usage page.
usage_id: u16HID usage ID.
identity: StringIdentity chosen by the transport: a serial when available, otherwise an explicitly transient OS-node identity. It is never an enumeration index and a transient value is not persisted as a physical key.
Trait Implementations§
Source§impl Clone for RawDeviceAddress
impl Clone for RawDeviceAddress
Source§fn clone(&self) -> RawDeviceAddress
fn clone(&self) -> RawDeviceAddress
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 moreSource§impl Debug for RawDeviceAddress
impl Debug for RawDeviceAddress
Source§impl<'de> Deserialize<'de> for RawDeviceAddress
impl<'de> Deserialize<'de> for RawDeviceAddress
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 RawDeviceAddress
Source§impl Hash for RawDeviceAddress
impl Hash for RawDeviceAddress
Source§impl PartialEq for RawDeviceAddress
impl PartialEq for RawDeviceAddress
Source§impl Serialize for RawDeviceAddress
impl Serialize for RawDeviceAddress
impl StructuralPartialEq for RawDeviceAddress
Auto Trait Implementations§
impl Freeze for RawDeviceAddress
impl RefUnwindSafe for RawDeviceAddress
impl Send for RawDeviceAddress
impl Sync for RawDeviceAddress
impl Unpin for RawDeviceAddress
impl UnsafeUnpin for RawDeviceAddress
impl UnwindSafe for RawDeviceAddress
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.