#[non_exhaustive]pub struct DeviceConnection {
pub index: u8,
pub kind: DeviceKind,
pub encrypted: bool,
pub online: bool,
pub wpid: u16,
}Expand description
Represents a device connected to a Bolt receiver.
This information is emitted by the Event::DeviceConnection event and can
be conveniently collected using Receiver::collect_paired_devices.
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.index: u8§kind: DeviceKind§encrypted: bool§online: bool§wpid: u16Trait Implementations§
Source§impl Clone for DeviceConnection
impl Clone for DeviceConnection
Source§fn clone(&self) -> DeviceConnection
fn clone(&self) -> DeviceConnection
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 DeviceConnection
Source§impl Debug for DeviceConnection
impl Debug for DeviceConnection
impl Eq for DeviceConnection
Source§impl Hash for DeviceConnection
impl Hash for DeviceConnection
Source§impl PartialEq for DeviceConnection
impl PartialEq for DeviceConnection
Source§fn eq(&self, other: &DeviceConnection) -> bool
fn eq(&self, other: &DeviceConnection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceConnection
Auto Trait Implementations§
impl Freeze for DeviceConnection
impl RefUnwindSafe for DeviceConnection
impl Send for DeviceConnection
impl Sync for DeviceConnection
impl Unpin for DeviceConnection
impl UnsafeUnpin for DeviceConnection
impl UnwindSafe for DeviceConnection
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