/// Notifies all the searches for service class `id` with the published
/// services in `services`.
/// The relevant services of a peer are provided in `services`.
/// If the ServiceFound response was successful, relays the data to the PeerObserver.
Notifies all the searches for service class `id` with the published
services in `services`.
The relevant services of a peer are provided in `services`.
If the ServiceFound response was successful, relays the data to the PeerObserver.
Notifies all the searches for service class ` id ` with the published services in ` services ` . The relevant services of a peer are provided in ` services ` . If the ServiceFound response was successful relays the data to the PeerObserver .
pub fn notify_searches(
        &mut self,
        id: &bredr::ServiceClassProfileIdentifier,
        services: Vec<ServiceRecord>,
    ) {
        let proxy = self.observer.clone();
        let mut w_search_mgr = self.search_mgr.write();
        for service in &services {
            let notifs = w_search_mgr.notify_searches(id, service.clone());
            // Relay the number of searches notified to the observer.
            if let Some(proxy) = proxy.as_ref() {
                for _ in 0..notifs {
                    Self::relay_service_found(proxy, service.clone());
                }
            }
        }
    }
pub fn notify_searches ( & mut self , id : & bredr :: ServiceClassProfileIdentifier , services : Vec < ServiceRecord > , ) { let proxy = self . observer . clone ( ) ; let mut w_search_mgr = self . search_mgr . write ( ) ; for service in & services { let notifs = w_search_mgr . notify_searches ( id , service . clone ( ) ) ; // Relay the number of searches notified to the observer. if let Some ( proxy ) = proxy . as_ref ( ) { for _ in 0 .. notifs { Self :: relay_service_found ( proxy , service . clone ( ) ) ; } } } }
Notifies all the searches for service class `id` with the published
services in `services`.
Notifies all the searches for service class ` id ` with the published services in ` services ` .
&mut self
id
&bredr::ServiceClassProfileIdentifier
services
Vec<ServiceRecord>