pub const NAME: &str = "mdns";address-lookup-mdns only.Expand description
Name of this address lookup service.
+NAME
pub const NAME: &str = "mdns";address-lookup-mdns only.Expand description
Name of this address lookup service.
Used as the provenance field in AddressLookupItems.
Used in the crate::endpoint::Source::AddressLookup enum variant as the name.
DiscoveryEvent
pub enum DiscoveryEvent {
+DiscoveryEvent in iroh::address_lookup::mdns - Rust DiscoveryEvent
#[non_exhaustive]pub enum DiscoveryEvent {
Discovered {
endpoint_info: EndpointInfo,
last_updated: Option<u64>,
@@ -7,14 +7,14 @@
endpoint_id: EndpointId,
},
}
Available on crate feature address-lookup-mdns only.Expand description
An event emitted from the MdnsAddressLookup service.
-Variants§
§Discovered
A peer was discovered or it’s information was updated.
+Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.§Discovered
A peer was discovered or it’s information was updated.
Fields
§endpoint_info: EndpointInfoThe endpoint info for the endpoint, as discovered.
§Expired
A peer was expired due to being inactive, unreachable, or otherwise
unavailable.
Fields
§endpoint_id: EndpointIdThe id of the endpoint that expired.
-Trait Implementations§
Source§impl Clone for DiscoveryEvent
Source§fn clone(&self) -> DiscoveryEvent
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for DiscoveryEvent
Source§impl PartialEq for DiscoveryEvent
Source§impl Eq for DiscoveryEvent
Source§impl StructuralPartialEq for DiscoveryEvent
Auto Trait Implementations§
§impl Freeze for DiscoveryEvent
§impl RefUnwindSafe for DiscoveryEvent
§impl Send for DiscoveryEvent
§impl Sync for DiscoveryEvent
§impl Unpin for DiscoveryEvent
§impl UnwindSafe for DiscoveryEvent
Blanket Implementations§
Trait Implementations§
Source§impl Clone for DiscoveryEvent
Source§fn clone(&self) -> DiscoveryEvent
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for DiscoveryEvent
Source§impl PartialEq for DiscoveryEvent
Source§impl Eq for DiscoveryEvent
Source§impl StructuralPartialEq for DiscoveryEvent
Auto Trait Implementations§
§impl Freeze for DiscoveryEvent
§impl RefUnwindSafe for DiscoveryEvent
§impl Send for DiscoveryEvent
§impl Sync for DiscoveryEvent
§impl Unpin for DiscoveryEvent
§impl UnwindSafe for DiscoveryEvent
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/4095/docs/iroh/address_lookup/mdns/index.html b/pr/4095/docs/iroh/address_lookup/mdns/index.html
index d299c0018d..d171363918 100644
--- a/pr/4095/docs/iroh/address_lookup/mdns/index.html
+++ b/pr/4095/docs/iroh/address_lookup/mdns/index.html
@@ -1,4 +1,4 @@
-iroh::address_lookup::mdns - Rust Module mdns
Available on crate feature address-lookup-mdns only.Expand description
An address lookup service that uses an mdns-like service to discover and lookup the addresses of local endpoints.
+iroh::address_lookup::mdns - Rust Module mdns
Available on crate feature address-lookup-mdns only.Expand description
An address lookup service that uses an mdns-like service to discover and lookup the addresses of local endpoints.
This allows you to use an mdns-like swarm discovery service to find address information about endpoints that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
When MdnsAddressLookup is enabled, it’s possible to get a list of the locally discovered endpoints by filtering a list of RemoteInfos.
@@ -33,6 +33,7 @@ to a stream of discovered addresses.
DiscoveryEvent::Expired { endpoint_id } => {
println!("MDNS expired: {endpoint_id}");
}
+ _ => {}
}
}
}§Filtering
diff --git a/pr/4095/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookup.html b/pr/4095/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookup.html
index 2aa5658074..0cc37fb193 100644
--- a/pr/4095/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookup.html
+++ b/pr/4095/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookup.html
@@ -1,12 +1,12 @@
-MdnsAddressLookup in iroh::address_lookup::mdns - Rust MdnsAddressLookup
pub struct MdnsAddressLookup { /* private fields */ }
Available on crate feature address-lookup-mdns only.Expand description
Address Lookup using swarm-discovery, a variation on mdns.
-Implementations§
Source§impl MdnsAddressLookup
Sourcepub fn builder() -> MdnsAddressLookupBuilder
Returns a MdnsAddressLookupBuilder used to construct MdnsAddressLookup.
-Sourcepub async fn subscribe(
+MdnsAddressLookup in iroh::address_lookup::mdns - Rust MdnsAddressLookup
pub struct MdnsAddressLookup { /* private fields */ }
Available on crate feature address-lookup-mdns only.Expand description
Address Lookup using swarm-discovery, a variation on mdns.
+Implementations§
Source§impl MdnsAddressLookup
Sourcepub fn builder() -> MdnsAddressLookupBuilder
Returns a MdnsAddressLookupBuilder used to construct MdnsAddressLookup.
+Sourcepub async fn subscribe(
&self,
) -> impl Stream<Item = DiscoveryEvent> + Unpin + use<>
Subscribe to discovered endpoints.
-Trait Implementations§
Source§impl AddressLookup for MdnsAddressLookup
Trait Implementations§
Source§impl AddressLookup for MdnsAddressLookup
Source§fn resolve(
&self,
endpoint_id: EndpointId,
-) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>>
Source§fn publish(&self, data: &EndpointData)
Publishes the given EndpointData to the Address Lookup mechanism. Read moreSource§impl Clone for MdnsAddressLookup
Source§fn clone(&self) -> MdnsAddressLookup
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for MdnsAddressLookup
§impl RefUnwindSafe for MdnsAddressLookup
§impl Send for MdnsAddressLookup
§impl Sync for MdnsAddressLookup
§impl Unpin for MdnsAddressLookup
§impl UnwindSafe for MdnsAddressLookup
Blanket Implementations§
Source§impl<T> AddressLookupBuilder for Twhere
+) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>>Source§fn publish(&self, data: &EndpointData)
Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§impl Clone for MdnsAddressLookup
Source§fn clone(&self) -> MdnsAddressLookup
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for MdnsAddressLookup
§impl RefUnwindSafe for MdnsAddressLookup
§impl Send for MdnsAddressLookup
§impl Sync for MdnsAddressLookup
§impl Unpin for MdnsAddressLookup
§impl UnwindSafe for MdnsAddressLookup
Blanket Implementations§
Source§impl<T> AddressLookupBuilder for Twhere
T: AddressLookup,
Source§fn into_address_lookup(
self,
_endpoint: &Endpoint,
diff --git a/pr/4095/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookupBuilder.html b/pr/4095/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookupBuilder.html
index bdd43f6442..1954e00671 100644
--- a/pr/4095/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookupBuilder.html
+++ b/pr/4095/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookupBuilder.html
@@ -1,14 +1,14 @@
-MdnsAddressLookupBuilder in iroh::address_lookup::mdns - Rust MdnsAddressLookupBuilder
pub struct MdnsAddressLookupBuilder { /* private fields */ }
Available on crate feature address-lookup-mdns only.Expand description
Builder for MdnsAddressLookup.
-Implementations§
Source§impl MdnsAddressLookupBuilder
Sourcepub fn advertise(self, advertise: bool) -> Self
Sets whether this endpoint should advertise its presence.
+MdnsAddressLookupBuilder in iroh::address_lookup::mdns - Rust MdnsAddressLookupBuilder
pub struct MdnsAddressLookupBuilder { /* private fields */ }
Available on crate feature address-lookup-mdns only.Expand description
Builder for MdnsAddressLookup.
+Implementations§
Source§impl MdnsAddressLookupBuilder
Sourcepub fn advertise(self, advertise: bool) -> Self
Sets whether this endpoint should advertise its presence.
Default is true.
-Sourcepub fn service_name(self, service_name: impl Into<String>) -> Self
Sets a custom service name.
+Sourcepub fn service_name(self, service_name: impl Into<String>) -> Self
Sets a custom service name.
The default is irohv1, which will show up on a record in the
following form, for example:
7rutqynuzu65fcdgoerbt4uoh3p62wuto2mp56x3uvhitqzssxga._irohv1._udp.local
Any custom service name will take the form, for example:
7rutqynuzu65fcdgoerbt4uoh3p62wuto2mp56x3uvhitqzssxga._{service_name}._udp.local
-Sourcepub fn addr_filter(self, filter: AddrFilter) -> Self
Sets a filter to control which addresses are published by this service.
-Sourcepub fn addr_filter(self, filter: AddrFilter) -> Self
Sets a filter to control which addresses are published by this service.
+Sourcepub fn build(
self,
endpoint_id: EndpointId,
) -> Result<MdnsAddressLookup, AddressLookupBuilderError>
Builds an MdnsAddressLookup instance with the configured settings.
@@ -16,10 +16,10 @@ following form, for example:
Returns an error if the network does not allow ipv4 OR ipv6.
§Panics
This relies on [tokio::runtime::Handle::current] and will panic if called outside of the context of a tokio runtime.
-Trait Implementations§
Trait Implementations§
Source§impl AddressLookupBuilder for MdnsAddressLookupBuilder
Source§fn into_address_lookup(
self,
endpoint: &Endpoint,
-) -> Result<impl AddressLookup, AddressLookupBuilderError>
Turns this builder into a ready-to-use AddressLookup. Read moreSource§impl Debug for MdnsAddressLookupBuilder
Auto Trait Implementations§
§impl Freeze for MdnsAddressLookupBuilder
§impl !RefUnwindSafe for MdnsAddressLookupBuilder
§impl Send for MdnsAddressLookupBuilder
§impl Sync for MdnsAddressLookupBuilder
§impl Unpin for MdnsAddressLookupBuilder
§impl !UnwindSafe for MdnsAddressLookupBuilder
Blanket Implementations§
Source§impl<T> Any for Twhere
+) -> Result<impl AddressLookup, AddressLookupBuilderError>Turns this builder into a ready-to-use AddressLookup. Read more
Source§impl Debug for MdnsAddressLookupBuilder
Auto Trait Implementations§
§impl Freeze for MdnsAddressLookupBuilder
§impl !RefUnwindSafe for MdnsAddressLookupBuilder
§impl Send for MdnsAddressLookupBuilder
§impl Sync for MdnsAddressLookupBuilder
§impl Unpin for MdnsAddressLookupBuilder
§impl !UnwindSafe for MdnsAddressLookupBuilder
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/4095/docs/iroh/address_lookup/trait.AddressLookup.html b/pr/4095/docs/iroh/address_lookup/trait.AddressLookup.html
index 0c1556f668..23d70e0f90 100644
--- a/pr/4095/docs/iroh/address_lookup/trait.AddressLookup.html
+++ b/pr/4095/docs/iroh/address_lookup/trait.AddressLookup.html
@@ -34,4 +34,4 @@ work.
Implementations on Foreign Types§
Source§impl<T: AddressLookup> AddressLookup for Arc<T>
Implementors§
Source§impl AddressLookup for DnsAddressLookup
Available on non-wasm_browser only. Source§impl AddressLookup for MdnsAddressLookup
Available on crate feature address-lookup-mdns only. Source§impl AddressLookup for MemoryLookup
Source§impl AddressLookup for DhtAddressLookup
Available on crate feature address-lookup-pkarr-dht only. Source§impl AddressLookup for PkarrPublisher
Source§impl AddressLookup for PkarrResolver
Source§impl AddressLookup for ConcurrentAddressLookup
Source§impl<T: AddressLookup> AddressLookup for FilteredAddressLookup<T>
\ No newline at end of file
+) -> Option<BoxStream<Result<Item, Error>>>Implementors§
Source§impl AddressLookup for DnsAddressLookup
Available on non-wasm_browser only. Source§impl AddressLookup for MdnsAddressLookup
Available on crate feature address-lookup-mdns only. Source§impl AddressLookup for MemoryLookup
Source§impl AddressLookup for DhtAddressLookup
Available on crate feature address-lookup-pkarr-dht only. Source§impl AddressLookup for PkarrPublisher
Source§impl AddressLookup for PkarrResolver
Source§impl AddressLookup for ConcurrentAddressLookup
Source§impl<T: AddressLookup> AddressLookup for FilteredAddressLookup<T>
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/address_lookup/trait.AddressLookupBuilder.html b/pr/4095/docs/iroh/address_lookup/trait.AddressLookupBuilder.html
index 94c6b9f7d6..11ff301e82 100644
--- a/pr/4095/docs/iroh/address_lookup/trait.AddressLookupBuilder.html
+++ b/pr/4095/docs/iroh/address_lookup/trait.AddressLookupBuilder.html
@@ -20,5 +20,5 @@ endpoint to Endpoint,
) -> Result<impl AddressLookup, AddressLookupBuilderError>
Turns this builder into a ready-to-use AddressLookup.
If an error is returned, building the endpoint will fail with this error.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl AddressLookupBuilder for DnsAddressLookupBuilder
Available on non-wasm_browser only. Source§impl AddressLookupBuilder for MdnsAddressLookupBuilder
Available on crate feature address-lookup-mdns only. Source§impl AddressLookupBuilder for Builder
Available on crate feature address-lookup-pkarr-dht only. Source§impl AddressLookupBuilder for PkarrPublisherBuilder
Source§impl AddressLookupBuilder for PkarrResolverBuilder
Source§impl<T: AddressLookup> AddressLookupBuilder for T
Blanket no-op impl of AddressLookupBuilder for T: AddressLookup.
+ Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl AddressLookupBuilder for DnsAddressLookupBuilder
Available on non-wasm_browser only. Source§impl AddressLookupBuilder for MdnsAddressLookupBuilder
Available on crate feature address-lookup-mdns only. Source§impl AddressLookupBuilder for Builder
Available on crate feature address-lookup-pkarr-dht only. Source§impl AddressLookupBuilder for PkarrPublisherBuilder
Source§impl AddressLookupBuilder for PkarrResolverBuilder
Source§impl<T: AddressLookup> AddressLookupBuilder for T
Blanket no-op impl of AddressLookupBuilder for T: AddressLookup.
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/index.html b/pr/4095/docs/iroh/defaults/index.html
index 0cc6340aa7..9c0c747853 100644
--- a/pr/4095/docs/iroh/defaults/index.html
+++ b/pr/4095/docs/iroh/defaults/index.html
@@ -1,3 +1,3 @@
-iroh::defaults - Rust Module defaults
Expand description
Default values used in iroh
+iroh::defaults - Rust Module defaults
Expand description
Default values used in iroh
Modules§
Constants§
- DEFAULT_
HTTPS_PORT - The default HTTPS port used by the Relay server.
- DEFAULT_
HTTP_PORT - The default HTTP port used by the Relay server.
- DEFAULT_
METRICS_PORT - The default metrics port used by the Relay server.
- DEFAULT_
RELAY_QUIC_PORT - The default QUIC port used by the Relay server to accept QUIC connections
for QUIC address discovery
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html b/pr/4095/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html
index f7ee3413a8..fac2e3fe31 100644
--- a/pr/4095/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html
+++ b/pr/4095/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html
@@ -1,2 +1,2 @@
-AP_RELAY_HOSTNAME in iroh::defaults::prod - Rust AP_RELAY_HOSTNAME
pub const AP_RELAY_HOSTNAME: &str = "aps1-1.relay.n0.iroh-canary.iroh.link.";
Expand description
Hostname of the default Asia-Pacific relay.
+AP_RELAY_HOSTNAME in iroh::defaults::prod - Rust AP_RELAY_HOSTNAME
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html b/pr/4095/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html
index 1b8d06cbf4..21f8c2c84a 100644
--- a/pr/4095/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html
+++ b/pr/4095/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html
@@ -1,2 +1,2 @@
-EU_RELAY_HOSTNAME in iroh::defaults::prod - Rust EU_RELAY_HOSTNAME
pub const EU_RELAY_HOSTNAME: &str = "euc1-1.relay.n0.iroh-canary.iroh.link.";
Expand description
Hostname of the default EU relay.
+EU_RELAY_HOSTNAME in iroh::defaults::prod - Rust EU_RELAY_HOSTNAME
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/prod/constant.NA_EAST_RELAY_HOSTNAME.html b/pr/4095/docs/iroh/defaults/prod/constant.NA_EAST_RELAY_HOSTNAME.html
index 5023a5b836..b184658820 100644
--- a/pr/4095/docs/iroh/defaults/prod/constant.NA_EAST_RELAY_HOSTNAME.html
+++ b/pr/4095/docs/iroh/defaults/prod/constant.NA_EAST_RELAY_HOSTNAME.html
@@ -1,2 +1,2 @@
-NA_EAST_RELAY_HOSTNAME in iroh::defaults::prod - Rust NA_EAST_RELAY_HOSTNAME
pub const NA_EAST_RELAY_HOSTNAME: &str = "use1-1.relay.n0.iroh-canary.iroh.link.";
Expand description
Hostname of the default NA east relay.
+NA_EAST_RELAY_HOSTNAME in iroh::defaults::prod - Rust NA_EAST_RELAY_HOSTNAME
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/prod/constant.NA_WEST_RELAY_HOSTNAME.html b/pr/4095/docs/iroh/defaults/prod/constant.NA_WEST_RELAY_HOSTNAME.html
index 96de100f1e..50c38e8e65 100644
--- a/pr/4095/docs/iroh/defaults/prod/constant.NA_WEST_RELAY_HOSTNAME.html
+++ b/pr/4095/docs/iroh/defaults/prod/constant.NA_WEST_RELAY_HOSTNAME.html
@@ -1,2 +1,2 @@
-NA_WEST_RELAY_HOSTNAME in iroh::defaults::prod - Rust NA_WEST_RELAY_HOSTNAME
pub const NA_WEST_RELAY_HOSTNAME: &str = "usw1-1.relay.n0.iroh-canary.iroh.link.";
Expand description
Hostname of the default NA west relay.
+NA_WEST_RELAY_HOSTNAME in iroh::defaults::prod - Rust NA_WEST_RELAY_HOSTNAME
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/prod/fn.default_ap_relay.html b/pr/4095/docs/iroh/defaults/prod/fn.default_ap_relay.html
index 090224c516..bf59800e40 100644
--- a/pr/4095/docs/iroh/defaults/prod/fn.default_ap_relay.html
+++ b/pr/4095/docs/iroh/defaults/prod/fn.default_ap_relay.html
@@ -1,2 +1,2 @@
-default_ap_relay in iroh::defaults::prod - Rust default_ap_relay
pub fn default_ap_relay() -> RelayConfig
Expand description
Get the default RelayConfig for Asia-Pacific
+default_ap_relay in iroh::defaults::prod - Rust default_ap_relay
pub fn default_ap_relay() -> RelayConfig
Expand description
Get the default RelayConfig for Asia-Pacific
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/prod/fn.default_eu_relay.html b/pr/4095/docs/iroh/defaults/prod/fn.default_eu_relay.html
index 782ac0ce62..218fd1dc04 100644
--- a/pr/4095/docs/iroh/defaults/prod/fn.default_eu_relay.html
+++ b/pr/4095/docs/iroh/defaults/prod/fn.default_eu_relay.html
@@ -1,2 +1,2 @@
-default_eu_relay in iroh::defaults::prod - Rust default_eu_relay
pub fn default_eu_relay() -> RelayConfig
Expand description
Get the default RelayConfig for EU.
+default_eu_relay in iroh::defaults::prod - Rust default_eu_relay
pub fn default_eu_relay() -> RelayConfig
Expand description
Get the default RelayConfig for EU.
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/prod/fn.default_na_east_relay.html b/pr/4095/docs/iroh/defaults/prod/fn.default_na_east_relay.html
index c4c3c11b3f..a759cb2a28 100644
--- a/pr/4095/docs/iroh/defaults/prod/fn.default_na_east_relay.html
+++ b/pr/4095/docs/iroh/defaults/prod/fn.default_na_east_relay.html
@@ -1,2 +1,2 @@
-default_na_east_relay in iroh::defaults::prod - Rust default_na_east_relay
pub fn default_na_east_relay() -> RelayConfig
Expand description
Get the default RelayConfig for NA east.
+default_na_east_relay in iroh::defaults::prod - Rust default_na_east_relay
pub fn default_na_east_relay() -> RelayConfig
Expand description
Get the default RelayConfig for NA east.
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/prod/fn.default_na_west_relay.html b/pr/4095/docs/iroh/defaults/prod/fn.default_na_west_relay.html
index 99038cb237..ae8acccf5b 100644
--- a/pr/4095/docs/iroh/defaults/prod/fn.default_na_west_relay.html
+++ b/pr/4095/docs/iroh/defaults/prod/fn.default_na_west_relay.html
@@ -1,2 +1,2 @@
-default_na_west_relay in iroh::defaults::prod - Rust default_na_west_relay
pub fn default_na_west_relay() -> RelayConfig
Expand description
Get the default RelayConfig for NA west.
+default_na_west_relay in iroh::defaults::prod - Rust default_na_west_relay
pub fn default_na_west_relay() -> RelayConfig
Expand description
Get the default RelayConfig for NA west.
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/prod/fn.default_relay_map.html b/pr/4095/docs/iroh/defaults/prod/fn.default_relay_map.html
index c280a1486e..7f8f1ecd6e 100644
--- a/pr/4095/docs/iroh/defaults/prod/fn.default_relay_map.html
+++ b/pr/4095/docs/iroh/defaults/prod/fn.default_relay_map.html
@@ -1,2 +1,2 @@
-default_relay_map in iroh::defaults::prod - Rust default_relay_map
pub fn default_relay_map() -> RelayMap
Expand description
Get the default RelayMap.
+default_relay_map in iroh::defaults::prod - Rust default_relay_map
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html b/pr/4095/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html
index e794463698..47ac0dbf89 100644
--- a/pr/4095/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html
+++ b/pr/4095/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html
@@ -1,2 +1,2 @@
-EU_RELAY_HOSTNAME in iroh::defaults::staging - Rust EU_RELAY_HOSTNAME
pub const EU_RELAY_HOSTNAME: &str = "staging-euw1-1.relay.iroh.network.";
Expand description
Hostname of the default EU relay.
+EU_RELAY_HOSTNAME in iroh::defaults::staging - Rust EU_RELAY_HOSTNAME
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/staging/constant.NA_EAST_RELAY_HOSTNAME.html b/pr/4095/docs/iroh/defaults/staging/constant.NA_EAST_RELAY_HOSTNAME.html
index ec487c4bfa..8d29861412 100644
--- a/pr/4095/docs/iroh/defaults/staging/constant.NA_EAST_RELAY_HOSTNAME.html
+++ b/pr/4095/docs/iroh/defaults/staging/constant.NA_EAST_RELAY_HOSTNAME.html
@@ -1,2 +1,2 @@
-NA_EAST_RELAY_HOSTNAME in iroh::defaults::staging - Rust NA_EAST_RELAY_HOSTNAME
pub const NA_EAST_RELAY_HOSTNAME: &str = "staging-use1-1.relay.iroh.network.";
Expand description
Hostname of the default NA relay.
+NA_EAST_RELAY_HOSTNAME in iroh::defaults::staging - Rust NA_EAST_RELAY_HOSTNAME
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/staging/fn.default_eu_relay.html b/pr/4095/docs/iroh/defaults/staging/fn.default_eu_relay.html
index 772b1dffe8..518ebc22db 100644
--- a/pr/4095/docs/iroh/defaults/staging/fn.default_eu_relay.html
+++ b/pr/4095/docs/iroh/defaults/staging/fn.default_eu_relay.html
@@ -1,2 +1,2 @@
-default_eu_relay in iroh::defaults::staging - Rust default_eu_relay
pub fn default_eu_relay() -> RelayConfig
Expand description
Get the default RelayConfig for EU.
+default_eu_relay in iroh::defaults::staging - Rust default_eu_relay
pub fn default_eu_relay() -> RelayConfig
Expand description
Get the default RelayConfig for EU.
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/staging/fn.default_na_east_relay.html b/pr/4095/docs/iroh/defaults/staging/fn.default_na_east_relay.html
index ae2853e73a..7ef3f83b37 100644
--- a/pr/4095/docs/iroh/defaults/staging/fn.default_na_east_relay.html
+++ b/pr/4095/docs/iroh/defaults/staging/fn.default_na_east_relay.html
@@ -1,2 +1,2 @@
-default_na_east_relay in iroh::defaults::staging - Rust default_na_east_relay
pub fn default_na_east_relay() -> RelayConfig
Expand description
Get the default RelayConfig for NA east.
+default_na_east_relay in iroh::defaults::staging - Rust default_na_east_relay
pub fn default_na_east_relay() -> RelayConfig
Expand description
Get the default RelayConfig for NA east.
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/staging/fn.default_relay_map.html b/pr/4095/docs/iroh/defaults/staging/fn.default_relay_map.html
index 6e313633fd..a0c5a3dd13 100644
--- a/pr/4095/docs/iroh/defaults/staging/fn.default_relay_map.html
+++ b/pr/4095/docs/iroh/defaults/staging/fn.default_relay_map.html
@@ -1,2 +1,2 @@
-default_relay_map in iroh::defaults::staging - Rust default_relay_map
pub fn default_relay_map() -> RelayMap
Expand description
Get the default RelayMap.
+default_relay_map in iroh::defaults::staging - Rust default_relay_map
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/defaults/staging/index.html b/pr/4095/docs/iroh/defaults/staging/index.html
index f18c91dda2..d098e22f9c 100644
--- a/pr/4095/docs/iroh/defaults/staging/index.html
+++ b/pr/4095/docs/iroh/defaults/staging/index.html
@@ -1,4 +1,4 @@
-iroh::defaults::staging - Rust Module staging
Expand description
Staging configuration.
+iroh::defaults::staging - Rust Module staging
Expand description
Staging configuration.
Used by tests and might have incompatible changes deployed
Note: we have staging servers in EU and NA, but no corresponding staging server for AP at this time.
Constants§
- EU_
RELAY_HOSTNAME - Hostname of the default EU relay.
- NA_
EAST_RELAY_HOSTNAME - Hostname of the default NA relay.
Functions§
- default_
eu_relay - Get the default
RelayConfig for EU. - default_
na_east_relay - Get the default
RelayConfig for NA east. - default_
relay_map - Get the default
RelayMap.
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html b/pr/4095/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html
index 20b772586c..51a4583aff 100644
--- a/pr/4095/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html
+++ b/pr/4095/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html
@@ -1,2 +1,2 @@
-ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust ENV_FORCE_STAGING_RELAYS
pub const ENV_FORCE_STAGING_RELAYS: &str = "IROH_FORCE_STAGING_RELAYS";
Expand description
Environment variable to force the use of staging relays.
+ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust ENV_FORCE_STAGING_RELAYS
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/endpoint/enum.BindError.html b/pr/4095/docs/iroh/endpoint/enum.BindError.html
index a7705c0fdf..da32b72714 100644
--- a/pr/4095/docs/iroh/endpoint/enum.BindError.html
+++ b/pr/4095/docs/iroh/endpoint/enum.BindError.html
@@ -1,4 +1,4 @@
-BindError in iroh::endpoint - Rust BindError
§AddressLookup
§InvalidCryptoProvider
Fields
§meta: MetaCaptured call-site metadata
§TlsConfigError
Trait Implementations§
Source§impl Error for BindError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<AddressLookupBuilderError> for BindError
Source§fn from(source: AddressLookupBuilderError) -> Self
Converts to this type from the input type.Source§impl From<TlsConfigError> for BindError
Source§fn from(source: TlsConfigError) -> Self
Converts to this type from the input type.Source§impl StackError for BindError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for BindError
§impl !RefUnwindSafe for BindError
§impl Send for BindError
§impl Sync for BindError
§impl Unpin for BindError
§impl !UnwindSafe for BindError
Blanket Implementations§
Trait Implementations§
Source§impl Error for BindError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<AddressLookupBuilderError> for BindError
Source§fn from(source: AddressLookupBuilderError) -> Self
Converts to this type from the input type.Source§impl From<TlsConfigError> for BindError
Source§fn from(source: TlsConfigError) -> Self
Converts to this type from the input type.Source§impl StackError for BindError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for BindError
§impl !RefUnwindSafe for BindError
§impl Send for BindError
§impl Sync for BindError
§impl Unpin for BindError
§impl !UnwindSafe for BindError
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/4095/docs/iroh/endpoint/enum.ConnectError.html b/pr/4095/docs/iroh/endpoint/enum.ConnectError.html
index cdaef9776f..15842c8baf 100644
--- a/pr/4095/docs/iroh/endpoint/enum.ConnectError.html
+++ b/pr/4095/docs/iroh/endpoint/enum.ConnectError.html
@@ -1,4 +1,4 @@
-ConnectError in iroh::endpoint - Rust ConnectError
#[non_exhaustive]pub enum ConnectError {
+ConnectError in iroh::endpoint - Rust ConnectError
#[non_exhaustive]pub enum ConnectError {
Connect {
source: ConnectWithOptsError,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for ConnectError
Source§impl Display for ConnectError
Source§impl Error for ConnectError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<ConnectError> for AnyError
Source§fn from(value: ConnectError) -> AnyError
Converts to this type from the input type.Source§impl From<ConnectWithOptsError> for ConnectError
Source§fn from(source: ConnectWithOptsError) -> Self
Converts to this type from the input type.Source§impl From<ConnectingError> for ConnectError
Source§fn from(source: ConnectingError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for ConnectError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl StackError for ConnectError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl !Freeze for ConnectError
§impl !RefUnwindSafe for ConnectError
§impl Send for ConnectError
§impl Sync for ConnectError
§impl Unpin for ConnectError
§impl !UnwindSafe for ConnectError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ConnectError
Source§impl Display for ConnectError
Source§impl Error for ConnectError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<ConnectError> for AnyError
Source§fn from(value: ConnectError) -> AnyError
Converts to this type from the input type.Source§impl From<ConnectWithOptsError> for ConnectError
Source§fn from(source: ConnectWithOptsError) -> Self
Converts to this type from the input type.Source§impl From<ConnectingError> for ConnectError
Source§fn from(source: ConnectingError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for ConnectError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl StackError for ConnectError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl !Freeze for ConnectError
§impl !RefUnwindSafe for ConnectError
§impl Send for ConnectError
§impl Sync for ConnectError
§impl Unpin for ConnectError
§impl !UnwindSafe for ConnectError
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/4095/docs/iroh/endpoint/enum.ConnectWithOptsError.html b/pr/4095/docs/iroh/endpoint/enum.ConnectWithOptsError.html
index c9c0c85ce8..d30eb2f137 100644
--- a/pr/4095/docs/iroh/endpoint/enum.ConnectWithOptsError.html
+++ b/pr/4095/docs/iroh/endpoint/enum.ConnectWithOptsError.html
@@ -1,4 +1,4 @@
-ConnectWithOptsError in iroh::endpoint - Rust ConnectWithOptsError
#[non_exhaustive]pub enum ConnectWithOptsError {
+ConnectWithOptsError in iroh::endpoint - Rust ConnectWithOptsError
#[non_exhaustive]pub enum ConnectWithOptsError {
SelfConnect {
meta: Meta,
},
@@ -27,7 +27,7 @@
§meta: MetaCaptured call-site metadata
§LocallyRejected
Fields
§meta: MetaCaptured call-site metadata
§EndpointClosed
Fields
§meta: MetaCaptured call-site metadata
-Trait Implementations§
Source§impl Debug for ConnectWithOptsError
Source§impl Display for ConnectWithOptsError
Source§impl Error for ConnectWithOptsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<ConnectError> for ConnectWithOptsError
Source§fn from(source: QuicConnectError) -> Self
Converts to this type from the input type.Source§impl From<ConnectWithOptsError> for AnyError
Source§fn from(value: ConnectWithOptsError) -> AnyError
Converts to this type from the input type.Source§impl From<ConnectWithOptsError> for ConnectError
Source§fn from(source: ConnectWithOptsError) -> Self
Converts to this type from the input type.Source§impl From<Error> for ConnectWithOptsError
Source§fn from(source: AddressLookupError) -> Self
Converts to this type from the input type.Source§impl StackError for ConnectWithOptsError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ConnectWithOptsError
§impl !RefUnwindSafe for ConnectWithOptsError
§impl Send for ConnectWithOptsError
§impl Sync for ConnectWithOptsError
§impl Unpin for ConnectWithOptsError
§impl !UnwindSafe for ConnectWithOptsError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ConnectWithOptsError
Source§impl Display for ConnectWithOptsError
Source§impl Error for ConnectWithOptsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<ConnectError> for ConnectWithOptsError
Source§fn from(source: QuicConnectError) -> Self
Converts to this type from the input type.Source§impl From<ConnectWithOptsError> for AnyError
Source§fn from(value: ConnectWithOptsError) -> AnyError
Converts to this type from the input type.Source§impl From<ConnectWithOptsError> for ConnectError
Source§fn from(source: ConnectWithOptsError) -> Self
Converts to this type from the input type.Source§impl From<Error> for ConnectWithOptsError
Source§fn from(source: AddressLookupError) -> Self
Converts to this type from the input type.Source§impl StackError for ConnectWithOptsError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ConnectWithOptsError
§impl !RefUnwindSafe for ConnectWithOptsError
§impl Send for ConnectWithOptsError
§impl Sync for ConnectWithOptsError
§impl Unpin for ConnectWithOptsError
§impl !UnwindSafe for ConnectWithOptsError
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/4095/docs/iroh/endpoint/enum.ConnectingError.html b/pr/4095/docs/iroh/endpoint/enum.ConnectingError.html
index 362ef488c5..81c9e1faca 100644
--- a/pr/4095/docs/iroh/endpoint/enum.ConnectingError.html
+++ b/pr/4095/docs/iroh/endpoint/enum.ConnectingError.html
@@ -19,7 +19,7 @@
§InternalConsistencyError
Fields
§source: RemoteStateActorStoppedErrorPrivate source type, cannot be created publicly.
§meta: MetaCaptured call-site metadata
§LocallyRejected
Fields
§meta: MetaCaptured call-site metadata
-Trait Implementations§
Source§impl Clone for ConnectingError
Source§fn clone(&self) -> ConnectingError
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for ConnectingError
Source§impl Display for ConnectingError
Source§impl Error for ConnectingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<AuthenticationError> for ConnectingError
Source§fn from(source: AuthenticationError) -> Self
Converts to this type from the input type.Source§impl From<ConnectingError> for AcceptError
Source§fn from(source: ConnectingError) -> Self
Converts to this type from the input type.Source§impl From<ConnectingError> for AnyError
Source§fn from(value: ConnectingError) -> AnyError
Converts to this type from the input type.Source§impl From<ConnectingError> for ConnectError
Source§fn from(source: ConnectingError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for ConnectingError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl StackError for ConnectingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl !Freeze for ConnectingError
§impl !RefUnwindSafe for ConnectingError
§impl Send for ConnectingError
§impl Sync for ConnectingError
§impl Unpin for ConnectingError
§impl !UnwindSafe for ConnectingError
Blanket Implementations§
Trait Implementations§
Source§impl Clone for ConnectingError
Source§fn clone(&self) -> ConnectingError
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for ConnectingError
Source§impl Display for ConnectingError
Source§impl Error for ConnectingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<AuthenticationError> for ConnectingError
Source§fn from(source: AuthenticationError) -> Self
Converts to this type from the input type.Source§impl From<ConnectingError> for AcceptError
Source§fn from(source: ConnectingError) -> Self
Converts to this type from the input type.Source§impl From<ConnectingError> for AnyError
Source§fn from(value: ConnectingError) -> AnyError
Converts to this type from the input type.Source§impl From<ConnectingError> for ConnectError
Source§fn from(source: ConnectingError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for ConnectingError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl StackError for ConnectingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl !Freeze for ConnectingError
§impl !RefUnwindSafe for ConnectingError
§impl Send for ConnectingError
§impl Sync for ConnectingError
§impl Unpin for ConnectingError
§impl !UnwindSafe for ConnectingError
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/4095/docs/iroh/endpoint/enum.ConnectionError.html b/pr/4095/docs/iroh/endpoint/enum.ConnectionError.html
index 534c1b2968..95b0175a01 100644
--- a/pr/4095/docs/iroh/endpoint/enum.ConnectionError.html
+++ b/pr/4095/docs/iroh/endpoint/enum.ConnectionError.html
@@ -21,7 +21,7 @@ and [TransportConfig::keep_alive_interval()].
§LocallyClosed
The local application closed the connection
§CidsExhausted
The connection could not be created because not enough of the CID space is available
Try using longer connection IDs.
-Trait Implementations§
§impl Clone for ConnectionError
§fn clone(&self) -> ConnectionError
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for ConnectionError
§impl Display for ConnectionError
§impl Error for ConnectionError
§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Close> for ConnectionError
§fn from(x: Close) -> ConnectionError
Converts to this type from the input type.§impl From<CloseReason> for ConnectionError
§fn from(value: CloseReason) -> ConnectionError
Converts to this type from the input type.Source§impl From<ConnectionError> for AcceptError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for AlpnError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for ConnectError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for ConnectingError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.§impl From<ConnectionError> for ReadError
§fn from(source: ConnectionError) -> ReadError
Converts to this type from the input type.§impl From<ConnectionError> for ResetError
§fn from(source: ConnectionError) -> ResetError
Converts to this type from the input type.§impl From<ConnectionError> for SendDatagramError
§fn from(source: ConnectionError) -> SendDatagramError
Converts to this type from the input type.§impl From<ConnectionError> for StoppedError
§fn from(source: ConnectionError) -> StoppedError
Converts to this type from the input type.§impl From<ConnectionError> for WriteError
§fn from(source: ConnectionError) -> WriteError
Converts to this type from the input type.§impl From<Error> for ConnectionError
§fn from(source: Error) -> ConnectionError
Converts to this type from the input type.§impl PartialEq for ConnectionError
§fn eq(&self, other: &ConnectionError) -> bool
Tests for self and other values to be equal, and is used by ==.Trait Implementations§
§impl Clone for ConnectionError
§fn clone(&self) -> ConnectionError
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for ConnectionError
§impl Display for ConnectionError
§impl Error for ConnectionError
§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Close> for ConnectionError
§fn from(x: Close) -> ConnectionError
Converts to this type from the input type.§impl From<CloseReason> for ConnectionError
§fn from(value: CloseReason) -> ConnectionError
Converts to this type from the input type.Source§impl From<ConnectionError> for AcceptError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for AlpnError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for ConnectError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for ConnectingError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.§impl From<ConnectionError> for ReadError
§fn from(source: ConnectionError) -> ReadError
Converts to this type from the input type.§impl From<ConnectionError> for ResetError
§fn from(source: ConnectionError) -> ResetError
Converts to this type from the input type.§impl From<ConnectionError> for SendDatagramError
§fn from(source: ConnectionError) -> SendDatagramError
Converts to this type from the input type.§impl From<ConnectionError> for StoppedError
§fn from(source: ConnectionError) -> StoppedError
Converts to this type from the input type.§impl From<ConnectionError> for WriteError
§fn from(source: ConnectionError) -> WriteError
Converts to this type from the input type.§impl From<Error> for ConnectionError
§fn from(source: Error) -> ConnectionError
Converts to this type from the input type.§impl PartialEq for ConnectionError
§impl Eq for ConnectionError
§impl StructuralPartialEq for ConnectionError
Auto Trait Implementations§
§impl !Freeze for ConnectionError
§impl !RefUnwindSafe for ConnectionError
§impl Send for ConnectionError
§impl Sync for ConnectionError
§impl Unpin for ConnectionError
§impl !UnwindSafe for ConnectionError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/4095/docs/iroh/endpoint/enum.DirectAddrType.html b/pr/4095/docs/iroh/endpoint/enum.DirectAddrType.html
index cc54373afa..47f4bf9932 100644
--- a/pr/4095/docs/iroh/endpoint/enum.DirectAddrType.html
+++ b/pr/4095/docs/iroh/endpoint/enum.DirectAddrType.html
@@ -1,13 +1,14 @@
-DirectAddrType in iroh::endpoint - Rust DirectAddrType
pub enum DirectAddrType {
+DirectAddrType in iroh::endpoint - Rust DirectAddrType
#[non_exhaustive]pub enum DirectAddrType {
Unknown,
Local,
Qad,
Portmapped,
Qad4LocalPort,
+ Config,
}
Expand description
The type of direct address.
These are the various sources or origins from which an iroh endpoint might have found a
possible DirectAddr.
-Variants§
§Unknown
Not yet determined..
+Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.§Unknown
Not yet determined..
§Local
A locally bound socket address.
§Qad
Public internet address discovered via QAD.
When possible an iroh endpoint will perform QAD to discover which is the address
@@ -20,16 +21,17 @@ get a publicly routable direct address.
It is possible to configure iroh to bound to a specific port and independently
configure the router to forward this port to the iroh endpoint. This indicates a
situation like this, which still uses QAD to discover the public address.
-Trait Implementations§
Source§impl Clone for DirectAddrType
Source§fn clone(&self) -> DirectAddrType
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for DirectAddrType
Source§impl Display for DirectAddrType
Source§impl Hash for DirectAddrType
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
+§Config
An address explicitly provided by the user via configuration.
+
Trait Implementations§
Source§impl Clone for DirectAddrType
Source§fn clone(&self) -> DirectAddrType
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for DirectAddrType
Source§impl Display for DirectAddrType
Source§impl Hash for DirectAddrType
Source§impl Ord for DirectAddrType
Source§impl Ord for DirectAddrType
Source§fn cmp(&self, other: &DirectAddrType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read moreSource§impl PartialEq for DirectAddrType
Source§impl PartialOrd for DirectAddrType
Source§impl PartialEq for DirectAddrType
Source§impl PartialOrd for DirectAddrType
Source§impl Copy for DirectAddrType
Source§impl Eq for DirectAddrType
Source§impl StructuralPartialEq for DirectAddrType
Auto Trait Implementations§
§impl Freeze for DirectAddrType
§impl RefUnwindSafe for DirectAddrType
§impl Send for DirectAddrType
§impl Sync for DirectAddrType
§impl Unpin for DirectAddrType
§impl UnwindSafe for DirectAddrType
Blanket Implementations§
Source§impl Copy for DirectAddrType
Source§impl Eq for DirectAddrType
Source§impl StructuralPartialEq for DirectAddrType
Auto Trait Implementations§
§impl Freeze for DirectAddrType
§impl RefUnwindSafe for DirectAddrType
§impl Send for DirectAddrType
§impl Sync for DirectAddrType
§impl Unpin for DirectAddrType
§impl UnwindSafe for DirectAddrType
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/4095/docs/iroh/endpoint/enum.EndpointError.html b/pr/4095/docs/iroh/endpoint/enum.EndpointError.html
index e79b7ccf47..c722c2918a 100644
--- a/pr/4095/docs/iroh/endpoint/enum.EndpointError.html
+++ b/pr/4095/docs/iroh/endpoint/enum.EndpointError.html
@@ -1,9 +1,9 @@
-EndpointError in iroh::endpoint - Rust EndpointError
#[non_exhaustive]pub enum EndpointError {
+EndpointError in iroh::endpoint - Rust EndpointError
#[non_exhaustive]pub enum EndpointError {
Closed {
meta: Meta,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EndpointError
Source§impl Display for EndpointError
Source§impl Error for EndpointError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EndpointError> for AddressLookupBuilderError
Source§fn from(source: EndpointError) -> Self
Converts to this type from the input type.Source§impl From<EndpointError> for AnyError
Source§fn from(value: EndpointError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EndpointError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EndpointError
§impl RefUnwindSafe for EndpointError
§impl Send for EndpointError
§impl Sync for EndpointError
§impl Unpin for EndpointError
§impl UnwindSafe for EndpointError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EndpointError
Source§impl Display for EndpointError
Source§impl Error for EndpointError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EndpointError> for AddressLookupBuilderError
Source§fn from(source: EndpointError) -> Self
Converts to this type from the input type.Source§impl From<EndpointError> for AnyError
Source§fn from(value: EndpointError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EndpointError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EndpointError
§impl RefUnwindSafe for EndpointError
§impl Send for EndpointError
§impl Sync for EndpointError
§impl Unpin for EndpointError
§impl UnwindSafe for EndpointError
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/4095/docs/iroh/endpoint/enum.QuicConnectError.html b/pr/4095/docs/iroh/endpoint/enum.QuicConnectError.html
index 771951a88b..cf78dbb12b 100644
--- a/pr/4095/docs/iroh/endpoint/enum.QuicConnectError.html
+++ b/pr/4095/docs/iroh/endpoint/enum.QuicConnectError.html
@@ -18,7 +18,7 @@ Errors in the parameters being used to create a new connection
§NoDefaultClientConfig
No default client configuration was set up
Use Endpoint::connect_with to specify a client configuration.
§UnsupportedVersion
The local endpoint does not support the QUIC version specified in the client configuration
-Trait Implementations§
§impl Clone for ConnectError
§fn clone(&self) -> ConnectError
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for ConnectError
§impl Display for ConnectError
§impl Error for ConnectError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<ConnectError> for ConnectWithOptsError
Source§fn from(source: QuicConnectError) -> Self
Converts to this type from the input type.§impl From<UnsupportedVersion> for ConnectError
§fn from(_: UnsupportedVersion) -> ConnectError
Converts to this type from the input type.§impl PartialEq for ConnectError
§fn eq(&self, other: &ConnectError) -> bool
Tests for self and other values to be equal, and is used by ==.Trait Implementations§
§impl Clone for ConnectError
§fn clone(&self) -> ConnectError
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for ConnectError
§impl Display for ConnectError
§impl Error for ConnectError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<ConnectError> for ConnectWithOptsError
Source§fn from(source: QuicConnectError) -> Self
Converts to this type from the input type.§impl From<UnsupportedVersion> for ConnectError
§fn from(_: UnsupportedVersion) -> ConnectError
Converts to this type from the input type.§impl PartialEq for ConnectError
§impl Eq for ConnectError
§impl StructuralPartialEq for ConnectError
Auto Trait Implementations§
§impl Freeze for ConnectError
§impl RefUnwindSafe for ConnectError
§impl Send for ConnectError
§impl Sync for ConnectError
§impl Unpin for ConnectError
§impl UnwindSafe for ConnectError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/4095/docs/iroh/endpoint/enum.RelayMode.html b/pr/4095/docs/iroh/endpoint/enum.RelayMode.html
index f942e8a1e8..46be233bd7 100644
--- a/pr/4095/docs/iroh/endpoint/enum.RelayMode.html
+++ b/pr/4095/docs/iroh/endpoint/enum.RelayMode.html
@@ -1,4 +1,4 @@
-RelayMode in iroh::endpoint - Rust RelayMode
pub enum RelayMode {
+RelayMode in iroh::endpoint - Rust RelayMode
pub enum RelayMode {
Disabled,
Default,
Staging,
@@ -10,14 +10,14 @@ This means that neither listening nor dialing relays will be available.
See crate::defaults::prod for the severs used.
§Staging
Use the staging relay servers from n0.
§Custom(RelayMap)
Use a custom relay map.
-
Implementations§
Source§impl RelayMode
Sourcepub fn custom(map: impl IntoIterator<Item = RelayUrl>) -> Self
Create a custom relay mode from a list of RelayUrls.
+Implementations§
Trait Implementations§
Source§impl Eq for RelayMode
Source§impl StructuralPartialEq for RelayMode
Auto Trait Implementations§
§impl Freeze for RelayMode
§impl RefUnwindSafe for RelayMode
§impl Send for RelayMode
§impl Sync for RelayMode
§impl Unpin for RelayMode
§impl UnwindSafe for RelayMode
Blanket Implementations§
Trait Implementations§
Source§impl Eq for RelayMode
Source§impl StructuralPartialEq for RelayMode
Auto Trait Implementations§
§impl Freeze for RelayMode
§impl RefUnwindSafe for RelayMode
§impl Send for RelayMode
§impl Sync for RelayMode
§impl Unpin for RelayMode
§impl UnwindSafe for RelayMode
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/4095/docs/iroh/endpoint/fn.default_relay_mode.html b/pr/4095/docs/iroh/endpoint/fn.default_relay_mode.html
index 9b6bcf7b41..fc65c9aa0a 100644
--- a/pr/4095/docs/iroh/endpoint/fn.default_relay_mode.html
+++ b/pr/4095/docs/iroh/endpoint/fn.default_relay_mode.html
@@ -1,4 +1,4 @@
-default_relay_mode in iroh::endpoint - Rust default_relay_mode
pub fn default_relay_mode() -> RelayMode
Expand description
Returns the default relay mode.
+default_relay_mode in iroh::endpoint - Rust default_relay_mode
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/endpoint/fn.force_staging_infra.html b/pr/4095/docs/iroh/endpoint/fn.force_staging_infra.html
index 0a99eea7b4..23f68447f3 100644
--- a/pr/4095/docs/iroh/endpoint/fn.force_staging_infra.html
+++ b/pr/4095/docs/iroh/endpoint/fn.force_staging_infra.html
@@ -1,2 +1,2 @@
-force_staging_infra in iroh::endpoint - Rust force_staging_infra
pub fn force_staging_infra() -> bool
Expand description
Returns true if the use of staging relays is forced.
+force_staging_infra in iroh::endpoint - Rust force_staging_infra
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/endpoint/index.html b/pr/4095/docs/iroh/endpoint/index.html
index 44ba3dde1e..7add8ec930 100644
--- a/pr/4095/docs/iroh/endpoint/index.html
+++ b/pr/4095/docs/iroh/endpoint/index.html
@@ -1,4 +1,4 @@
-iroh::endpoint - Rust Module endpoint
Expand description
The Endpoint allows establishing connections to other iroh endpoints.
+iroh::endpoint - Rust Module endpoint
Expand description
The Endpoint allows establishing connections to other iroh endpoints.
The Endpoint is the main API interface to manage a local iroh endpoint. It allows
connecting to and accepting connections from other endpoints. See the module docs for
more details on how iroh connections work.
diff --git a/pr/4095/docs/iroh/endpoint/struct.Builder.html b/pr/4095/docs/iroh/endpoint/struct.Builder.html
index 4b3065bf39..d6dfdf7b4a 100644
--- a/pr/4095/docs/iroh/endpoint/struct.Builder.html
+++ b/pr/4095/docs/iroh/endpoint/struct.Builder.html
@@ -1,13 +1,13 @@
-Builder in iroh::endpoint - Rust Builder
pub struct Builder { /* private fields */ }
Expand description
Builder for Endpoint.
+Builder in iroh::endpoint - Rust Builder
pub struct Builder { /* private fields */ }
Expand description
Builder for Endpoint.
By default the endpoint will generate a new random SecretKey, which will result in a
new EndpointId.
To create the Endpoint call Builder::bind.
-Implementations§
Source§impl Builder
Implementations§
Source§impl Builder
Sourcepub fn empty() -> Self
Creates an empty builder with no address lookup services, and RelayMode::Disabled.
-Sourcepub fn bind_addr<A>(self, addr: A) -> Result<Self, InvalidSocketAddr>where
+
Sourcepub fn empty() -> Self
Creates an empty builder with no address lookup services, and RelayMode::Disabled.
+Sourcepub fn bind_addr<A>(self, addr: A) -> Result<Self, InvalidSocketAddr>
Available on non-wasm_browser only.
Binds an IP socket at the provided socket address.
This is an advanced API to tightly control the sockets used by the endpoint. Most
@@ -48,7 +48,7 @@ port 0 in the socket address assigns a random free port.
.bind_addr("127.0.0.1:0")?
.bind_addr("[::1]:0")?
.bind()
- .await?;Sourcepub fn bind_addr_with_opts<A>(
+ .await?;
Sourcepub fn bind_addr_with_opts<A>(
self,
addr: A,
opts: BindOpts,
@@ -107,16 +107,16 @@ routing with the prefix length and default route as described above does not app
.bind_addr_with_opts("127.0.0.1:0", BindOpts::default().set_prefix_len(24))?
.bind_addr_with_opts("[::1]:0", BindOpts::default().set_prefix_len(48))?
.bind()
- .await?;
Sourcepub fn clear_ip_transports(self) -> Self
Available on non-wasm_browser only.
Removes all IP based transports.
-Sourcepub fn clear_relay_transports(self) -> Self
Removes all relay based transports.
-Sourcepub fn secret_key(self, secret_key: SecretKey) -> Self
Sets a secret key to authenticate with other peers.
+ .await?;Sourcepub fn clear_ip_transports(self) -> Self
Available on non-wasm_browser only.
Removes all IP based transports.
+Sourcepub fn clear_relay_transports(self) -> Self
Removes all relay based transports.
+Sourcepub fn secret_key(self, secret_key: SecretKey) -> Self
Sets a secret key to authenticate with other peers.
This secret key’s public key will be the PublicKey of this endpoint and thus
also its EndpointId
If not set, a new secret key will be generated.
-Sourcepub fn alpns(self, alpn_protocols: Vec<Vec<u8>>) -> Self
Sets the ALPN protocols that this endpoint will accept on incoming connections.
+Sourcepub fn relay_mode(self, relay_mode: RelayMode) -> Self
Sets the relay servers to assist in establishing connectivity.
+Sourcepub fn relay_mode(self, relay_mode: RelayMode) -> Self
Sets the relay servers to assist in establishing connectivity.
Relay servers are used to establish initial connection with another iroh endpoint.
They also perform various functions related to hole punching, see the crate docs
for more details.
@@ -124,11 +124,11 @@ for more details.
When using RelayMode::Custom, the provided relay_map must contain at least one
configured relay endpoint. If an invalid RelayMap is provided bind
will result in an error.
-Sourcepub fn clear_address_lookup(self) -> Self
Removes all Address Lookup services from the builder.
+Sourcepub fn clear_address_lookup(self) -> Self
Removes all Address Lookup services from the builder.
If no Address Lookup is set, connecting to an endpoint without providing its
direct addresses or relay URLs will fail.
See the documentation of the crate::address_lookup::AddressLookup trait for details.
-Sourcepub fn address_lookup(self, address_lookup: impl AddressLookupBuilder) -> Self
Adds an additional Address Lookup for this endpoint.
+Sourcepub fn address_lookup(self, address_lookup: impl AddressLookupBuilder) -> Self
Adds an additional Address Lookup for this endpoint.
Once the endpoint is created the provided AddressLookupBuilder::into_address_lookup will be
called. This allows Address Lookup’s to finalize their configuration by e.g. using
the secret key from the endpoint which can be needed to sign published information.
@@ -139,20 +139,25 @@ will be combined using an internal instance of the
If no Address Lookup is set, connecting to an endpoint without providing its
direct addresses or relay URLs will fail.
See the documentation of the crate::address_lookup::AddressLookup trait for details.
-Sourcepub fn addr_filter(self, filter: AddrFilter) -> Self
Sets the address filter applied to all address data before publishing.
+Sourcepub fn addr_filter(self, filter: AddrFilter) -> Self
Sets the address filter applied to all address data before publishing.
This filter is applied once, at the ConcurrentAddressLookup level, before
distributing data to any individual address lookup service. This ensures
consistent filtering regardless of how the services configured.
-Sourcepub fn clear_addr_filter(self) -> Self
Clears the address filter, allowing all addresses to be published.
+Sourcepub fn clear_addr_filter(self) -> Self
Clears the address filter, allowing all addresses to be published.
This removes any filter previously set via Self::addr_filter, including
filters set by presets.
-Sourcepub fn user_data_for_address_lookup(self, user_data: UserData) -> Self
Sets the initial user-defined data to be published in Address Lookup’s for this node.
+Sourcepub fn user_data_for_address_lookup(self, user_data: UserData) -> Self
Sets the initial user-defined data to be published in Address Lookup’s for this node.
When using Address Lookup’s, this string of UserData will be published together
with the endpoint’s addresses and relay URL. When other endpoints discover this endpoint,
they retrieve the UserData in addition to the addressing info.
Iroh itself does not interpret the user-defined data in any way, it is purely left
for applications to parse and use.
-Sourcepub fn transport_config(self, transport_config: QuicTransportConfig) -> Self
Sets a custom QuicTransportConfig for this endpoint.
+Sourcepub fn external_addr(self, addr: SocketAddr) -> Self
Adds an external address on which this endpoint is directly reachable.
+This address will be advertised to peers together with any discovered external addresses
+and will be used in NAT traversal and to establish direct connections.
+Can be called multiple times. See also Endpoint::add_external_addr for
+adding addresses at runtime.
+Sourcepub fn transport_config(self, transport_config: QuicTransportConfig) -> Self
Sets a custom QuicTransportConfig for this endpoint.
The transport config contains parameters governing the QUIC state machine.
If unset, the default config is used. Default values should be suitable for most
internet applications. Applications protocols which forbid remotely-initiated
@@ -160,37 +165,37 @@ streams should set max_concurrent_bidi_streams and max_concur
zero.
Please be aware that changing some settings may have adverse effects on establishing
and maintaining direct connections.
-Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
Optionally sets a custom DNS resolver to use for this endpoint.
+Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
Optionally sets a custom DNS resolver to use for this endpoint.
The DNS resolver is used to resolve relay hostnames, and endpoint addresses if
crate::address_lookup::DnsAddressLookup is configured.
By default, a new DNS resolver is created which is configured to use the
host system’s DNS configuration. You can pass a custom instance of DnsResolver
here to use a differently configured DNS resolver for this endpoint, or to share
a DnsResolver between multiple endpoints.
-Sourcepub fn proxy_url(self, url: Url) -> Self
Sets an explicit proxy url to proxy all HTTP(S) traffic through.
-Sourcepub fn proxy_from_env(self) -> Self
Sets the proxy url from the environment, in this order:
+Sourcepub fn proxy_url(self, url: Url) -> Self
Sets an explicit proxy url to proxy all HTTP(S) traffic through.
+Sourcepub fn proxy_from_env(self) -> Self
Sets the proxy url from the environment, in this order:
HTTP_PROXY
http_proxy
HTTPS_PROXY
https_proxy
-Sourcepub fn ca_roots_config(self, ca_roots_config: CaRootsConfig) -> Self
Sets the trusted CA root certificates for non-iroh TLS connections.
+Sourcepub fn ca_roots_config(self, ca_roots_config: CaRootsConfig) -> Self
Sets the trusted CA root certificates for non-iroh TLS connections.
These Certificate Authority roots are used as trust anchors for verifying
the validity of TLS certificates presented by external services, such as
iroh relays, pkarr servers, or DNS-over-HTTPS resolvers.
They don’t need to be trusted for the integrity or authenticity of native
iroh connections, which rely on iroh’s own cryptographic authentication mechanisms.
-Sourcepub fn keylog(self, keylog: bool) -> Self
Enables saving the TLS pre-master key for connections.
+Sourcepub fn keylog(self, keylog: bool) -> Self
Enables saving the TLS pre-master key for connections.
This key should normally remain secret but can be useful to debug networking issues
by decrypting captured traffic.
If keylog is true then setting the SSLKEYLOGFILE environment variable to a
filename will result in this file being used to log the TLS pre-master keys.
-Sourcepub fn max_tls_tickets(self, n: usize) -> Self
Set the maximum number of TLS tickets to cache.
+Sourcepub fn max_tls_tickets(self, n: usize) -> Self
Set the maximum number of TLS tickets to cache.
Set this to a larger value if you want to do 0rtt connections to a large
number of clients.
The default is 256, taking about 150 KiB in memory.
-Sourcepub fn crypto_provider(self, crypto_provider: Arc<CryptoProvider>) -> Self
Specify the rustls cryptography to use for all TLS operations.
+Sourcepub fn crypto_provider(self, crypto_provider: Arc<CryptoProvider>) -> Self
Specify the rustls cryptography to use for all TLS operations.
This includes
- TLS for encryption and authentication of iroh connections themselves, but also
@@ -201,17 +206,17 @@ number of clients.
The two most common crypto providers in use today are ring as well as aws-lc-rs.
If either the ring or aws-lc-rs feature is set in iroh, this function doesn’t need to be called.
If none of these features are set, then calling this function in the builder is mandatory.
-
Sourcepub fn hooks(self, hooks: impl EndpointHooks + 'static) -> Self
Install hooks onto the endpoint.
+Sourcepub fn hooks(self, hooks: impl EndpointHooks + 'static) -> Self
Install hooks onto the endpoint.
Endpoint hooks intercept the connection establishment process of an Endpoint.
You can install multiple EndpointHooks by calling this function multiple times.
Order matters: hooks are invoked in the order they were installed onto the endpoint
builder. Once a hook returns reject, further processing
is aborted and other hooks won’t be invoked.
See EndpointHooks for details on the possible interception points in the connection lifecycle.
-Sourcepub fn portmapper_config(self, config: PortmapperConfig) -> Self
Configures the portmapper service (UPnP, PCP, NAT-PMP).
+Sourcepub fn portmapper_config(self, config: PortmapperConfig) -> Self
Configures the portmapper service (UPnP, PCP, NAT-PMP).
Defaults to PortmapperConfig::Enabled.
-Sourcepub fn add_custom_transport(self, factory: Arc<dyn CustomTransport>) -> Self
Available on crate feature unstable-custom-transports only.
Adds a custom transport
-Sourcepub fn transport_bias(self, kind: AddrKind, bias: TransportBias) -> Self
Sets the transport bias for a specific address kind.
+Sourcepub fn add_custom_transport(self, factory: Arc<dyn CustomTransport>) -> Self
Available on crate feature unstable-custom-transports only.
Adds a custom transport
+Sourcepub fn transport_bias(self, kind: AddrKind, bias: TransportBias) -> Self
Sets the transport bias for a specific address kind.
Transport bias controls how different transport types are prioritized during
path selection. By default:
diff --git a/pr/4095/docs/iroh/endpoint/struct.ConnectOptions.html b/pr/4095/docs/iroh/endpoint/struct.ConnectOptions.html
index 96eb0abde5..bccefda098 100644
--- a/pr/4095/docs/iroh/endpoint/struct.ConnectOptions.html
+++ b/pr/4095/docs/iroh/endpoint/struct.ConnectOptions.html
@@ -1,12 +1,12 @@
-ConnectOptions in iroh::endpoint - Rust ConnectOptions
pub struct ConnectOptions { /* private fields */ }
Expand description
Options for the Endpoint::connect_with_opts function.
-Implementations§
Source§impl ConnectOptions
Sourcepub fn new() -> Self
Initializes new connection options.
+ConnectOptions in iroh::endpoint - Rust ConnectOptions
pub struct ConnectOptions { /* private fields */ }
Expand description
Options for the Endpoint::connect_with_opts function.
+Implementations§
Source§impl ConnectOptions
Sourcepub fn new() -> Self
Initializes new connection options.
By default, the connection will use the same options
as Endpoint::connect, e.g. a default QuicTransportConfig.
-Sourcepub fn with_transport_config(
+
Sourcepub fn with_transport_config(
self,
transport_config: QuicTransportConfig,
) -> Self
Sets the QUIC transport config options for this connection.
-Sourcepub fn with_additional_alpns(self, alpns: Vec<Vec<u8>>) -> Self
Sets ALPN identifiers that should be signaled as supported on connection, in
+
Sourcepub fn with_additional_alpns(self, alpns: Vec<Vec<u8>>) -> Self
Sets ALPN identifiers that should be signaled as supported on connection, in
addition to the main ALPN identifier used in Endpoint::connect_with_opts.
This allows connecting to servers that may only support older versions of your
protocol. In this case, you would add the older ALPN identifiers with this
@@ -20,7 +20,7 @@ list or the main ALPN identifiers on the accept side, see the endpoint
builder’s Builder::alpns function.
-Trait Implementations§
Source§impl Clone for ConnectOptions
Source§fn clone(&self) -> ConnectOptions
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for ConnectOptions
Source§impl Default for ConnectOptions
Source§fn default() -> ConnectOptions
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConnectOptions
§impl !RefUnwindSafe for ConnectOptions
§impl Send for ConnectOptions
§impl Sync for ConnectOptions
§impl Unpin for ConnectOptions
§impl !UnwindSafe for ConnectOptions
Blanket Implementations§
Trait Implementations§
Source§impl Clone for ConnectOptions
Source§fn clone(&self) -> ConnectOptions
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for ConnectOptions
Source§impl Default for ConnectOptions
Source§fn default() -> ConnectOptions
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConnectOptions
§impl !RefUnwindSafe for ConnectOptions
§impl Send for ConnectOptions
§impl Sync for ConnectOptions
§impl Unpin for ConnectOptions
§impl !UnwindSafe for ConnectOptions
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/4095/docs/iroh/endpoint/struct.DirectAddr.html b/pr/4095/docs/iroh/endpoint/struct.DirectAddr.html
index 0d5ee22d4c..3d0197ee70 100644
--- a/pr/4095/docs/iroh/endpoint/struct.DirectAddr.html
+++ b/pr/4095/docs/iroh/endpoint/struct.DirectAddr.html
@@ -1,4 +1,4 @@
-DirectAddr in iroh::endpoint - Rust DirectAddr
pub struct DirectAddr {
+DirectAddr in iroh::endpoint - Rust DirectAddr
pub struct DirectAddr {
pub addr: SocketAddr,
pub typ: DirectAddrType,
}
Expand description
A direct address on which an iroh-endpoint might be contactable.
@@ -9,16 +9,16 @@ iroh endpoint, see Fields§§addr: SocketAddrThe address.
§typ: DirectAddrTypeThe origin of this direct address.
-Trait Implementations§
Source§impl Clone for DirectAddr
Source§fn clone(&self) -> DirectAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for DirectAddr
Source§impl Hash for DirectAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
+Trait Implementations§
Source§impl Clone for DirectAddr
Source§fn clone(&self) -> DirectAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for DirectAddr
Source§impl Hash for DirectAddr
Source§impl Ord for DirectAddr
Source§impl Ord for DirectAddr
Source§fn cmp(&self, other: &DirectAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read moreSource§impl PartialEq for DirectAddr
Source§impl PartialOrd for DirectAddr
Source§impl PartialEq for DirectAddr
Source§impl PartialOrd for DirectAddr
Source§impl Eq for DirectAddr
Source§impl StructuralPartialEq for DirectAddr
Auto Trait Implementations§
§impl Freeze for DirectAddr
§impl RefUnwindSafe for DirectAddr
§impl Send for DirectAddr
§impl Sync for DirectAddr
§impl Unpin for DirectAddr
§impl UnwindSafe for DirectAddr
Blanket Implementations§
Source§impl Eq for DirectAddr
Source§impl StructuralPartialEq for DirectAddr
Auto Trait Implementations§
§impl Freeze for DirectAddr
§impl RefUnwindSafe for DirectAddr
§impl Send for DirectAddr
§impl Sync for DirectAddr
§impl Unpin for DirectAddr
§impl UnwindSafe for DirectAddr
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/4095/docs/iroh/endpoint/struct.Endpoint.html b/pr/4095/docs/iroh/endpoint/struct.Endpoint.html
index 67254b31a4..083ea1e2ac 100644
--- a/pr/4095/docs/iroh/endpoint/struct.Endpoint.html
+++ b/pr/4095/docs/iroh/endpoint/struct.Endpoint.html
@@ -1,4 +1,4 @@
-Endpoint in iroh::endpoint - Rust Endpoint
pub struct Endpoint { /* private fields */ }
Expand description
Controls an iroh endpoint, establishing connections with other endpoints.
+Endpoint in iroh::endpoint - Rust Endpoint
pub struct Endpoint { /* private fields */ }
Expand description
Controls an iroh endpoint, establishing connections with other endpoints.
This is the main API interface to create connections to, and accept connections from
other iroh endpoints. The connections are peer-to-peer and encrypted, a Relay server is
used to make the connections reliable. See the [crate docs] for a more detailed
@@ -16,23 +16,28 @@ the peer are created using the Connection::open_uni and Connection::open_bi functions.
Note that due to the light-weight properties of streams a stream will only be accepted
once the initiating peer has sent some data on it.
-Implementations§
Source§impl Endpoint
Implementations§
Source§impl Endpoint
Sourcepub fn set_alpns(&self, alpns: Vec<Vec<u8>>)
Sets the list of accepted ALPN protocols.
This will only affect new incoming connections.
Note that this overrides the current list of ALPNs.
If the endpoint is closed, this method will log a warning and ignore
the request to set new ALPNs.
-Sourcepub async fn insert_relay(
+
Sourcepub async fn insert_relay(
&self,
relay: RelayUrl,
config: Arc<RelayConfig>,
) -> Option<Arc<RelayConfig>>
Sourcepub async fn remove_relay(&self, relay: &RelayUrl) -> Option<Arc<RelayConfig>>
Sourcepub async fn remove_relay(&self, relay: &RelayUrl) -> Option<Arc<RelayConfig>>
Sourcepub async fn add_external_addr(&self, addr: SocketAddr)
Adds an external address on which this endpoint is directly reachable.
+This address will be advertised to peers together with any discovered external addresses
+and will be used in NAT traversal and to establish direct connections.
+See also Builder::external_addr for setting addresses at build time.
+Sourcepub async fn remove_external_addr(&self, addr: &SocketAddr) -> bool
Removes a configured external address. Returns true if it was present.
+Sourcepub async fn connect(
&self,
endpoint_addr: impl Into<EndpointAddr>,
alpn: &[u8],
@@ -52,7 +57,7 @@ connection attempt will fail with an error.
The alpn, or application-level protocol identifier, is also required. The remote
endpoint must support this alpn, otherwise the connection attempt will fail with
an error.
-
Sourcepub async fn connect_with_opts(
+
Sourcepub async fn connect_with_opts(
&self,
endpoint_addr: impl Into<EndpointAddr>,
alpn: &[u8],
@@ -72,17 +77,17 @@ security concerns.
establishing and maintaining direct connections. Carefully test settings you use and
consider this currently as still rather experimental.
-
Sourcepub fn accept(&self) -> Accept<'_> ⓘ
Accepts an incoming connection on the endpoint.
Only connections with the ALPNs configured in Builder::alpns will be accepted.
If multiple ALPNs have been configured the ALPN can be inspected before accepting
the connection using Connecting::alpn.
The returned future will yield None if the endpoint is closed by calling
Endpoint::close.
-Sourcepub fn secret_key(&self) -> &SecretKey
Returns the secret_key of this endpoint.
-Sourcepub fn id(&self) -> EndpointId
Returns the endpoint id of this endpoint.
+Sourcepub fn secret_key(&self) -> &SecretKey
Returns the secret_key of this endpoint.
+Sourcepub fn id(&self) -> EndpointId
Returns the endpoint id of this endpoint.
This ID is the unique addressing information of this endpoint and other peers must know
it to be able to connect to this endpoint.
-Sourcepub fn addr(&self) -> EndpointAddr
Returns the current EndpointAddr.
+
Sourcepub fn addr(&self) -> EndpointAddr
Returns the current EndpointAddr.
As long as the endpoint was able to bind to a network interface, some
local addresses will be available.
The state of other fields depends on the state of networking and connectivity.
@@ -92,7 +97,7 @@ to ensure that the EndpointAddr will contain enough information to
to be dialable by a remote endpoint over the internet.
You can use the Endpoint::watch_addr method to get updates when the EndpointAddr
changes.
-Sourcepub fn watch_addr(&self) -> impl Watcher<Value = EndpointAddr> + use<>
Available on non-wasm_browser only.
Returns a Watcher for the current EndpointAddr for this endpoint.
+Sourcepub fn watch_addr(&self) -> impl Watcher<Value = EndpointAddr> + use<>
Available on non-wasm_browser only.
Returns a Watcher for the current EndpointAddr for this endpoint.
The observed EndpointAddr will have the current RelayUrl and direct addresses.
use iroh::{Endpoint, Watcher, endpoint::presets};
@@ -135,7 +140,7 @@ tokio::spawn(endpoint_closed.run_until(async move {
}));
// Do fancy things, then close the endpoint.
// Our task above will stop even if there are still clones of `Endpoint` alive somewhere.
-endpoint.close().await;
Sourcepub async fn online(&self)
A convenience method that waits for the endpoint to be considered “online”.
This currently means at least one relay server was connected,
and at least one local IP address is available.
Even if no relays are configured, this will still wait for a relay connection.
@@ -168,25 +173,25 @@ let endpoint = Endpoint::bind().await;
// After this await returns we have a connection to at least one relay
// and holepunching should work as expected.
endpoint.online().await;
-}Sourcepub fn bound_sockets(&self) -> Vec<SocketAddr>
Available on non-wasm_browser only.
Returns the local socket addresses on which the underlying sockets are bound.
+}
Sourcepub fn bound_sockets(&self) -> Vec<SocketAddr>
Available on non-wasm_browser only.
Returns the local socket addresses on which the underlying sockets are bound.
The Endpoint always binds on an IPv4 address and also tries to bind on an IPv6
address if available.
-Sourcepub fn dns_resolver(&self) -> Result<&DnsResolver, EndpointError>
Available on non-wasm_browser only.
Returns the DNS resolver used in this Endpoint.
+Sourcepub fn dns_resolver(&self) -> Result<&DnsResolver, EndpointError>
Available on non-wasm_browser only.
Sourcepub fn tls_config(&self) -> &ClientConfig
Returns the [rustls::ClientConfig] used by the endpoint for connecting to external services.
+Sourcepub fn tls_config(&self) -> &ClientConfig
Returns the [rustls::ClientConfig] used by the endpoint for connecting to external services.
This might be useful for address lookup services or other functions
that want to use the same trust anchors as iroh does for verifying the
validity of TLS certificates presented by external services.
Note that this TLS config is unrelated to how iroh validates the authenticity
of iroh connections itself.
The config is based on the trust anchors set via Builder::ca_roots_config.
-Sourcepub fn address_lookup(&self) -> Result<&ConcurrentAddressLookup, EndpointError>
Returns the Address Lookup service, if configured.
+Sourcepub fn address_lookup(&self) -> Result<&ConcurrentAddressLookup, EndpointError>
Returns the Address Lookup service, if configured.
§Errors
Returns a EndpointError::Closed error if the endpoint is closed.
-Sourcepub fn metrics(&self) -> &EndpointMetrics
Available on crate feature metrics only.
Returns metrics collected for this endpoint.
+Sourcepub fn metrics(&self) -> &EndpointMetrics
Available on crate feature metrics only.
Returns metrics collected for this endpoint.
The endpoint internally collects various metrics about its operation.
The returned EndpointMetrics struct contains all of these metrics.
You can access individual metrics directly by using the public fields:
@@ -256,13 +261,13 @@ registry.write().unwrap().register_all(endpoint.metrics());
.std_context("text")?;
assert!(res.contains(r#"TYPE socket_recv_datagrams counter"#));
-assert!(res.contains(r#"socket_recv_datagrams_total 0"#));Sourcepub async fn remote_info(&self, endpoint_id: EndpointId) -> Option<RemoteInfo>
Returns addressing information about a recently used remote endpoint.
+assert!(res.contains(r#"socket_recv_datagrams_total 0"#));Sourcepub async fn remote_info(&self, endpoint_id: EndpointId) -> Option<RemoteInfo>
Returns addressing information about a recently used remote endpoint.
The returned RemoteInfo contains a list of all transport addresses for the remote
that we know about. This is a snapshot in time and not a watcher.
Returns None if the endpoint doesn’t have information about the remote or if the endpoint is closed.
When remote endpoints are no longer used, our endpoint will keep information around
for a little while, and then drop it. Afterwards, this will return None.
-Sourcepub async fn network_change(&self)
Notifies the system of potential network changes.
+Sourcepub async fn network_change(&self)
Notifies the system of potential network changes.
On many systems iroh is able to detect network changes by itself, however
some systems like android do not expose this functionality to native code.
Android does however provide this functionality to Java code. This
@@ -271,14 +276,14 @@ this.
Even when the network did not change, or iroh was already able to detect
the network change itself, there is no harm in calling this function.
If the endpoint is closed, this method will log a warning and ignore the request.
-Sourcepub fn set_user_data_for_address_lookup(&self, user_data: Option<UserData>)
Sets the initial user-defined data to be published in Address Lookups for this endpoint.
+Sourcepub fn set_user_data_for_address_lookup(&self, user_data: Option<UserData>)
Sets the initial user-defined data to be published in Address Lookups for this endpoint.
If the user-defined data passed to this function is different to the previous one,
the endpoint will republish its endpoint info to the configured Address Lookups.
See also Builder::user_data_for_address_lookup for setting an initial value when
building the endpoint.
If the endpoint is closed, this method will log a warning and ignore the
request.
-Sourcepub async fn close(&self)
Closes the QUIC endpoint and the socket.
This will close any remaining open Connections with an error code
of 0 and an empty reason. Though it is best practice to close those
explicitly before with a custom error code and reason.
@@ -304,8 +309,8 @@ while TCP sockets usually get closed and drained by the operating system in the
kernel during the “Time-Wait” period of the TCP socket.
Be aware however that the underlying UDP sockets are only closed once all clones of
the the respective Endpoint are dropped.
-Sourcepub fn closed(&self) -> EndpointClosed ⓘ
Returns a future that resolves once the endpoint closes.
+Sourcepub fn closed(&self) -> EndpointClosed ⓘ
Returns a future that resolves once the endpoint closes.
The returned future does not contain a clone or reference to the Endpoint,
so keeping the returned future alive does not prevent the endpoint from being dropped.
To run a task and stop it once the endpoint closes, you can use
@@ -314,13 +319,13 @@ so keeping the returned future alive does not prevent the endpoint from being dr
let endpoint = Endpoint::bind(presets::N0).await?;
tokio::spawn(endpoint.closed().run_until(async move {
// the future will be aborted once the endpoint closes.
-}));
Sourcepub fn create_server_config_builder(
+}));
Sourcepub fn create_server_config_builder(
&self,
alpns: Vec<Vec<u8>>,
) -> ServerConfigBuilder
Create a ServerConfigBuilder for this endpoint that includes the given alpns.
Use the ServerConfigBuilder to customize the ServerConfig connection configuration
for a connection accepted using the Incoming::accept_with method.
-
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Endpoint
§impl !RefUnwindSafe for Endpoint
§impl Send for Endpoint
§impl Sync for Endpoint
§impl Unpin for Endpoint
§impl !UnwindSafe for Endpoint
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Endpoint
§impl !RefUnwindSafe for Endpoint
§impl Send for Endpoint
§impl Sync for Endpoint
§impl Unpin for Endpoint
§impl !UnwindSafe for Endpoint
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/4095/docs/iroh/endpoint/struct.EndpointClosed.html b/pr/4095/docs/iroh/endpoint/struct.EndpointClosed.html
index 10e3feec76..373aea8729 100644
--- a/pr/4095/docs/iroh/endpoint/struct.EndpointClosed.html
+++ b/pr/4095/docs/iroh/endpoint/struct.EndpointClosed.html
@@ -1,9 +1,9 @@
-EndpointClosed in iroh::endpoint - Rust EndpointClosed
pub struct EndpointClosed { /* private fields */ }
Expand description
Future returned from Endpoint::closed.
-Implementations§
Source§impl EndpointClosed
Sourcepub async fn run_until<F: Future>(self, fut: F) -> Option<F::Output>
Runs a future to completion, or until the Endpoint is closed.
+EndpointClosed in iroh::endpoint - Rust EndpointClosed
pub struct EndpointClosed { /* private fields */ }
Expand description
Future returned from Endpoint::closed.
+Implementations§
Trait Implementations§
Source§impl Debug for EndpointClosed
Source§impl Future for EndpointClosed
Source§impl<'pin> Unpin for EndpointClosedwhere
+
Trait Implementations§
Source§impl Debug for EndpointClosed
Source§impl Future for EndpointClosed
Source§impl<'pin> Unpin for EndpointClosedwhere
PinnedFieldsOf<__EndpointClosed<'pin>>: Unpin,
Auto Trait Implementations§
§impl !Freeze for EndpointClosed
§impl !RefUnwindSafe for EndpointClosed
§impl Send for EndpointClosed
§impl Sync for EndpointClosed
§impl !UnwindSafe for EndpointClosed
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/4095/docs/iroh/endpoint/struct.VarInt.html b/pr/4095/docs/iroh/endpoint/struct.VarInt.html
index 3673c35ef0..ddddcda11c 100644
--- a/pr/4095/docs/iroh/endpoint/struct.VarInt.html
+++ b/pr/4095/docs/iroh/endpoint/struct.VarInt.html
@@ -13,7 +13,7 @@ An integer less than 2^62
of overflowing.
Trait Implementations§
§impl From<VarInt> for IdleTimeout
§fn from(inner: VarInt) -> IdleTimeout
Converts to this type from the input type.§impl From<VarInt> for IdleTimeout
§fn from(inner: VarInt) -> IdleTimeout
Converts to this type from the input type.§impl Ord for VarInt
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/4095/docs/iroh/metrics/struct.RelayMetrics.html b/pr/4095/docs/iroh/metrics/struct.RelayMetrics.html
index 67308b7cff..c8df8e622b 100644
--- a/pr/4095/docs/iroh/metrics/struct.RelayMetrics.html
+++ b/pr/4095/docs/iroh/metrics/struct.RelayMetrics.html
@@ -1,4 +1,4 @@
-RelayMetrics in iroh::metrics - Rust RelayMetrics
pub struct RelayMetrics {Show 16 fields
+RelayMetrics in iroh::metrics - Rust RelayMetrics
#[non_exhaustive]pub struct RelayMetrics {Show 26 fields
pub bytes_sent: Counter,
pub bytes_recv: Counter,
pub send_packets_sent: Counter,
@@ -15,8 +15,18 @@
pub accepts: Counter,
pub disconnects: Counter,
pub unique_client_keys: Counter,
+ pub clients_inactive_added: Counter,
+ pub clients_inactive_removed: Counter,
+ pub qad_incoming: Counter,
+ pub qad_incoming_error: Counter,
+ pub qad_connections: Counter,
+ pub qad_connections_closed: Counter,
+ pub qad_connections_errored: Counter,
+ pub http_connections: Counter,
+ pub http_connections_closed: Counter,
+ pub http_connections_errored: Counter,
}
Available on crate feature test-utils only.Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.§bytes_sent: CounterBytes sent from a FrameType::SendPacket
§bytes_recv: CounterBytes received from a FrameType::SendPacket
§send_packets_sent: CounterFrameType::SendPacket sent
§send_packets_recv: CounterFrameType::SendPacket received
@@ -32,6 +42,30 @@
§accepts: CounterNumber of times this server has accepted a connection.
§disconnects: CounterNumber of connections we have removed because of an error
§unique_client_keys: CounterNumber of unique client keys per day
+§clients_inactive_added: CounterNumber of times a client was moved into the inactive state.
+A client becomes inactive when a new client connects with the same endpoint id. An inactive
+client can still send messages, but won’t receive anything. If the currently-active client
+disconnects, and if there are inactive clients, the most-recent inactive client becomes
+active again.
+The number of inactive clients at any time is clients_inactive_added - clients_inactive_removed.
+§clients_inactive_removed: CounterNumber of times a client was removed from the inactive state.
+This is increased whenever a client disconnects while being inactive, or if a client is upgraded to be
+active again (happens only when the currently-active client for that endpoint id disconnects).
+See Self::clients_inactive_added for details on when a client becomes inactive.
+§qad_incoming: CounterNumber of incoming QAD connections.
+After completion, each is counted in either qad_incoming_error or qad_connections.
+Thus the number of inflight incomings is qad_incoming - qad_incoming_error - qad_connections.
+§qad_incoming_error: CounterNumber of QAD QUIC connections that aborted before completing the handshake.
+§qad_connections: CounterNumber of accepted QAD QUIC connections.
+The number of active connections is qad_connections - qad_connections_closed.
+§qad_connections_closed: CounterNumber of QAD QUIC connections that disconnected after being accepted.
+§qad_connections_errored: CounterNumber of QAD QUIC connections that disconnected after being accepted, with an error.
+The number is included in qad_connections_closed (not in addition to).
+§http_connections: CounterNumber of accepted HTTP(S) connections.
+The number of active connections at any time is http_connections - http_connections_closed
+§http_connections_closed: CounterNumber of terminated HTTP(S) connections.
+§http_connections_errored: CounterNumber of HTTP(S) connections that terminated with an error.
+The number is included in http_connections_closed (not in addition to).
Trait 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
diff --git a/pr/4095/docs/iroh/struct.RelayConfig.html b/pr/4095/docs/iroh/struct.RelayConfig.html
index b281111e95..8f1f5e8d15 100644
--- a/pr/4095/docs/iroh/struct.RelayConfig.html
+++ b/pr/4095/docs/iroh/struct.RelayConfig.html
@@ -1,16 +1,17 @@
-RelayConfig in iroh - Rust RelayConfig
pub struct RelayConfig {
+RelayConfig in iroh - Rust RelayConfig
#[non_exhaustive]pub struct RelayConfig {
pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
-Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
+Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.§url: RelayUrlThe RelayUrl where this relay server can be dialed.
§quic: Option<RelayQuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
-Trait Implementations§
Source§impl Clone for RelayConfig
Source§fn clone(&self) -> RelayConfig
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RelayConfig
Source§impl<'de> Deserialize<'de> for RelayConfig
Source§fn deserialize<__D>(
+
Implementations§
Source§impl RelayConfig
Sourcepub fn new(url: RelayUrl, quic: Option<RelayQuicConfig>) -> RelayConfig
Creates a new relay configuration with the given URL and optional QUIC config.
+Trait Implementations§
Source§impl Clone for RelayConfig
Source§fn clone(&self) -> RelayConfig
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RelayConfig
Source§impl<'de> Deserialize<'de> for RelayConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RelayConfig, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl Display for RelayConfig
Source§impl From<RelayConfig> for RelayMap
Source§fn from(value: RelayConfig) -> RelayMap
Converts to this type from the input type.Source§impl From<RelayUrl> for RelayConfig
Source§fn from(value: RelayUrl) -> RelayConfig
Converts to this type from the input type.Source§impl FromIterator<RelayConfig> for RelayMap
Source§impl Display for RelayConfig
Source§impl From<RelayConfig> for RelayMap
Source§fn from(value: RelayConfig) -> RelayMap
Converts to this type from the input type.Source§impl From<RelayUrl> for RelayConfig
Source§fn from(value: RelayUrl) -> RelayConfig
Converts to this type from the input type.Source§impl FromIterator<RelayConfig> for RelayMap
Source§fn from_iter<T>(iter: T) -> RelayMapwhere
T: IntoIterator<Item = RelayConfig>,
Creates a value from an iterator. Read moreSource§impl Ord for RelayConfig
Source§fn cmp(&self, other: &RelayConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more1.50.0 · Source§fn clamp(self, min: Self, max: Self) -> Selfwhere
diff --git a/pr/4095/docs/iroh/struct.RelayUrl.html b/pr/4095/docs/iroh/struct.RelayUrl.html
index b91b367a8a..2b9c6cf654 100644
--- a/pr/4095/docs/iroh/struct.RelayUrl.html
+++ b/pr/4095/docs/iroh/struct.RelayUrl.html
@@ -433,7 +433,7 @@ to change the inner later.
Source§impl<'de> Deserialize<'de> for RelayUrl
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<RelayUrl> for RelayConfig
Source§fn from(value: RelayUrl) -> RelayConfig
Converts to this type from the input type.Source§impl From<RelayUrl> for RelayConfig
Source§fn from(value: RelayUrl) -> RelayConfig
Converts to this type from the input type.Source§impl FromIterator<RelayUrl> for RelayMap
Source§fn from_iter<T>(iter: T) -> RelayMapwhere
diff --git a/pr/4095/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/4095/docs/iroh/test_utils/fn.run_relay_server_with.html
index 14ff47dc57..53efffcb69 100644
--- a/pr/4095/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/4095/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,4 +1,4 @@
-run_relay_server_with in iroh::test_utils - Rust run_relay_server_with
pub async fn run_relay_server_with(
+run_relay_server_with in iroh::test_utils - Rust run_relay_server_with
pub async fn run_relay_server_with(
quic: bool,
) -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate features test-utils only.Expand description
Runs a relay server.
If quic is set to true, it will make the appropriate QuicConfig from the generated tls certificates and run the quic server at a random free port.
diff --git a/pr/4095/docs/iroh/test_utils/index.html b/pr/4095/docs/iroh/test_utils/index.html
index b6ecc8faa8..d548c69126 100644
--- a/pr/4095/docs/iroh/test_utils/index.html
+++ b/pr/4095/docs/iroh/test_utils/index.html
@@ -1,2 +1,2 @@
-iroh::test_utils - Rust Module test_utils
Available on crate features test-utils only.Expand description
Internal utilities to support testing.
+iroh::test_utils - Rust Module test_utils
Available on crate features test-utils only.Expand description
Internal utilities to support testing.
Modules§
- test_
transport unstable-custom-transports - In-memory test transport for testing.
Structs§
- Cleanup
DropGuard - A drop guard to clean up test infrastructure.
- DnsPkarr
Server - Handle and drop guard for test DNS and Pkarr servers.
- Qlog
FileGroup - Builder to create one or more related qlog configs.
Functions§
- run_
relay_server - Runs a relay server with QUIC enabled suitable for tests.
- run_
relay_server_with - Runs a relay server.
\ No newline at end of file
diff --git a/pr/4095/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/4095/docs/iroh/test_utils/struct.DnsPkarrServer.html
index 0fd168899b..86a0665916 100644
--- a/pr/4095/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/4095/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -1,4 +1,4 @@
-DnsPkarrServer in iroh::test_utils - Rust DnsPkarrServer
pub struct DnsPkarrServer {
+DnsPkarrServer in iroh::test_utils - Rust DnsPkarrServer