hopr_transport_network::ping

Function to_active_ping

Source
pub fn to_active_ping(
    peer: PeerId,
    sender: HeartbeatSendPingTx,
    timeout: Duration,
) -> impl Future<Output = (PeerId, Result<Duration>, String)>
Expand description

Timeout-based future that will resolve to the result of the ping operation.