fn on_ping_timeout(&mut self) {
        let ping_id = generate_random_id();
        debug!("enqueueing keepalive ping {}", ping_id);
        drop(
            self.enqueue_body(
                tl::functions::PingDelayDisconnect {
                    ping_id,
                    disconnect_delay: NO_PING_DISCONNECT,
                }
                .to_bytes(),
            ),
        );
        self.next_ping = Instant::now() + PING_DELAY;
    }
/// Handle a ping timeout, meaning we need to enqueue a new ping request.
Handle a ping timeout, meaning we need to enqueue a new ping request.
Handle a ping timeout meaning we need to enqueue a new ping request .
fn on_ping_timeout(&mut self) {
        let ping_id = generate_random_id();
        debug!("enqueueing keepalive ping {}", ping_id);
        drop(
            self.enqueue_body(
                tl::functions::PingDelayDisconnect {
                    ping_id,
                    disconnect_delay: NO_PING_DISCONNECT,
                }
                .to_bytes(),
            ),
        );
        self.next_ping = Instant::now() + PING_DELAY;
    }
fn on_ping_timeout ( & mut self ) { let ping_id = generate_random_id ( ) ; debug ! ( " " ping_id ) ; drop ( self . enqueue_body ( tl :: functions :: PingDelayDisconnect { ping_id , disconnect_delay : NO_PING_DISCONNECT , } . to_bytes ( ) , ) , ) ; self . next_ping = Instant :: now ( ) + PING_DELAY ; }
Handle a ping timeout, meaning we need to enqueue a new ping request.
Handle a ping timeout meaning we need to enqueue a new ping request .
&mut self
&mut self