/// Send scan report message for a given request ID.
Send scan report message for a given request ID.
Send scan report message for a given request ID .
fn send_scan_report(
        &mut self, 
        request_id: u16, 
        event_loop: &mut EventLoop<Self>) {
        let scan_report;
        {
            let app_context = self.app_context.lock()
                .unwrap();
            scan_report = ScanReportMessage::new(
                request_id, 
                app_context.scan_report.clone(), 
                app_context.config.service_table()
                    .clone());
        }
        let control_msg = control::create_scan_report_message(self.msg_id,
            scan_report);
        self.msg_id += 1;
        log_debug!(self.logger, "sending a SCAN_REPORT message...");
        self.send_control_message(control_msg, event_loop);
    }
fn send_scan_report ( & mut self , request_id : u16 , event_loop : & mut EventLoop < Self > ) { let scan_report ; { let app_context = self . app_context . lock ( ) . unwrap ( ) ; scan_report = ScanReportMessage :: new ( request_id , app_context . scan_report . clone ( ) , app_context . config . service_table ( ) . clone ( ) ) ; } let control_msg = control :: create_scan_report_message ( self . msg_id , scan_report ) ; self . msg_id += 1 ; log_debug ! ( self logger " " ) ; self . send_control_message ( control_msg , event_loop ) ; }
Send scan report message for a given request ID.
Send scan report message for a given request ID .
&mut self
request_id
u16
event_loop
&mut EventLoop<Self>