pub trait Recorder<Event> {
    // Required method
    fn record(&self, event: &Event);
}
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