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<TBvEv> Recorder<SwarmEvent<TBvEv>> for Metrics
impl<TBvEv> Recorder<SwarmEvent<TBvEv>> for Metrics
source§fn record(&self, event: &SwarmEvent<TBvEv>)
fn record(&self, event: &SwarmEvent<TBvEv>)
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