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<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.
Auto Trait Implementations§
impl !RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl !UnwindSafe for Metrics
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more