libp2p::metrics

Trait Recorder

Source
pub trait Recorder<Event> {
    // Required method
    fn record(&self, event: &Event);
}
Available on crate feature metrics only.
Expand description

Recorder that can record Swarm and protocol events.

Required Methods§

Source

fn record(&self, event: &Event)

Record the given event.

Implementors§

Source§

impl Recorder<Event> for Metrics

Available on crate feature gossipsub only.
Source§

impl Recorder<Event> for Metrics

Available on crate feature identify only.
Source§

impl Recorder<Event> for Metrics

Available on crate feature kad only.
Source§

impl Recorder<Event> for Metrics

Available on crate feature relay only.
Source§

impl Recorder<Event> for Metrics

Available on crate feature dcutr only.
Source§

impl Recorder<Event> for Metrics

Available on crate feature ping only.
Source§

impl<TBvEv> Recorder<SwarmEvent<TBvEv>> for Metrics