pub struct DiscoveredDevice {
pub address: [u8; 6],
pub authentication: u8,
pub kind: BoltDeviceKind,
pub name: String,
}Expand description
A nearby unpaired device surfaced by Bolt discovery.
Fields§
§address: [u8; 6]6-byte BTLE address used to pair.
authentication: u8Authentication-method bitfield (bit 0 = passkey typed on keyboard).
kind: BoltDeviceKind§name: StringImplementations§
Source§impl DiscoveredDevice
impl DiscoveredDevice
Sourcepub fn passkey_on_keyboard(&self) -> bool
pub fn passkey_on_keyboard(&self) -> bool
Whether authentication is by typing a passkey on a keyboard (vs. a pointer click sequence).
Trait Implementations§
Source§impl Clone for DiscoveredDevice
impl Clone for DiscoveredDevice
Source§fn clone(&self) -> DiscoveredDevice
fn clone(&self) -> DiscoveredDevice
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 moreAuto Trait Implementations§
impl Freeze for DiscoveredDevice
impl RefUnwindSafe for DiscoveredDevice
impl Send for DiscoveredDevice
impl Sync for DiscoveredDevice
impl Unpin for DiscoveredDevice
impl UnsafeUnpin for DiscoveredDevice
impl UnwindSafe for DiscoveredDevice
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