Function libp2p_ping::protocol::recv_ping
source · [−]pub async fn recv_ping<S>(stream: S) -> Result<S> where
S: AsyncRead + AsyncWrite + Unpin,
Expand description
Waits for a ping and sends a pong.
pub async fn recv_ping<S>(stream: S) -> Result<S> where
S: AsyncRead + AsyncWrite + Unpin,
Waits for a ping and sends a pong.