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>,
}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.
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
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