hopr_transport_network

Module ping

Source
Expand description

Implementation of the pinging mechanism used by the heartbeat and manual pings.

Structs§

PingConfig
Configuration for the Pinger mechanism
PingQueryReplier
Helper object allowing to send a ping query as a wrapped channel combination that can be filled up on the transport part and awaited locally by the Pinger.
Pinger
Implementation of the ping mechanism

Traits§

PingExternalAPI
External behavior that will be triggered once a ping operation result is available per each pinged peer.
Pinging
Trait for the ping operation itself.

Functions§

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

Type Aliases§

HeartbeatSendPingTx
Heartbeat send ping TX type
PingQueryResult
Ping query result type holding data about the ping duration and the string containg an optional version information of the pinged peer, if provided.