[][src]Function libp2p::ping::protocol::send_ping

pub async fn send_ping<S>(__arg0: S) -> Result<(S, Duration), Error> where
    S: AsyncRead + AsyncWrite + Unpin

Sends a ping and waits for the pong.