pub async fn scan<'a, F, R>( _sd: &Softdevice, config: &ScanConfig<'a>, f: F, ) -> Result<R, ScanError>where F: for<'b> FnMut(&'b ble_gap_evt_adv_report_t) -> Option<R>,