pub struct Metrics {
pub probes_started: Counter,
pub local_port_updates: Counter,
pub mapping_attempts: Counter,
pub mapping_failures: Counter,
pub external_address_updated: Counter,
pub upnp_probes: Counter,
pub upnp_probes_failed: Counter,
pub upnp_available: Counter,
pub upnp_gateway_updated: Counter,
pub pcp_probes: Counter,
pub pcp_available: Counter,
}Expand description
Enum of metrics for the module
Fields§
§probes_started: CounterNumber of probing tasks started.
local_port_updates: CounterNumber of updates to the local port.
mapping_attempts: CounterNumber of mapping tasks started.
mapping_failures: CounterNumber of failed mapping tasks.
external_address_updated: CounterNumber of times the external address obtained via port mapping was updated.
upnp_probes: CounterNumber of UPnP probes executed.
upnp_probes_failed: CounterNumber of failed Upnp probes.
upnp_available: CounterNumber of UPnP probes that found it available.
upnp_gateway_updated: CounterNumber of UPnP probes that resulted in a gateway different to the previous one,
pcp_probes: CounterNumber of PCP probes executed.
pcp_available: CounterNumber of PCP probes that found it available.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metrics
impl<'de> Deserialize<'de> for Metrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Iterable for Metrics
impl Iterable for Metrics
Source§fn metric_field_count(&self) -> usize
fn metric_field_count(&self) -> usize
Returns the number of metric fields in the struct.
Source§fn metric_field_ref(&self, n: usize) -> Option<MetricItem<'_>>
fn metric_field_ref(&self, n: usize) -> Option<MetricItem<'_>>
Returns the metric field at the given index.
Source§fn family_field_count(&self) -> usize
fn family_field_count(&self) -> usize
Returns the number of
Family fields in the struct.Source§fn family_field_ref(&self, _n: usize) -> Option<FamilyItem<'_>>
fn family_field_ref(&self, _n: usize) -> Option<FamilyItem<'_>>
Returns the
Family field at the given index.Source§impl MetricsGroup for Metrics
impl MetricsGroup for Metrics
Auto Trait Implementations§
impl !Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoIterable for Twhere
T: Iterable,
impl<T> IntoIterable for Twhere
T: Iterable,
Source§fn as_iterable(&self) -> &dyn Iterable
fn as_iterable(&self) -> &dyn Iterable
Returns
self as dyn IterableSource§fn field_iter(&self) -> FieldIter<'_> ⓘ
fn field_iter(&self) -> FieldIter<'_> ⓘ
Returns an iterator over the metric fields of the struct.
Source§fn family_iter(&self) -> FamilyIter<'_> ⓘ
fn family_iter(&self) -> FamilyIter<'_> ⓘ
Returns an iterator over the Family fields of the struct.