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