pub struct DiscoveredBleAccessory {
pub peripheral_id: String,
pub device_id: String,
pub category: u16,
pub global_state_number: u16,
pub config_number: u8,
pub paired: bool,
}Expand description
A HAP accessory found while scanning over BLE.
Fields§
§peripheral_id: StringThe BLE peripheral identifier (platform-specific address/UUID string) used to reconnect to this device.
device_id: StringThe HAP device id (6-byte address, lowercase colon-separated hex).
category: u16The accessory category identifier (ACID).
global_state_number: u16The HAP global state number (GSN) from the advertisement.
config_number: u8The configuration number (c#); a change means the DB changed.
paired: boolWhether the accessory advertises as already paired.
Trait Implementations§
Source§impl Clone for DiscoveredBleAccessory
impl Clone for DiscoveredBleAccessory
Source§fn clone(&self) -> DiscoveredBleAccessory
fn clone(&self) -> DiscoveredBleAccessory
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 DiscoveredBleAccessory
impl Debug for DiscoveredBleAccessory
impl Eq for DiscoveredBleAccessory
Source§impl PartialEq for DiscoveredBleAccessory
impl PartialEq for DiscoveredBleAccessory
Source§fn eq(&self, other: &DiscoveredBleAccessory) -> bool
fn eq(&self, other: &DiscoveredBleAccessory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiscoveredBleAccessory
Auto Trait Implementations§
impl Freeze for DiscoveredBleAccessory
impl RefUnwindSafe for DiscoveredBleAccessory
impl Send for DiscoveredBleAccessory
impl Sync for DiscoveredBleAccessory
impl Unpin for DiscoveredBleAccessory
impl UnsafeUnpin for DiscoveredBleAccessory
impl UnwindSafe for DiscoveredBleAccessory
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