fn process_scan_report_request(
        &mut self, 
        msg_id: u16, 
        event_loop: &mut EventLoop<Self>) -> SocketEventResult {
        let discovery;
        
        {
            let app_context = self.app_context.lock()
                .unwrap();
            
            discovery = app_context.discovery;
        }
        
        if discovery {
            self.send_scan_report(msg_id, event_loop);
        } else {
            self.send_ack_message(msg_id, ACK_UNSUPPORTED_METHOD, event_loop);
        }
        
        Ok(None)
    }
/// Process scan report request (GET_SCAN_REPORT message) with a given ID.
Process scan report request (GET_SCAN_REPORT message) with a given ID.
Process scan report request ( GET_SCAN_REPORT message ) with a given ID .
fn process_scan_report_request(
        &mut self, 
        msg_id: u16, 
        event_loop: &mut EventLoop<Self>) -> SocketEventResult {
        let discovery;
        {
            let app_context = self.app_context.lock()
                .unwrap();
            discovery = app_context.discovery;
        }
        if discovery {
            self.send_scan_report(msg_id, event_loop);
        } else {
            self.send_ack_message(msg_id, ACK_UNSUPPORTED_METHOD, event_loop);
        }
        Ok(None)
    }
fn process_scan_report_request ( & mut self , msg_id : u16 , event_loop : & mut EventLoop < Self > ) -> SocketEventResult { let discovery ; { let app_context = self . app_context . lock ( ) . unwrap ( ) ; discovery = app_context . discovery ; } if discovery { self . send_scan_report ( msg_id , event_loop ) ; } else { self . send_ack_message ( msg_id , ACK_UNSUPPORTED_METHOD , event_loop ) ; } Ok ( None ) }
Process scan report request (GET_SCAN_REPORT message) with a given ID.
Process scan report request ( GET_SCAN_REPORT message ) with a given ID .
&mut self
msg_id
u16
event_loop
&mut EventLoop<Self>
&mut self
msg_id
u16
event_loop
&mut EventLoop<Self>