pub fn register_connection(&mut self, now: Instant<Clock>) {
        self.active = true;
        self.ping_timeout = None;

        // The next ping should be sent out in half the keep-alive interval from now.
        if let Some(interval) = self.keep_alive_interval {
            self.next_ping.replace(now + interval / 2);
        }
    }
/// Called whenever an active connection has been made with a broker.
Called whenever an active connection has been made with a broker.
Called whenever an active connection has been made with a broker .
pub fn register_connection(&mut self, now: Instant<Clock>) {
        self.active = true;
        self.ping_timeout = None;
        // The next ping should be sent out in half the keep-alive interval from now.
        if let Some(interval) = self.keep_alive_interval {
            self.next_ping.replace(now + interval / 2);
        }
    }
pub fn register_connection ( & mut self , now : Instant < Clock > ) { self . active = true ; self . ping_timeout = None ; // The next ping should be sent out in half the keep-alive interval from now. if let Some ( interval ) = self . keep_alive_interval { self . next_ping . replace ( now + interval / 2 ) ; } }
Called whenever an active connection has been made with a broker.
Called whenever an active connection has been made with a broker .
&mut self
now
Instant<Clock>