Struct iroh::metrics::PortmapMetrics
source · pub struct PortmapMetrics {
+PortmapMetrics in iroh::metrics - Rust Struct iroh::metrics::PortmapMetrics
pub struct PortmapMetrics {
pub probes_started: Counter,
pub local_port_updates: Counter,
pub mapping_attempts: Counter,
@@ -11,7 +11,7 @@
pub pcp_probes: Counter,
pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
§impl Metric for Metrics
§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>
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
diff --git a/pr/2965/docs/src/iroh_relay/server.rs.html b/pr/2965/docs/src/iroh_relay/server.rs.html
index cb4b171a58..73f03bb98e 100644
--- a/pr/2965/docs/src/iroh_relay/server.rs.html
+++ b/pr/2965/docs/src/iroh_relay/server.rs.html
@@ -1593,7 +1593,7 @@
};
let res = tokio::select! {
biased;
- ret = tasks.join_next(), if tasks.len() > 0 => ret.expect("checked"),
+ ret = tasks.join_next(), if !tasks.is_empty() => ret.expect("checked"),
ret = &mut quic_fut, if quic_enabled => ret.map(anyhow::Ok),
ret = &mut relay_fut, if relay_enabled => ret.map(anyhow::Ok),
else => Ok(Err(anyhow!("No relay services are enabled."))),