Struct libp2p_metrics::Metrics
source · pub struct Metrics { /* private fields */ }
Expand description
Set of Swarm and protocol metrics derived from emitted events.
Implementations§
Trait Implementations§
source§impl Recorder<GossipsubEvent> for Metrics
Available on crate feature gossipsub
and non-target_os="unknown"
only.
impl Recorder<GossipsubEvent> for Metrics
Available on crate feature
gossipsub
and non-target_os="unknown"
only.source§fn record(&self, event: &GossipsubEvent)
fn record(&self, event: &GossipsubEvent)
Record the given event.
source§impl Recorder<KademliaEvent> for Metrics
Available on crate feature kad
only.
impl Recorder<KademliaEvent> for Metrics
Available on crate feature
kad
only.source§fn record(&self, event: &KademliaEvent)
fn record(&self, event: &KademliaEvent)
Record the given event.
source§impl<TBvEv, THandleErr> Recorder<SwarmEvent<TBvEv, THandleErr>> for Metrics
impl<TBvEv, THandleErr> Recorder<SwarmEvent<TBvEv, THandleErr>> for Metrics
source§fn record(&self, event: &SwarmEvent<TBvEv, THandleErr>)
fn record(&self, event: &SwarmEvent<TBvEv, THandleErr>)
Record the given event.