From fecde6ced1ee52a9144aa1a0ef455e050f36cabc Mon Sep 17 00:00:00 2001 From: ramfox Date: Mon, 2 Dec 2024 04:28:50 +0000 Subject: [PATCH] deploy: 39dce368b48c73adbba4260315b04ae78fc41e3f --- pr/2965/docs/iroh/metrics/struct.PortmapMetrics.html | 4 ++-- pr/2965/docs/src/iroh_relay/server.rs.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pr/2965/docs/iroh/metrics/struct.PortmapMetrics.html b/pr/2965/docs/iroh/metrics/struct.PortmapMetrics.html index cb19aeba07..df8f91edc2 100644 --- a/pr/2965/docs/iroh/metrics/struct.PortmapMetrics.html +++ b/pr/2965/docs/iroh/metrics/struct.PortmapMetrics.html @@ -1,4 +1,4 @@ -PortmapMetrics in iroh::metrics - Rust

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: 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/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."))),