/// Parse the last complete request.
/// 
/// # Panics
/// If the last request has not been completed yet.
Parse the last complete request.
Parse the last complete request .
fn process_request(
        &mut self, 
        event_loop: &mut EventLoop<Self>) -> SocketEventResult {
        let service_id;
        let session_id;
        if let Some(header) = self.req_parser.header() {
            service_id = header.service;
            session_id = header.session;
        } else {
            panic!("incomplete message")
        }
        match service_id {
            0 => self.process_control_message(event_loop),
            _ => self.process_service_request(service_id, session_id, 
                event_loop)
        }
    }
fn process_request ( & mut self , event_loop : & mut EventLoop < Self > ) -> SocketEventResult { let service_id ; let session_id ; if let Some ( header ) = self . req_parser . header ( ) { service_id = header . service ; session_id = header . session ; } else { panic ! ( " " ) } match service_id { 0 => self . process_control_message ( event_loop ) , _ => self . process_service_request ( service_id , session_id , event_loop ) } }
Parse the last complete request.
Parse the last complete request .
&mut self
event_loop
&mut EventLoop<Self>
panics
If the last request has not been completed yet.
If the last request has not been completed yet .