Expand description
Implementation of the pinging mechanism used by the heartbeat and manual pings.
Structs§
- Ping
Config - Configuration for the
Pinger
mechanism - Ping
Query Replier - 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§
- Ping
ExternalAPI - 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§
- Heartbeat
Send Ping Tx - Heartbeat send ping TX type
- Ping
Query Result - Ping query result type holding data about the ping duration and the string containg an optional version information of the pinged peer, if provided.