pub struct PairedDevice {
pub slot: u8,
pub codename: Option<String>,
pub wpid: Option<u16>,
pub kind: DeviceKind,
pub online: bool,
pub battery: Option<BatteryInfo>,
pub model_info: Option<DeviceModelInfo>,
pub capabilities: Option<Capabilities>,
}Fields§
§slot: u8Receiver-assigned slot (1..=6 for Bolt).
codename: Option<String>§wpid: Option<u16>Wireless product ID. None for offline / unreachable devices on hidpp 0.2.
kind: DeviceKind§online: bool§battery: Option<BatteryInfo>§model_info: Option<DeviceModelInfo>Output of HID++ feature 0x0003 — populated for online devices that expose the feature. Drives asset-registry lookups in the GUI.
capabilities: Option<Capabilities>Configuration capabilities derived from the device’s HID++ feature
table. None for devices we couldn’t probe (offline / unreachable);
the GUI then falls back to Capabilities::presumed_from_kind.
Trait Implementations§
Source§impl Clone for PairedDevice
impl Clone for PairedDevice
Source§fn clone(&self) -> PairedDevice
fn clone(&self) -> PairedDevice
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 PairedDevice
impl Debug for PairedDevice
Source§impl<'de> Deserialize<'de> for PairedDevice
impl<'de> Deserialize<'de> for PairedDevice
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
Auto Trait Implementations§
impl Freeze for PairedDevice
impl RefUnwindSafe for PairedDevice
impl Send for PairedDevice
impl Sync for PairedDevice
impl Unpin for PairedDevice
impl UnsafeUnpin for PairedDevice
impl UnwindSafe for PairedDevice
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