logo
pub async fn recv_ping<S>(stream: S) -> Result<S, Error> where
    S: AsyncRead + AsyncWrite + Unpin
Expand description

Waits for a ping and sends a pong.