#[non_exhaustive]pub struct DeviceTransport {
pub usb: bool,
pub e_quad: bool,
pub btle: bool,
pub bluetooth: bool,
}Expand description
Represents the bitfield stating which transport protocols a device supports.
One given device can only support up to three transport protocols at a time.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.usb: boolWhether the device supports USB.
e_quad: boolWhether the device supports eQuad, the protocol used by the Unifying Receiver.
btle: boolWhether the device supports Bluetooth Low Energy as used by the Bolt Receiver.
bluetooth: boolWhether the device supports Bluetooth.
Trait Implementations§
Source§impl Clone for DeviceTransport
impl Clone for DeviceTransport
Source§fn clone(&self) -> DeviceTransport
fn clone(&self) -> DeviceTransport
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 moreimpl Copy for DeviceTransport
Source§impl Debug for DeviceTransport
impl Debug for DeviceTransport
impl Eq for DeviceTransport
Source§impl From<u8> for DeviceTransport
impl From<u8> for DeviceTransport
Source§impl Hash for DeviceTransport
impl Hash for DeviceTransport
Source§impl PartialEq for DeviceTransport
impl PartialEq for DeviceTransport
Source§fn eq(&self, other: &DeviceTransport) -> bool
fn eq(&self, other: &DeviceTransport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceTransport
Auto Trait Implementations§
impl Freeze for DeviceTransport
impl RefUnwindSafe for DeviceTransport
impl Send for DeviceTransport
impl Sync for DeviceTransport
impl Unpin for DeviceTransport
impl UnsafeUnpin for DeviceTransport
impl UnwindSafe for DeviceTransport
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