pub struct Metrics { /* private fields */ }
Available on crate feature
metrics
only.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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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