pub fn register_ping_response(&mut self) {
        // Take the current timeout to remove it.
        let timeout = self.ping_timeout.take();

        // If there was no timeout to begin with, log the spurious ping response.
        if timeout.is_none() {
            warn!("Got unexpected ping response");
        }
    }
/// Callback function to register a PingResp packet reception.
Callback function to register a PingResp packet reception.
Callback function to register a PingResp packet reception .
pub fn register_ping_response(&mut self) {
        // Take the current timeout to remove it.
        let timeout = self.ping_timeout.take();
        // If there was no timeout to begin with, log the spurious ping response.
        if timeout.is_none() {
            warn!("Got unexpected ping response");
        }
    }
pub fn register_ping_response ( & mut self ) { // Take the current timeout to remove it. let timeout = self . ping_timeout . take ( ) ; // If there was no timeout to begin with, log the spurious ping response. if timeout . is_none ( ) { warn ! ( " " ) ; } }
Callback function to register a PingResp packet reception.
Callback function to register a PingResp packet reception .
&mut self