Struct iroh_net_report::Metrics
source · pub struct Metrics {
pub stun_packets_dropped: Counter,
pub stun_packets_sent_ipv4: Counter,
pub stun_packets_sent_ipv6: Counter,
pub stun_packets_recv_ipv4: Counter,
pub stun_packets_recv_ipv6: Counter,
pub reports: Counter,
pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
Fields§
§stun_packets_dropped: Counter
§stun_packets_sent_ipv4: Counter
§stun_packets_sent_ipv6: Counter
§stun_packets_recv_ipv4: Counter
§stun_packets_recv_ipv6: Counter
§reports: Counter
§reports_full: Counter
Trait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
§fn with_metric<T, F>(f: F)
fn with_metric<T, F>(f: F)
Access to this metrics group to record a metric.
Only records if this metric is registered in the global registry.
§fn try_get() -> Option<&'static Self>
fn try_get() -> Option<&'static Self>
Attempts to get the current metric from the global registry.
Auto Trait Implementations§
impl Freeze for Metrics
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