pub struct DeviceDiag {Show 15 fields
pub display_name: String,
pub kind: DeviceKind,
pub codename: Option<String>,
pub connection: ConnectionKind,
pub online: bool,
pub battery: Option<BatteryInfo>,
pub capabilities: Option<Capabilities>,
pub dpi: Option<String>,
pub config_key: String,
pub wpid: Option<u16>,
pub model_ids: Option<[u16; 3]>,
pub extended_model_id: Option<u8>,
pub transports: Option<DeviceTransports>,
pub render: RenderState,
pub slot: u8,
}Expand description
One paired device, model-level only.
Fields§
§display_name: StringThe name the GUI shows for this device.
kind: DeviceKindClassified device kind — an identity guess, not a capability claim.
codename: Option<String>Firmware codename (e.g. "MX Master 3S"), when known.
connection: ConnectionKindHow the device reaches the host.
online: boolWhether the device was reachable when the report was generated.
battery: Option<BatteryInfo>Battery snapshot, None when offline or unreported.
capabilities: Option<Capabilities>Measured HID++ capabilities, or None if never probed since the agent started.
dpi: Option<String>Human DPI summary (current + supported range), or None when not queried.
config_key: StringModel identifier (e.g. "2b35a") — a per-model key, not user-identifying.
wpid: Option<u16>Wireless PID from the receiver’s pairing table, when paired via a receiver.
model_ids: Option<[u16; 3]>Per-transport PID array from HID++ DeviceInformation (0x0003).
extended_model_id: Option<u8>Extended-model byte pairing with Self::model_ids to form the
registry modelId.
transports: Option<DeviceTransports>Transports announced by the firmware, when the device was probed.
render: RenderStateWhether a curated render resolved, or the silhouette fallback drew.
slot: u8Receiver slot, or 0xFF for direct connections (rendered as
“direct”).
Trait Implementations§
Source§impl Clone for DeviceDiag
impl Clone for DeviceDiag
Source§fn clone(&self) -> DeviceDiag
fn clone(&self) -> DeviceDiag
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more