Module hotshot::traits::networking::combined_network
source · Expand description
Networking Implementation that has a primary and a fallback network. If the primary Errors we will use the backup to send or receive
Structs§
- A communication channel with 2 networks, where we can fall back to the slower network if the primary fails
- Wrapper for the tuple of
PushCdnNetwork
andLibp2pNetwork
We need this so we can implTestableNetworkingImplementation
on the tuple
Functions§
- Helper function to calculate a hash of a type that implements Hash
Type Aliases§
- Thread-safe ref counted lock to a map of channels to the delayed tasks