Module sim

Module sim 

Source
Available on crate features test-utils only.
Expand description

Simulation framework for testing the protocol implementation

Structs§

Network
Test network implementation.
NetworkConfig
Configuration for a Network.
NetworkHistograms
Histograms on the distribution of peers in the network.
NetworkReport
A report on the state of a Network.
RoundStats
Statistics for a gossip round.
RoundStatsAvg
Summary values for a list of RoundStats.
RoundStatsAvgDiff
Difference, in factors, between two RoundStatsAvg
RoundStatsDiff
Difference (as factors) between two RoundStats.
Simulator
A simulator for the gossip protocol
SimulatorConfig
Configuration for the Simulator.

Enums§

BootstrapMode
Variants how to bootstrap the swarm.
LatencyConfig
Configures the latency between peers.