Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
§fn with_metric<T, F>(f: F)
fn with_metric<T, F>(f: F)
source§fn try_get() -> Option<&'static Self>
fn try_get() -> Option<&'static Self>
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§
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
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit( diff --git a/pr/2774/docs/iroh_net/endpoint/struct.Endpoint.html b/pr/2774/docs/iroh_net/endpoint/struct.Endpoint.html index 07267dd7aa..ce6024c71e 100644 --- a/pr/2774/docs/iroh_net/endpoint/struct.Endpoint.html +++ b/pr/2774/docs/iroh_net/endpoint/struct.Endpoint.html @@ -43,7 +43,7 @@ an error. &self, node_id: NodeId, alpn: &[u8] -) -> Result<Connection>
connect directly with a NodeAddr or NodeIdConnects to a remote endpoint, using just the nodes’s NodeId.
connect directly with a NodeId. This fn will be removed in 0.28.0.Connects to a remote endpoint, using just the nodes’s NodeId.
This is a convenience function for Endpoint::connect. It relies on addressing
information being provided by either the discovery service or using
Endpoint::add_node_addr. See Endpoint::connect for the details of how it
diff --git a/pr/2774/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2774/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index 6528a80c7c..0b0945ca43 100644
--- a/pr/2774/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2774/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,55 +1,55 @@
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: CounterNumber of QUIC datagrams received.
-recv_gro_datagrams: CounterNumber 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: CounterThe number of direct connections we have made to peers.
-num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-num_relay_conns_removed: CounterThe 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: CounterTrait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
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: CounterNumber of QUIC datagrams received.
+recv_gro_datagrams: CounterNumber 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: CounterThe number of direct connections we have made to peers.
+num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+num_relay_conns_removed: CounterThe 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: CounterTrait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
§fn with_metric<T, F>(f: F)
fn with_metric<T, F>(f: F)
source§fn try_get() -> Option<&'static Self>
fn try_get() -> Option<&'static Self>
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§
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
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/2774/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2774/docs/iroh_net/netcheck/struct.Metrics.html
index fb9f58dfd6..2eed106346 100644
--- a/pr/2774/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2774/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust 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: CounterTrait Implementations§
source§impl Metric for Metrics
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: CounterTrait Implementations§
source§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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2774/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2774/docs/iroh_net/portmapper/struct.Metrics.html
index edd4f04110..4b81f3aa22 100644
--- a/pr/2774/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2774/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: CounterTrait Implementations§
source§impl Metric for Metrics
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: CounterTrait Implementations§
source§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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html
index d56099a70e..bc47316bbb 100644
--- a/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust 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,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
source§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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html b/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
index 34fda7af01..e3f969c3ad 100644
--- a/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
+++ b/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
@@ -1,18 +1,18 @@
StunMetrics in iroh_relay::metrics - Rust Struct iroh_relay::metrics::StunMetrics
source · pub struct StunMetrics {
- pub requests: Counter,
- pub ipv4_success: Counter,
- pub ipv6_success: Counter,
- pub bad_requests: Counter,
- pub failures: Counter,
+ pub requests: Counter,
+ pub ipv4_success: Counter,
+ pub ipv6_success: Counter,
+ pub bad_requests: Counter,
+ pub failures: Counter,
}
Expand description
StunMetrics tracked for the relay server
-Fields§
§requests: CounterNumber of stun requests made
-§ipv4_success: CounterNumber of successful requests over ipv4
-§ipv6_success: CounterNumber of successful requests over ipv6
-§bad_requests: CounterNumber of bad requests, either non-stun packets or incorrect binding request
-§failures: CounterNumber of failures
-Trait Implementations§
source§impl Clone for StunMetrics
source§fn clone(&self) -> StunMetrics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for StunMetrics
source§impl Default for StunMetrics
source§impl Iterable for StunMetrics
source§impl Metric for StunMetrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§requests: CounterNumber of stun requests made
+§ipv4_success: CounterNumber of successful requests over ipv4
+§ipv6_success: CounterNumber of successful requests over ipv6
+§bad_requests: CounterNumber of bad requests, either non-stun packets or incorrect binding request
+§failures: CounterNumber of failures
+Trait Implementations§
source§impl Clone for StunMetrics
source§fn clone(&self) -> StunMetrics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for StunMetrics
source§impl Default for StunMetrics
source§impl Iterable for StunMetrics
source§impl Metric for StunMetrics
§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.source§fn try_get() -> Option<&'static Self>
Attempts to get the current metric from the global registry.Auto Trait Implementations§
§impl Freeze for StunMetrics
§impl RefUnwindSafe for StunMetrics
§impl Send for StunMetrics
§impl Sync for StunMetrics
§impl Unpin for StunMetrics
§impl UnwindSafe for StunMetrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for StunMetrics
§impl RefUnwindSafe for StunMetrics
§impl Send for StunMetrics
§impl Sync for StunMetrics
§impl Unpin for StunMetrics
§impl UnwindSafe for StunMetrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2774/docs/src/iroh_net/endpoint.rs.html b/pr/2774/docs/src/iroh_net/endpoint.rs.html
index fe3d58566a..0dfc72ef1f 100644
--- a/pr/2774/docs/src/iroh_net/endpoint.rs.html
+++ b/pr/2774/docs/src/iroh_net/endpoint.rs.html
@@ -2263,7 +2263,7 @@
/// uses the discovery service to establish a connection to a remote node.
#[deprecated(
since = "0.27.0",
- note = "Please use `connect` directly with a `NodeAddr` or `NodeId`"
+ note = "Please use `connect` directly with a NodeId. This fn will be removed in 0.28.0."
)]
pub async fn connect_by_node_id(
&self,
diff --git a/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index d96d2ad190..b6339d8222 100644
--- a/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -3,7 +3,7 @@
"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
-"iroh_gossip":[["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"]]
+"iroh_gossip":[["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
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: CounterTrait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
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: CounterTrait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
§fn with_metric<T, F>(f: F)
fn with_metric<T, F>(f: F)
source§fn try_get() -> Option<&'static Self>
fn try_get() -> Option<&'static Self>
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§
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
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/2774/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2774/docs/iroh_net/portmapper/struct.Metrics.html
index edd4f04110..4b81f3aa22 100644
--- a/pr/2774/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2774/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: CounterTrait Implementations§
source§impl Metric for Metrics
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: CounterTrait Implementations§
source§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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html
index d56099a70e..bc47316bbb 100644
--- a/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust 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,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
source§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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html b/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
index 34fda7af01..e3f969c3ad 100644
--- a/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
+++ b/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
@@ -1,18 +1,18 @@
StunMetrics in iroh_relay::metrics - Rust Struct iroh_relay::metrics::StunMetrics
source · pub struct StunMetrics {
- pub requests: Counter,
- pub ipv4_success: Counter,
- pub ipv6_success: Counter,
- pub bad_requests: Counter,
- pub failures: Counter,
+ pub requests: Counter,
+ pub ipv4_success: Counter,
+ pub ipv6_success: Counter,
+ pub bad_requests: Counter,
+ pub failures: Counter,
}
Expand description
StunMetrics tracked for the relay server
-Fields§
§requests: CounterNumber of stun requests made
-§ipv4_success: CounterNumber of successful requests over ipv4
-§ipv6_success: CounterNumber of successful requests over ipv6
-§bad_requests: CounterNumber of bad requests, either non-stun packets or incorrect binding request
-§failures: CounterNumber of failures
-Trait Implementations§
source§impl Clone for StunMetrics
source§fn clone(&self) -> StunMetrics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for StunMetrics
source§impl Default for StunMetrics
source§impl Iterable for StunMetrics
source§impl Metric for StunMetrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§requests: CounterNumber of stun requests made
+§ipv4_success: CounterNumber of successful requests over ipv4
+§ipv6_success: CounterNumber of successful requests over ipv6
+§bad_requests: CounterNumber of bad requests, either non-stun packets or incorrect binding request
+§failures: CounterNumber of failures
+Trait Implementations§
source§impl Clone for StunMetrics
source§fn clone(&self) -> StunMetrics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for StunMetrics
source§impl Default for StunMetrics
source§impl Iterable for StunMetrics
source§impl Metric for StunMetrics
§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.source§fn try_get() -> Option<&'static Self>
Attempts to get the current metric from the global registry.Auto Trait Implementations§
§impl Freeze for StunMetrics
§impl RefUnwindSafe for StunMetrics
§impl Send for StunMetrics
§impl Sync for StunMetrics
§impl Unpin for StunMetrics
§impl UnwindSafe for StunMetrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for StunMetrics
§impl RefUnwindSafe for StunMetrics
§impl Send for StunMetrics
§impl Sync for StunMetrics
§impl Unpin for StunMetrics
§impl UnwindSafe for StunMetrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2774/docs/src/iroh_net/endpoint.rs.html b/pr/2774/docs/src/iroh_net/endpoint.rs.html
index fe3d58566a..0dfc72ef1f 100644
--- a/pr/2774/docs/src/iroh_net/endpoint.rs.html
+++ b/pr/2774/docs/src/iroh_net/endpoint.rs.html
@@ -2263,7 +2263,7 @@
/// uses the discovery service to establish a connection to a remote node.
#[deprecated(
since = "0.27.0",
- note = "Please use `connect` directly with a `NodeAddr` or `NodeId`"
+ note = "Please use `connect` directly with a NodeId. This fn will be removed in 0.28.0."
)]
pub async fn connect_by_node_id(
&self,
diff --git a/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index d96d2ad190..b6339d8222 100644
--- a/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -3,7 +3,7 @@
"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
-"iroh_gossip":[["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"]]
+"iroh_gossip":[["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
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: CounterTrait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
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§
source§impl Metric for Metrics
impl Metric for Metrics
§fn with_metric<T, F>(f: F)
fn with_metric<T, F>(f: F)
source§fn try_get() -> Option<&'static Self>
fn try_get() -> Option<&'static Self>
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§
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
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html
index d56099a70e..bc47316bbb 100644
--- a/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2774/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust 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,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
source§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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html b/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
index 34fda7af01..e3f969c3ad 100644
--- a/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
+++ b/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
@@ -1,18 +1,18 @@
StunMetrics in iroh_relay::metrics - Rust Struct iroh_relay::metrics::StunMetrics
source · pub struct StunMetrics {
- pub requests: Counter,
- pub ipv4_success: Counter,
- pub ipv6_success: Counter,
- pub bad_requests: Counter,
- pub failures: Counter,
+ pub requests: Counter,
+ pub ipv4_success: Counter,
+ pub ipv6_success: Counter,
+ pub bad_requests: Counter,
+ pub failures: Counter,
}
Expand description
StunMetrics tracked for the relay server
-Fields§
§requests: CounterNumber of stun requests made
-§ipv4_success: CounterNumber of successful requests over ipv4
-§ipv6_success: CounterNumber of successful requests over ipv6
-§bad_requests: CounterNumber of bad requests, either non-stun packets or incorrect binding request
-§failures: CounterNumber of failures
-Trait Implementations§
source§impl Clone for StunMetrics
source§fn clone(&self) -> StunMetrics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for StunMetrics
source§impl Default for StunMetrics
source§impl Iterable for StunMetrics
source§impl Metric for StunMetrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§requests: CounterNumber of stun requests made
+§ipv4_success: CounterNumber of successful requests over ipv4
+§ipv6_success: CounterNumber of successful requests over ipv6
+§bad_requests: CounterNumber of bad requests, either non-stun packets or incorrect binding request
+§failures: CounterNumber of failures
+Trait Implementations§
source§impl Clone for StunMetrics
source§fn clone(&self) -> StunMetrics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for StunMetrics
source§impl Default for StunMetrics
source§impl Iterable for StunMetrics
source§impl Metric for StunMetrics
§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.source§fn try_get() -> Option<&'static Self>
Attempts to get the current metric from the global registry.Auto Trait Implementations§
§impl Freeze for StunMetrics
§impl RefUnwindSafe for StunMetrics
§impl Send for StunMetrics
§impl Sync for StunMetrics
§impl Unpin for StunMetrics
§impl UnwindSafe for StunMetrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for StunMetrics
§impl RefUnwindSafe for StunMetrics
§impl Send for StunMetrics
§impl Sync for StunMetrics
§impl Unpin for StunMetrics
§impl UnwindSafe for StunMetrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2774/docs/src/iroh_net/endpoint.rs.html b/pr/2774/docs/src/iroh_net/endpoint.rs.html
index fe3d58566a..0dfc72ef1f 100644
--- a/pr/2774/docs/src/iroh_net/endpoint.rs.html
+++ b/pr/2774/docs/src/iroh_net/endpoint.rs.html
@@ -2263,7 +2263,7 @@
/// uses the discovery service to establish a connection to a remote node.
#[deprecated(
since = "0.27.0",
- note = "Please use `connect` directly with a `NodeAddr` or `NodeId`"
+ note = "Please use `connect` directly with a NodeId. This fn will be removed in 0.28.0."
)]
pub async fn connect_by_node_id(
&self,
diff --git a/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index d96d2ad190..b6339d8222 100644
--- a/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -3,7 +3,7 @@
"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
-"iroh_gossip":[["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"]]
+"iroh_gossip":[["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
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,
}Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
bytes_recv: CounterBytes received from a FrameType::SendPacket
send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
other_packets_sent: CounterPackets of other FrameTypes sent
other_packets_recv: CounterPackets of other FrameTypes received
other_packets_dropped: CounterPackets of other FrameTypes dropped
got_ping: CounterNumber of FrameType::Pings received
sent_pong: CounterNumber of FrameType::Pongs sent
unknown_frames: CounterNumber of FrameType::Unknown received
accepts: CounterNumber of connections we have accepted
-disconnects: CounterNumber of connections we have removed because of an error
-unique_client_keys: CounterNumber of unique client keys per day
-websocket_accepts: CounterNumber of accepted websocket connections
-derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
bytes_recv: CounterBytes received from a FrameType::SendPacket
send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
other_packets_sent: CounterPackets of other FrameTypes sent
other_packets_recv: CounterPackets of other FrameTypes received
other_packets_dropped: CounterPackets of other FrameTypes dropped
got_ping: CounterNumber of FrameType::Pings received
sent_pong: CounterNumber of FrameType::Pongs sent
unknown_frames: CounterNumber of FrameType::Unknown received
accepts: CounterNumber of connections we have accepted
+disconnects: CounterNumber of connections we have removed because of an error
+unique_client_keys: CounterNumber of unique client keys per day
+websocket_accepts: CounterNumber of accepted websocket connections
+derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
§fn with_metric<T, F>(f: F)
fn with_metric<T, F>(f: F)
source§fn try_get() -> Option<&'static Self>
fn try_get() -> Option<&'static Self>
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§
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
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html b/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
index 34fda7af01..e3f969c3ad 100644
--- a/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
+++ b/pr/2774/docs/iroh_relay/metrics/struct.StunMetrics.html
@@ -1,18 +1,18 @@
StunMetrics in iroh_relay::metrics - Rust Struct iroh_relay::metrics::StunMetrics
source · pub struct StunMetrics {
- pub requests: Counter,
- pub ipv4_success: Counter,
- pub ipv6_success: Counter,
- pub bad_requests: Counter,
- pub failures: Counter,
+ pub requests: Counter,
+ pub ipv4_success: Counter,
+ pub ipv6_success: Counter,
+ pub bad_requests: Counter,
+ pub failures: Counter,
}
Expand description
StunMetrics tracked for the relay server
-Fields§
§requests: CounterNumber of stun requests made
-§ipv4_success: CounterNumber of successful requests over ipv4
-§ipv6_success: CounterNumber of successful requests over ipv6
-§bad_requests: CounterNumber of bad requests, either non-stun packets or incorrect binding request
-§failures: CounterNumber of failures
-Trait Implementations§
source§impl Clone for StunMetrics
source§fn clone(&self) -> StunMetrics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for StunMetrics
source§impl Default for StunMetrics
source§impl Iterable for StunMetrics
source§impl Metric for StunMetrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§requests: CounterNumber of stun requests made
+§ipv4_success: CounterNumber of successful requests over ipv4
+§ipv6_success: CounterNumber of successful requests over ipv6
+§bad_requests: CounterNumber of bad requests, either non-stun packets or incorrect binding request
+§failures: CounterNumber of failures
+Trait Implementations§
source§impl Clone for StunMetrics
source§fn clone(&self) -> StunMetrics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for StunMetrics
source§impl Default for StunMetrics
source§impl Iterable for StunMetrics
source§impl Metric for StunMetrics
§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.source§fn try_get() -> Option<&'static Self>
Attempts to get the current metric from the global registry.Auto Trait Implementations§
§impl Freeze for StunMetrics
§impl RefUnwindSafe for StunMetrics
§impl Send for StunMetrics
§impl Sync for StunMetrics
§impl Unpin for StunMetrics
§impl UnwindSafe for StunMetrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for StunMetrics
§impl RefUnwindSafe for StunMetrics
§impl Send for StunMetrics
§impl Sync for StunMetrics
§impl Unpin for StunMetrics
§impl UnwindSafe for StunMetrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2774/docs/src/iroh_net/endpoint.rs.html b/pr/2774/docs/src/iroh_net/endpoint.rs.html
index fe3d58566a..0dfc72ef1f 100644
--- a/pr/2774/docs/src/iroh_net/endpoint.rs.html
+++ b/pr/2774/docs/src/iroh_net/endpoint.rs.html
@@ -2263,7 +2263,7 @@
/// uses the discovery service to establish a connection to a remote node.
#[deprecated(
since = "0.27.0",
- note = "Please use `connect` directly with a `NodeAddr` or `NodeId`"
+ note = "Please use `connect` directly with a NodeId. This fn will be removed in 0.28.0."
)]
pub async fn connect_by_node_id(
&self,
diff --git a/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index d96d2ad190..b6339d8222 100644
--- a/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -3,7 +3,7 @@
"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
-"iroh_gossip":[["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"]]
+"iroh_gossip":[["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
Struct iroh_relay::metrics::StunMetrics
source · pub struct StunMetrics {
- pub requests: Counter,
- pub ipv4_success: Counter,
- pub ipv6_success: Counter,
- pub bad_requests: Counter,
- pub failures: Counter,
+ pub requests: Counter,
+ pub ipv4_success: Counter,
+ pub ipv6_success: Counter,
+ pub bad_requests: Counter,
+ pub failures: Counter,
}Expand description
StunMetrics tracked for the relay server
-Fields§
§requests: CounterNumber of stun requests made
-ipv4_success: CounterNumber of successful requests over ipv4
-ipv6_success: CounterNumber of successful requests over ipv6
-bad_requests: CounterNumber of bad requests, either non-stun packets or incorrect binding request
-failures: CounterNumber of failures
-Trait Implementations§
source§impl Clone for StunMetrics
impl Clone for StunMetrics
source§fn clone(&self) -> StunMetrics
fn clone(&self) -> StunMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StunMetrics
impl Debug for StunMetrics
source§impl Default for StunMetrics
impl Default for StunMetrics
source§impl Iterable for StunMetrics
impl Iterable for StunMetrics
source§impl Metric for StunMetrics
impl Metric for StunMetrics
source§fn with_metric<T, F>(f: F)where
+
fn with_metric<T, F>(f: F)where
+
Fields§
§requests: CounterNumber of stun requests made
+ipv4_success: CounterNumber of successful requests over ipv4
+ipv6_success: CounterNumber of successful requests over ipv6
+bad_requests: CounterNumber of bad requests, either non-stun packets or incorrect binding request
+failures: CounterNumber of failures
+Trait Implementations§
source§impl Clone for StunMetrics
impl Clone for StunMetrics
source§fn clone(&self) -> StunMetrics
fn clone(&self) -> StunMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more