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: 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§
§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: 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/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: 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
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: 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
§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/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 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/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: 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/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 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: 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/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§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/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
\ 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
\ 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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.
-sourcepub fn endpoint(&self) -> &Endpoint
sourcepub async fn shutdown(self) -> Result<()>
Trait Implementations§
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§
Trait Implementations§
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§
§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/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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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§
\ 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
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/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 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/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: 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/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 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: 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/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§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/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
\ 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
\ 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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.
-sourcepub fn endpoint(&self) -> &Endpoint
sourcepub async fn shutdown(self) -> Result<()>
Trait Implementations§
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§
Trait Implementations§
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§
§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/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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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§
\ 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
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/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: 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/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 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: 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/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§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/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
\ 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
\ 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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.
-sourcepub fn endpoint(&self) -> &Endpoint
sourcepub async fn shutdown(self) -> Result<()>
Trait Implementations§
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§
Trait Implementations§
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§
§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/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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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§
\ 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
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/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 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: 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/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§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/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
\ 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
\ 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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.
-sourcepub fn endpoint(&self) -> &Endpoint
sourcepub async fn shutdown(self) -> Result<()>
Trait Implementations§
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§
Trait Implementations§
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§
§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/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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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§
\ 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
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,
}iroh-relay only.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/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§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/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
\ 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
\ 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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.
-sourcepub fn endpoint(&self) -> &Endpoint
sourcepub async fn shutdown(self) -> Result<()>
Trait Implementations§
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§
Trait Implementations§
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§
§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/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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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§
\ 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
Enum iroh_net_bench::EndpointSelector
source · pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Quinn(Endpoint),
-}Variants§
Implementations§
Auto Trait Implementations§
impl Freeze for EndpointSelector
impl !RefUnwindSafe for EndpointSelector
impl Send for EndpointSelector
impl Sync for EndpointSelector
impl Unpin for EndpointSelector
impl !UnwindSafe for EndpointSelector
Blanket Implementations§
source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/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
\ 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
\ 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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.
-sourcepub fn endpoint(&self) -> &Endpoint
sourcepub async fn shutdown(self) -> Result<()>
Trait Implementations§
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§
Trait Implementations§
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§
§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/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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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§
\ 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
impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/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
\ 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
\ 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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.
-sourcepub fn endpoint(&self) -> &Endpoint
sourcepub async fn shutdown(self) -> Result<()>
Trait Implementations§
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§
Trait Implementations§
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§
§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/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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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§
\ 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
Variants§
Implementations§
Auto Trait Implementations§
impl Freeze for EndpointSelector
impl !RefUnwindSafe for EndpointSelector
impl Send for EndpointSelector
impl Sync for EndpointSelector
impl Unpin for EndpointSelector
impl !UnwindSafe for EndpointSelector
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/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
\ 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
\ 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub 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.
-sourcepub fn endpoint(&self) -> &Endpoint
sourcepub async fn shutdown(self) -> Result<()>
Trait Implementations§
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§
Trait Implementations§
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§
§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/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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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§
\ 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
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
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
+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
Struct iroh_router::Router
source · pub struct Router { /* private fields */ }Implementations§
source§impl Router
impl Router
pub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>
pub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>
Returns a protocol handler for an ALPN.
+Struct iroh_router::Router
source · pub struct Router { /* private fields */ }Implementations§
source§impl Router
impl Router
pub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>
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.
pub fn endpoint(&self) -> &Endpoint
pub async fn shutdown(self) -> Result<()>
Trait Implementations§
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§
Trait Implementations§
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§
§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/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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub 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§
\ 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
Struct iroh_router::RouterBuilder
source · pub struct RouterBuilder { /* private fields */ }Implementations§
source§impl RouterBuilder
impl RouterBuilder
pub fn new(endpoint: Endpoint) -> Self
pub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub fn endpoint(&self) -> &Endpoint
pub fn endpoint(&self) -> &Endpoint
Returns the Endpoint of the node.
Struct iroh_router::RouterBuilder
source · pub struct RouterBuilder { /* private fields */ }Implementations§
source§impl RouterBuilder
impl RouterBuilder
pub fn new(endpoint: Endpoint) -> Self
pub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>
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.
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].
-