Struct iroh_net::metrics::PortmapMetrics
source · pub struct PortmapMetrics {
+PortmapMetrics in iroh_net::metrics - Rust Struct iroh_net::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/iroh_relay/quic/index.html b/pr/2965/docs/iroh_relay/quic/index.html
index 2b7e850fd0..ce3099fbb1 100644
--- a/pr/2965/docs/iroh_relay/quic/index.html
+++ b/pr/2965/docs/iroh_relay/quic/index.html
@@ -1,3 +1,3 @@
-iroh_relay::quic - Rust Module iroh_relay::quic
source · Expand description
Create a QUIC server that accepts connections
+
iroh_relay::quic - Rust Module iroh_relay::quic
source · Expand description
Create a QUIC server that accepts connections
for QUIC address discovery.
Structs§
- Handles the client side of QUIC address discovery.
Constants§
- ALPN for our quic addr discovery
- Endpoint close error code
- Endpoint close reason
\ No newline at end of file
diff --git a/pr/2965/docs/src/iroh_relay/quic.rs.html b/pr/2965/docs/src/iroh_relay/quic.rs.html
index 968c020bcb..e3b53e02ff 100644
--- a/pr/2965/docs/src/iroh_relay/quic.rs.html
+++ b/pr/2965/docs/src/iroh_relay/quic.rs.html
@@ -295,6 +295,8 @@
295
296
297
+298
+299
//! Create a QUIC server that accepts connections
//! for QUIC address discovery.
use std::{net::SocketAddr, sync::Arc};
@@ -544,8 +546,10 @@
mod tests {
use std::{net::Ipv4Addr, sync::Arc};
- use super::server::{QuicConfig, QuicServer};
- use super::*;
+ use super::{
+ server::{QuicConfig, QuicServer},
+ *,
+ };
/// Generates a [`quinn::ClientConfig`] that has quic address discovery enabled.
fn generate_quic_addr_disc_client_config(