pub enum HapAdvert {
Regular {
device_id: [u8; 6],
gsn: u16,
paired: bool,
},
EncryptedNotification {
advertising_id: [u8; 6],
payload: Vec<u8>,
},
}Expand description
A parsed HAP advertisement of interest to the controller.
Variants§
Regular
Regular HAP advertisement (type 0x06): carries the device id and GSN.
Fields
EncryptedNotification
Encrypted broadcast notification (type 0x11): an encrypted value change.
Implementations§
Trait Implementations§
impl Eq for HapAdvert
impl StructuralPartialEq for HapAdvert
Auto Trait Implementations§
impl Freeze for HapAdvert
impl RefUnwindSafe for HapAdvert
impl Send for HapAdvert
impl Sync for HapAdvert
impl Unpin for HapAdvert
impl UnsafeUnpin for HapAdvert
impl UnwindSafe for HapAdvert
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