// returns true if there has been a response, false otherwise.
returns true if there has been a response, false otherwise.
returns true if there has been a response false otherwise .
async fn ping(&mut self, url: &str) -> bool {
        match self.request_tx.unbounded_send(url.to_string()) {
            Ok(()) => {}
            Err(e) => panic!("failed to send request to ping URL={}: {}", url, e),
        }
        if let Some(rtn) = self.response_rx.next().await {
            rtn
        } else {
            panic!("ping response channel closed unexpectedly");
        }
    }
async fn ping ( & mut self , url : & str ) -> bool { match self . request_tx . unbounded_send ( url . to_string ( ) ) { Ok ( ( ) ) => { } Err ( e ) => panic ! ( " " url e ) , } if let Some ( rtn ) = self . response_rx . next ( ) . await { rtn } else { panic ! ( " " ) ; } }
returns true if there has been a response, false otherwise.
returns true if there has been a response false otherwise .
&mut self
url
&str