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.

Register sending a message over a topic.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.