pub struct DeviceTransports {
pub usb: bool,
pub equad: bool,
pub btle: bool,
pub bluetooth: bool,
}Expand description
Mirror of hidpp’s DeviceTransport bitfield — one bool per protocol the
device firmware exposes. The shape is dictated by HID++ feature 0x0003;
a state machine doesn’t fit since a single device can announce multiple
transports simultaneously.
Fields§
§usb: bool§equad: bool§btle: bool§bluetooth: boolTrait Implementations§
Source§impl Clone for DeviceTransports
impl Clone for DeviceTransports
Source§fn clone(&self) -> DeviceTransports
fn clone(&self) -> DeviceTransports
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 DeviceTransports
impl Debug for DeviceTransports
Source§impl Default for DeviceTransports
impl Default for DeviceTransports
Source§fn default() -> DeviceTransports
fn default() -> DeviceTransports
Returns the “default value” for a type. Read more
Source§impl Serialize for DeviceTransports
impl Serialize for DeviceTransports
impl Copy for DeviceTransports
Auto Trait Implementations§
impl Freeze for DeviceTransports
impl RefUnwindSafe for DeviceTransports
impl Send for DeviceTransports
impl Sync for DeviceTransports
impl Unpin for DeviceTransports
impl UnsafeUnpin for DeviceTransports
impl UnwindSafe for DeviceTransports
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