Trait rubble::beacon::ScanCallback[][src]

pub trait ScanCallback {
    fn beacon<'a, I>(&mut self, adv_addr: DeviceAddress, adv_data: I)
    where
        I: Iterator<Item = AdStructure<'a>>
; }
Expand description

Callback for the BeaconScanner.

Required methods

Called when a beacon is received and has passed the configured device address filter.

Parameters

  • adv_addr: Address of the device sending the beacon.
  • adv_data: Advertising data structures attached to the beacon.

Implementors