Skip to main content

Module measure

Module measure 

Source
Expand description

This module implemented the Measure trait for swarm.

Structs§

PeriodicMeasure
PeriodicMeasure is used to assess the reliability of peers by counting their behaviour. It currently count the number of sent and received messages in a given period (1 hour). The method Measure::incr should be called in the proper places.

Type Aliases§

MeasureStorage
MeasureStorage is the type accepted by PeriodicMeasure::new. It’s used to store counts in a storage media provided by user.