pub struct ReceiverInfo {
pub name: String,
pub vendor_id: u16,
pub product_id: u16,
pub unique_id: Option<String>,
}Expand description
Identity of an enumerated receiver — no paired-device state (that lives
in DeviceInventory::paired). For a direct (Bluetooth/wired) device,
a synthetic entry mirroring the device’s own HID identity fills this role.
Fields§
§name: StringProduct string from the HID enumeration (e.g. "Logi Bolt Receiver").
vendor_id: u16USB vendor ID (0x046d for Logitech).
product_id: u16USB product ID distinguishing the receiver model.
unique_id: Option<String>Platform-reported serial, when one is exposed. Deliberately excluded
from diagnostics (see crate::diagnostics::ReceiverDiag).
Trait Implementations§
Source§impl Clone for ReceiverInfo
impl Clone for ReceiverInfo
Source§fn clone(&self) -> ReceiverInfo
fn clone(&self) -> ReceiverInfo
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 ReceiverInfo
impl Debug for ReceiverInfo
Source§impl<'de> Deserialize<'de> for ReceiverInfo
impl<'de> Deserialize<'de> for ReceiverInfo
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 ReceiverInfo
Source§impl PartialEq for ReceiverInfo
impl PartialEq for ReceiverInfo
Source§impl Serialize for ReceiverInfo
impl Serialize for ReceiverInfo
impl StructuralPartialEq for ReceiverInfo
Auto Trait Implementations§
impl Freeze for ReceiverInfo
impl RefUnwindSafe for ReceiverInfo
impl Send for ReceiverInfo
impl Sync for ReceiverInfo
impl Unpin for ReceiverInfo
impl UnsafeUnpin for ReceiverInfo
impl UnwindSafe for ReceiverInfo
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.