diff --git a/pr/2846/docs/iroh_dns_server/metrics/struct.Metrics.html b/pr/2846/docs/iroh_dns_server/metrics/struct.Metrics.html index 9e1dcc17e0..7b534abff2 100644 --- a/pr/2846/docs/iroh_dns_server/metrics/struct.Metrics.html +++ b/pr/2846/docs/iroh_dns_server/metrics/struct.Metrics.html @@ -1,23 +1,23 @@ Metrics in iroh_dns_server::metrics - Rust

Struct iroh_dns_server::metrics::Metrics

source ·
pub struct Metrics {
Show 15 fields - pub pkarr_publish_update: Counter, - pub pkarr_publish_noop: Counter, - pub dns_requests: Counter, - pub dns_requests_udp: Counter, - pub dns_requests_https: Counter, - pub dns_lookup_success: Counter, - pub dns_lookup_notfound: Counter, - pub dns_lookup_error: Counter, - pub http_requests: Counter, - pub http_requests_success: Counter, - pub http_requests_error: Counter, - pub http_requests_duration_ms: Counter, - pub store_packets_inserted: Counter, - pub store_packets_removed: Counter, - pub store_packets_updated: Counter, + pub pkarr_publish_update: Counter, + pub pkarr_publish_noop: Counter, + pub dns_requests: Counter, + pub dns_requests_udp: Counter, + pub dns_requests_https: Counter, + pub dns_lookup_success: Counter, + pub dns_lookup_notfound: Counter, + pub dns_lookup_error: Counter, + pub http_requests: Counter, + pub http_requests_success: Counter, + pub http_requests_error: Counter, + pub http_requests_duration_ms: Counter, + pub store_packets_inserted: Counter, + pub store_packets_removed: Counter, + pub store_packets_updated: Counter,
}
Expand description

Metrics for iroh-dns-server

-

Fields§

§pkarr_publish_update: Counter§pkarr_publish_noop: Counter§dns_requests: Counter§dns_requests_udp: Counter§dns_requests_https: Counter§dns_lookup_success: Counter§dns_lookup_notfound: Counter§dns_lookup_error: Counter§http_requests: Counter§http_requests_success: Counter§http_requests_error: Counter§http_requests_duration_ms: Counter§store_packets_inserted: Counter§store_packets_removed: Counter§store_packets_updated: 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

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

impl Default for Metrics

source§

fn default() -> Self

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)>

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.
source§

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

Initializes this metric group.
source§

fn with_metric<T, F>(f: F)
where +

Fields§

§pkarr_publish_update: Counter§pkarr_publish_noop: Counter§dns_requests: Counter§dns_requests_udp: Counter§dns_requests_https: Counter§dns_lookup_success: Counter§dns_lookup_notfound: Counter§dns_lookup_error: Counter§http_requests: Counter§http_requests_success: Counter§http_requests_error: Counter§http_requests_duration_ms: Counter§store_packets_inserted: Counter§store_packets_removed: Counter§store_packets_updated: 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

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

impl Default for Metrics

source§

fn default() -> Self

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)>

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 F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

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 +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 T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/2846/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2846/docs/iroh_net/metrics/struct.MagicsockMetrics.html index f3411929c6..595fe1a407 100644 --- a/pr/2846/docs/iroh_net/metrics/struct.MagicsockMetrics.html +++ b/pr/2846/docs/iroh_net/metrics/struct.MagicsockMetrics.html @@ -1,55 +1,55 @@ MagicsockMetrics in iroh_net::metrics - Rust

Struct iroh_net::metrics::MagicsockMetrics

source ·
pub struct MagicsockMetrics {
Show 41 fields - pub re_stun_calls: Counter, - pub update_direct_addrs: Counter, - pub send_ipv4: Counter, - pub send_ipv6: Counter, - pub send_relay: Counter, - pub send_relay_error: Counter, - pub send_data: Counter, - pub send_data_network_down: Counter, - pub recv_data_relay: Counter, - pub recv_data_ipv4: Counter, - pub recv_data_ipv6: Counter, - pub recv_datagrams: Counter, - pub recv_gro_datagrams: Counter, - pub send_disco_udp: Counter, - pub send_disco_relay: Counter, - pub sent_disco_udp: Counter, - pub sent_disco_relay: Counter, - pub sent_disco_ping: Counter, - pub sent_disco_pong: Counter, - pub sent_disco_call_me_maybe: Counter, - pub recv_disco_bad_key: Counter, - pub recv_disco_bad_parse: Counter, - pub recv_disco_udp: Counter, - pub recv_disco_relay: Counter, - pub recv_disco_ping: Counter, - pub recv_disco_pong: Counter, - pub recv_disco_call_me_maybe: Counter, - pub recv_disco_call_me_maybe_bad_disco: Counter, - pub relay_home_change: Counter, - pub num_direct_conns_added: Counter, - pub num_direct_conns_removed: Counter, - pub num_relay_conns_added: Counter, - pub num_relay_conns_removed: Counter, - pub actor_tick_main: Counter, - pub actor_tick_msg: Counter, - pub actor_tick_re_stun: Counter, - pub actor_tick_portmap_changed: Counter, - pub actor_tick_direct_addr_heartbeat: Counter, - pub actor_tick_direct_addr_update_receiver: Counter, - pub actor_link_change: Counter, - pub actor_tick_other: Counter, + pub re_stun_calls: Counter, + pub update_direct_addrs: Counter, + pub send_ipv4: Counter, + pub send_ipv6: Counter, + pub send_relay: Counter, + pub send_relay_error: Counter, + pub send_data: Counter, + pub send_data_network_down: Counter, + pub recv_data_relay: Counter, + pub recv_data_ipv4: Counter, + pub recv_data_ipv6: Counter, + pub recv_datagrams: Counter, + pub recv_gro_datagrams: Counter, + pub send_disco_udp: Counter, + pub send_disco_relay: Counter, + pub sent_disco_udp: Counter, + pub sent_disco_relay: Counter, + pub sent_disco_ping: Counter, + pub sent_disco_pong: Counter, + pub sent_disco_call_me_maybe: Counter, + pub recv_disco_bad_key: Counter, + pub recv_disco_bad_parse: Counter, + pub recv_disco_udp: Counter, + pub recv_disco_relay: Counter, + pub recv_disco_ping: Counter, + pub recv_disco_pong: Counter, + pub recv_disco_call_me_maybe: Counter, + pub recv_disco_call_me_maybe_bad_disco: Counter, + pub relay_home_change: Counter, + pub num_direct_conns_added: Counter, + pub num_direct_conns_removed: Counter, + pub num_relay_conns_added: Counter, + pub num_relay_conns_removed: Counter, + pub actor_tick_main: Counter, + pub actor_tick_msg: Counter, + pub actor_tick_re_stun: Counter, + pub actor_tick_portmap_changed: Counter, + pub actor_tick_direct_addr_heartbeat: Counter, + pub actor_tick_direct_addr_update_receiver: Counter, + pub actor_link_change: Counter, + pub actor_tick_other: Counter,
}
Expand description

Enum of metrics for the module

-

Fields§

§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: Counter

Number of QUIC datagrams received.

-
§recv_gro_datagrams: Counter

Number of datagrams received using GRO

-
§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: Counter

The number of direct connections we have made to peers.

-
§num_direct_conns_removed: Counter

The number of direct connections we have lost to peers.

-
§num_relay_conns_added: Counter

The number of connections to peers we have added over relay.

-
§num_relay_conns_removed: Counter

The number of connections to peers we have removed over relay.

-
§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: 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

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

impl Default for Metrics

source§

fn default() -> Self

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)>

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.
source§

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

Initializes this metric group.
source§

fn with_metric<T, F>(f: F)
where +

Fields§

§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: Counter

Number of QUIC datagrams received.

+
§recv_gro_datagrams: Counter

Number of datagrams received using GRO

+
§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: Counter

The number of direct connections we have made to peers.

+
§num_direct_conns_removed: Counter

The number of direct connections we have lost to peers.

+
§num_relay_conns_added: Counter

The number of connections to peers we have added over relay.

+
§num_relay_conns_removed: Counter

The number of connections to peers we have removed over relay.

+
§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: 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

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

impl Default for Metrics

source§

fn default() -> Self

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)>

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 F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

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 +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 T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/2846/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2846/docs/iroh_net/netcheck/struct.Metrics.html index 8d50a91bde..2495feb6a7 100644 --- a/pr/2846/docs/iroh_net/netcheck/struct.Metrics.html +++ b/pr/2846/docs/iroh_net/netcheck/struct.Metrics.html @@ -1,15 +1,15 @@ Metrics in iroh_net::netcheck - Rust

Struct iroh_net::netcheck::Metrics

source ·
pub struct Metrics {
-    pub stun_packets_dropped: Counter,
-    pub stun_packets_sent_ipv4: Counter,
-    pub stun_packets_sent_ipv6: Counter,
-    pub stun_packets_recv_ipv4: Counter,
-    pub stun_packets_recv_ipv6: Counter,
-    pub reports: Counter,
-    pub reports_full: Counter,
+    pub stun_packets_dropped: Counter,
+    pub stun_packets_sent_ipv4: Counter,
+    pub stun_packets_sent_ipv6: Counter,
+    pub stun_packets_recv_ipv4: Counter,
+    pub stun_packets_recv_ipv6: Counter,
+    pub reports: Counter,
+    pub reports_full: Counter,
 }
Expand description

Enum of metrics for the module

-

Fields§

§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: 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

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

impl Default for Metrics

source§

fn default() -> Self

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)>

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.
source§

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

Initializes this metric group.
source§

fn with_metric<T, F>(f: F)
where +

Fields§

§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: 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

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

impl Default for Metrics

source§

fn default() -> Self

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)>

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 F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

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 +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 T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/2846/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2846/docs/iroh_net/portmapper/struct.Metrics.html index 60072de93f..12cfeaa18e 100644 --- a/pr/2846/docs/iroh_net/portmapper/struct.Metrics.html +++ b/pr/2846/docs/iroh_net/portmapper/struct.Metrics.html @@ -1,19 +1,19 @@ Metrics in iroh_net::portmapper - Rust

Struct iroh_net::portmapper::Metrics

source ·
pub struct Metrics {
-    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,
+    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§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

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

impl Default for Metrics

source§

fn default() -> Self

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)>

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.
source§

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

Initializes this metric group.
source§

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§

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

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

impl Default for Metrics

source§

fn default() -> Self

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)>

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 F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

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 +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 T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/2846/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2846/docs/iroh_net/relay/server/struct.Metrics.html index a0f254dfe6..e9aacb5956 100644 --- a/pr/2846/docs/iroh_net/relay/server/struct.Metrics.html +++ b/pr/2846/docs/iroh_net/relay/server/struct.Metrics.html @@ -1,46 +1,46 @@ Metrics in iroh_net::relay::server - Rust

Struct iroh_net::relay::server::Metrics

source ·
pub struct Metrics {
Show 19 fields - pub bytes_sent: Counter, - pub bytes_recv: Counter, - pub send_packets_sent: Counter, - pub send_packets_recv: Counter, - pub send_packets_dropped: Counter, - pub disco_packets_sent: Counter, - pub disco_packets_recv: Counter, - pub disco_packets_dropped: Counter, - pub other_packets_sent: Counter, - pub other_packets_recv: Counter, - pub other_packets_dropped: Counter, - pub got_ping: Counter, - pub sent_pong: Counter, - pub unknown_frames: Counter, - pub accepts: Counter, - pub disconnects: Counter, - pub unique_client_keys: Counter, - pub websocket_accepts: Counter, - pub derp_accepts: Counter, + pub bytes_sent: Counter, + pub bytes_recv: Counter, + pub send_packets_sent: Counter, + pub send_packets_recv: Counter, + pub send_packets_dropped: Counter, + pub disco_packets_sent: Counter, + pub disco_packets_recv: Counter, + pub disco_packets_dropped: Counter, + pub other_packets_sent: Counter, + pub other_packets_recv: Counter, + pub other_packets_dropped: Counter, + pub got_ping: Counter, + pub sent_pong: Counter, + pub unknown_frames: Counter, + pub accepts: Counter, + pub disconnects: Counter, + pub unique_client_keys: Counter, + pub websocket_accepts: Counter, + pub derp_accepts: Counter,
}
Available on crate feature iroh-relay only.
Expand description

Metrics tracked for the relay server

-

Fields§

§bytes_sent: Counter

Bytes sent from a FrameType::SendPacket

-
§bytes_recv: Counter

Bytes received from a FrameType::SendPacket

-
§send_packets_sent: Counter

FrameType::SendPacket sent, that are not disco messages

-
§send_packets_recv: Counter

FrameType::SendPacket received, that are not disco messages

-
§send_packets_dropped: Counter

FrameType::SendPacket dropped, that are not disco messages

-
§disco_packets_sent: Counter

FrameType::SendPacket sent that are disco messages

-
§disco_packets_recv: Counter

FrameType::SendPacket received that are disco messages

-
§disco_packets_dropped: Counter

FrameType::SendPacket dropped that are disco messages

-
§other_packets_sent: Counter

Packets of other FrameTypes sent

-
§other_packets_recv: Counter

Packets of other FrameTypes received

-
§other_packets_dropped: Counter

Packets of other FrameTypes dropped

-
§got_ping: Counter

Number of FrameType::Pings received

-
§sent_pong: Counter

Number of FrameType::Pongs sent

-
§unknown_frames: Counter

Number of FrameType::Unknown received

-
§accepts: Counter

Number of connections we have accepted

-
§disconnects: Counter

Number of connections we have removed because of an error

-
§unique_client_keys: Counter

Number of unique client keys per day

-
§websocket_accepts: Counter

Number of accepted websocket connections

-
§derp_accepts: Counter

Number of accepted ‘iroh derp http’ connection upgrades

-

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

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

impl Default for Metrics

source§

fn default() -> Self

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)>

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.
source§

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

Initializes this metric group.
source§

fn with_metric<T, F>(f: F)
where +

Fields§

§bytes_sent: Counter

Bytes sent from a FrameType::SendPacket

+
§bytes_recv: Counter

Bytes received from a FrameType::SendPacket

+
§send_packets_sent: Counter

FrameType::SendPacket sent, that are not disco messages

+
§send_packets_recv: Counter

FrameType::SendPacket received, that are not disco messages

+
§send_packets_dropped: Counter

FrameType::SendPacket dropped, that are not disco messages

+
§disco_packets_sent: Counter

FrameType::SendPacket sent that are disco messages

+
§disco_packets_recv: Counter

FrameType::SendPacket received that are disco messages

+
§disco_packets_dropped: Counter

FrameType::SendPacket dropped that are disco messages

+
§other_packets_sent: Counter

Packets of other FrameTypes sent

+
§other_packets_recv: Counter

Packets of other FrameTypes received

+
§other_packets_dropped: Counter

Packets of other FrameTypes dropped

+
§got_ping: Counter

Number of FrameType::Pings received

+
§sent_pong: Counter

Number of FrameType::Pongs sent

+
§unknown_frames: Counter

Number of FrameType::Unknown received

+
§accepts: Counter

Number of connections we have accepted

+
§disconnects: Counter

Number of connections we have removed because of an error

+
§unique_client_keys: Counter

Number of unique client keys per day

+
§websocket_accepts: Counter

Number of accepted websocket connections

+
§derp_accepts: Counter

Number of accepted ‘iroh derp http’ connection upgrades

+

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

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

impl Default for Metrics

source§

fn default() -> Self

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)>

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 F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

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 +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 T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/2846/docs/iroh_net_bench/enum.EndpointSelector.html b/pr/2846/docs/iroh_net_bench/enum.EndpointSelector.html index 745500b6bf..ff04fb3c02 100644 --- a/pr/2846/docs/iroh_net_bench/enum.EndpointSelector.html +++ b/pr/2846/docs/iroh_net_bench/enum.EndpointSelector.html @@ -1,7 +1,7 @@ EndpointSelector in iroh_net_bench - Rust

Enum iroh_net_bench::EndpointSelector

source ·
pub enum EndpointSelector {
-    Iroh(Endpoint),
+    Iroh(Endpoint),
     Quinn(Endpoint),
-}

Variants§

§

Iroh(Endpoint)

§

Quinn(Endpoint)

Implementations§

source§

impl EndpointSelector

source

pub async fn close(self) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +}

Variants§

§

Iroh(Endpoint)

§

Quinn(Endpoint)

Implementations§

source§

impl EndpointSelector

source

pub async fn close(self) -> Result<()>

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 T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/2846/docs/iroh_net_bench/iroh/fn.client.html b/pr/2846/docs/iroh_net_bench/iroh/fn.client.html index fc51e447e4..47f6d5f1c9 100644 --- a/pr/2846/docs/iroh_net_bench/iroh/fn.client.html +++ b/pr/2846/docs/iroh_net_bench/iroh/fn.client.html @@ -1,6 +1,6 @@ client in iroh_net_bench::iroh - Rust

Function iroh_net_bench::iroh::client

source ·
pub async fn client(
-    server_addr: NodeAddr,
-    relay_url: Option<RelayUrl>,
+    server_addr: NodeAddr,
+    relay_url: Option<RelayUrl>,
     opt: Opt
 ) -> Result<ClientStats>
Expand description

Create and run a client

\ No newline at end of file diff --git a/pr/2846/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2846/docs/iroh_net_bench/iroh/fn.connect_client.html index e440e4b78b..9dc6117a40 100644 --- a/pr/2846/docs/iroh_net_bench/iroh/fn.connect_client.html +++ b/pr/2846/docs/iroh_net_bench/iroh/fn.connect_client.html @@ -1,6 +1,6 @@ connect_client in iroh_net_bench::iroh - Rust

Function iroh_net_bench::iroh::connect_client

source ·
pub async fn connect_client(
-    server_addr: NodeAddr,
-    relay_url: Option<RelayUrl>,
+    server_addr: NodeAddr,
+    relay_url: Option<RelayUrl>,
     opt: Opt
-) -> Result<(Endpoint, Connection)>
Expand description

Create a client endpoint and client connection

+) -> Result<(Endpoint, Connection)>
Expand description

Create a client endpoint and client connection

\ No newline at end of file diff --git a/pr/2846/docs/iroh_net_bench/iroh/fn.server.html b/pr/2846/docs/iroh_net_bench/iroh/fn.server.html index cfacd00516..8a978024ab 100644 --- a/pr/2846/docs/iroh_net_bench/iroh/fn.server.html +++ b/pr/2846/docs/iroh_net_bench/iroh/fn.server.html @@ -1,2 +1,2 @@ -server in iroh_net_bench::iroh - Rust

Function iroh_net_bench::iroh::server

source ·
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description

Take the provided endpoint and run the server

+server in iroh_net_bench::iroh - Rust

Function iroh_net_bench::iroh::server

source ·
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description

Take the provided endpoint and run the server

\ No newline at end of file diff --git a/pr/2846/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2846/docs/iroh_net_bench/iroh/fn.server_endpoint.html index aa3032746c..ba56110cc9 100644 --- a/pr/2846/docs/iroh_net_bench/iroh/fn.server_endpoint.html +++ b/pr/2846/docs/iroh_net_bench/iroh/fn.server_endpoint.html @@ -1,6 +1,6 @@ server_endpoint in iroh_net_bench::iroh - Rust

Function iroh_net_bench::iroh::server_endpoint

source ·
pub fn server_endpoint(
     rt: &Runtime,
-    relay_url: &Option<RelayUrl>,
+    relay_url: &Option<RelayUrl>,
     opt: &Opt
-) -> (NodeAddr, Endpoint)
Expand description

Creates a server endpoint which runs on the given runtime

+) -> (NodeAddr, Endpoint)
Expand description

Creates a server endpoint which runs on the given runtime

\ No newline at end of file diff --git a/pr/2846/docs/iroh_router/struct.Router.html b/pr/2846/docs/iroh_router/struct.Router.html index 894b2a619b..37df9696f6 100644 --- a/pr/2846/docs/iroh_router/struct.Router.html +++ b/pr/2846/docs/iroh_router/struct.Router.html @@ -1,7 +1,7 @@ -Router in iroh_router - Rust

Struct iroh_router::Router

source ·
pub struct Router { /* private fields */ }

Implementations§

source§

impl Router

source

pub fn builder(endpoint: Endpoint) -> RouterBuilder

source

pub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>

Returns a protocol handler for an ALPN.

+Router in iroh_router - Rust

Struct iroh_router::Router

source ·
pub struct Router { /* private fields */ }

Implementations§

source§

impl Router

source

pub fn builder(endpoint: Endpoint) -> RouterBuilder

source

pub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>

Returns a protocol handler for an ALPN.

This downcasts to the concrete type and returns None if the handler registered for alpn does not match the passed type.

-
source

pub fn endpoint(&self) -> &Endpoint

source

pub async fn shutdown(self) -> Result<()>

Trait Implementations§

source§

impl Clone for Router

source§

fn clone(&self) -> Router

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 Router

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Router

§

impl !RefUnwindSafe for Router

§

impl Send for Router

§

impl Sync for Router

§

impl Unpin for Router

§

impl !UnwindSafe for Router

Blanket Implementations§

source§

impl<T> Any for T
where +

source

pub fn endpoint(&self) -> &Endpoint

source

pub async fn shutdown(self) -> Result<()>

Trait Implementations§

source§

impl Clone for Router

source§

fn clone(&self) -> Router

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 Router

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Router

§

impl !RefUnwindSafe for Router

§

impl Send for Router

§

impl Sync for Router

§

impl Unpin for Router

§

impl !UnwindSafe for Router

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 T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/2846/docs/iroh_router/struct.RouterBuilder.html b/pr/2846/docs/iroh_router/struct.RouterBuilder.html index 6f96f56684..6f3dd141b7 100644 --- a/pr/2846/docs/iroh_router/struct.RouterBuilder.html +++ b/pr/2846/docs/iroh_router/struct.RouterBuilder.html @@ -1,4 +1,4 @@ -RouterBuilder in iroh_router - Rust

Struct iroh_router::RouterBuilder

source ·
pub struct RouterBuilder { /* private fields */ }

Implementations§

source§

impl RouterBuilder

source

pub fn new(endpoint: Endpoint) -> Self

source

pub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self

source

pub fn endpoint(&self) -> &Endpoint

Returns the Endpoint of the node.

+RouterBuilder in iroh_router - Rust

Struct iroh_router::RouterBuilder

source ·
pub struct RouterBuilder { /* private fields */ }

Implementations§

source§

impl RouterBuilder

source

pub fn new(endpoint: Endpoint) -> Self

source

pub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self

source

pub fn endpoint(&self) -> &Endpoint

Returns the [Endpoint] of the node.

source

pub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>

Returns a protocol handler for an ALPN.

This downcasts to the concrete type and returns None if the handler registered for alpn does not match the passed type.

diff --git a/pr/2846/docs/iroh_router/trait.ProtocolHandler.html b/pr/2846/docs/iroh_router/trait.ProtocolHandler.html index 767545c072..4b5487fc54 100644 --- a/pr/2846/docs/iroh_router/trait.ProtocolHandler.html +++ b/pr/2846/docs/iroh_router/trait.ProtocolHandler.html @@ -1,6 +1,6 @@ ProtocolHandler in iroh_router - Rust

Trait iroh_router::ProtocolHandler

source ·
pub trait ProtocolHandler: Send + Sync + IntoArcAny + Debug + 'static {
     // Required method
-    fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>;
+    fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>;
 
     // Provided method
     fn shutdown(self: Arc<Self>) -> BoxedFuture<()> { ... }
@@ -10,7 +10,7 @@
 

Implement this trait on a struct that should handle incoming connections. The protocol handler must then be registered on the node for an ALPN protocol with [crate::node::builder::ProtocolBuilder::accept].

-

Required Methods§

source

fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>

Handle an incoming connection.

+

Required Methods§

source

fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>

Handle an incoming connection.

This runs on a freshly spawned tokio task so this can be long-running.

Provided Methods§

source

fn shutdown(self: Arc<Self>) -> BoxedFuture<()>

Called when the node shuts down.

Implementors§

\ No newline at end of file diff --git a/pr/2846/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2846/docs/trait.impl/iroh_metrics/core/trait.Metric.js index edfd811c06..4d6913f991 100644 --- a/pr/2846/docs/trait.impl/iroh_metrics/core/trait.Metric.js +++ b/pr/2846/docs/trait.impl/iroh_metrics/core/trait.Metric.js @@ -1,6 +1,6 @@ (function() {var implementors = { "iroh":[["impl Metric for Metrics"]], -"iroh_dns_server":[["impl Metric for Metrics"]], -"iroh_net":[["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"]], +"iroh_dns_server":[["impl Metric for Metrics"]], +"iroh_net":[["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"]], "iroh_relay":[["impl Metric for StunMetrics"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file