Struct libp2p_gossipsub::metrics::Metrics [−][src]
pub struct Metrics { /* fields omitted */ }
Expand description
A collection of metrics used throughout the Gossipsub behaviour.
Implementations
Register how many peers do we known are subscribed to this topic.
Registers the subscription to a topic if the configured limits allow it. Sets the registered number of peers in the mesh to 0.
Registers the unsubscription to a topic if the topic was previously allowed. Sets the registered number of peers in the mesh to 0.
Register the inclusion of peers in our mesh due to some reason.
Register the removal of peers in our mesh due to some reason.
Register the current number of peers in our mesh for this topic.