Struct PortmapMetrics
pub struct PortmapMetrics {
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: Counter
Number of probing tasks started.
local_port_updates: Counter
Number of updates to the local port.
mapping_attempts: Counter
Number of mapping tasks started.
mapping_failures: Counter
Number of failed mapping tasks.
external_address_updated: Counter
Number of times the external address obtained via port mapping was updated.
upnp_probes: Counter
Number of UPnP probes executed.
upnp_probes_failed: Counter
Number of failed Upnp probes.
upnp_available: Counter
Number of UPnP probes that found it available.
upnp_gateway_updated: Counter
Number of UPnP probes that resulted in a gateway different to the previous one,
pcp_probes: Counter
Number of PCP probes executed.
pcp_available: Counter
Number of PCP probes that found it available.
Trait Implementations§
§impl<'de> Deserialize<'de> for Metrics
impl<'de> Deserialize<'de> for Metrics
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Metrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Metrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Metrics
impl Serialize for Metrics
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
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<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> IntoIterable for Twhere
T: Iterable,
impl<T> IntoIterable for Twhere
T: Iterable,
§fn as_iterable(&self) -> &dyn Iterable
fn as_iterable(&self) -> &dyn Iterable
Returns
self
as dyn Iterable
§fn field_iter(&self) -> FieldIter<'_>
fn field_iter(&self) -> FieldIter<'_>
Returns an iterator over the fields of the struct.