diff --git a/pr/2965/docs/iroh_net/metrics/struct.PortmapMetrics.html b/pr/2965/docs/iroh_net/metrics/struct.PortmapMetrics.html index 3cd49eb51a..d0417de614 100644 --- a/pr/2965/docs/iroh_net/metrics/struct.PortmapMetrics.html +++ b/pr/2965/docs/iroh_net/metrics/struct.PortmapMetrics.html @@ -1,4 +1,4 @@ -PortmapMetrics in iroh_net::metrics - Rust

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: Counter

Trait Implementations§

source§

impl Clone for Metrics

source§

fn clone(&self) -> Metrics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Metrics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Metrics

source§

fn default() -> Metrics

Returns the “default value” for a type. Read more
source§

impl Iterable for Metrics

source§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a (dyn Any + 'static))>

Returns an iterator over the struct’s fields as tuples. Read more
source§

impl Metric for Metrics

source§

fn name() -> &'static str

The name of this metric group.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

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: Counter

Trait Implementations§

§

impl Clone for Metrics

§

fn clone(&self) -> Metrics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Metrics

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Metrics

§

fn default() -> Metrics

Returns the “default value” for a type. Read more
§

impl Iterable for Metrics

§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a (dyn Any + 'static))>

Returns an iterator over the struct’s fields as tuples. Read more
§

impl Metric for Metrics

§

fn name() -> &'static str

The name of this metric group.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

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§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where 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§

\ 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(