pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;Expand description
The n0 testing DNS node origin, for production.
+pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;Expand description
The n0 testing DNS node origin, for testing.
+Expand description
DNS node discovery for iroh
+wasm_browser only.Expand description
DNS node discovery for iroh
Structs§
- DnsDiscovery
- DNS node discovery
- DnsDiscovery
Builder - Builder for
DnsDiscovery.
Constants§
- N0_
DNS_ NODE_ ORIGIN_ PROD - The n0 testing DNS node origin, for production.
- N0_
DNS_ NODE_ ORIGIN_ STAGING - The n0 testing DNS node origin, for testing.
pub struct DnsDiscovery { /* private fields */ }Expand description
DNS node discovery
+pub struct DnsDiscovery { /* private fields */ }wasm_browser only.Expand description
DNS node discovery
When asked to resolve a NodeId, this service performs a lookup in the Domain Name System (DNS).
It uses the Endpoint’s DNS resolver to query for TXT records under the domain
_iroh.<z32-node-id>.<origin-domain>:
_iroh: is the record name
-<z32-node-id>is theNodeIdencoded inz-base-32format
+<z32-node-id>is theNodeIdencoded in [z-base-32] format<origin-domain>is the node origin domain as set inDnsDiscovery::builder.
Each TXT record returned from the query is expected to contain a string in the format <name>=<value>.
diff --git a/pr/3514/docs/iroh/discovery/dns/struct.DnsDiscoveryBuilder.html b/pr/3514/docs/iroh/discovery/dns/struct.DnsDiscoveryBuilder.html
index 2e1a452634..30944c987b 100644
--- a/pr/3514/docs/iroh/discovery/dns/struct.DnsDiscoveryBuilder.html
+++ b/pr/3514/docs/iroh/discovery/dns/struct.DnsDiscoveryBuilder.html
@@ -1,4 +1,4 @@
-
pub struct DnsDiscoveryBuilder { /* private fields */ }Expand description
Builder for DnsDiscovery.
pub struct DnsDiscoveryBuilder { /* private fields */ }wasm_browser only.Expand description
Builder for DnsDiscovery.
Implementations§
Source§impl DnsDiscoveryBuilder
impl DnsDiscoveryBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Sets the DNS resolver to use.
Sourcepub fn build(self) -> DnsDiscovery
pub fn build(self) -> DnsDiscovery
Builds a DnsDiscovery with the passed DnsResolver.
Modules§
- dns
- DNS node discovery for iroh
- mdns
- A discovery service that uses an mdns-like service to discover local nodes.
- pkarr
- A discovery service which publishes and resolves node information using a pkarr relay.
- static_
provider - A static node discovery to manually add node addressing information.
Structs§
- Concurrent
Discovery - A discovery service that combines multiple discovery sources.
- Discovery
Context - Context about the
Endpointfor discovery services. - Discovery
Item - Node discovery results from
Discoveryservices. - Node
Data - Data about a node that may be published to and resolved from discovery services.
- Node
Info - Information about a node that may be published to and resolved from discovery services.
- User
Data - Under the hood this is a UTF-8 String is no longer than
UserData::MAX_LENGTHbytes.
Enums§
- Discovery
Error - Discovery errors
- Into
Discovery Error - IntoDiscovery errors
- Parse
Error
Traits§
- Discovery
- Node discovery for
super::Endpoint. - Into
Discovery - Trait for structs that can be converted into
Discovery.
Modules§
- dns
Non- wasm_browser - DNS node discovery for iroh
- mdns
discovery-local-network - A discovery service that uses an mdns-like service to discover local nodes.
- pkarr
- A discovery service which publishes and resolves node information using a pkarr relay.
- static_
provider - A static node discovery to manually add node addressing information.
Structs§
- Concurrent
Discovery - A discovery service that combines multiple discovery sources.
- Discovery
Context - Context about the
Endpointfor discovery services. - Discovery
Item - Node discovery results from
Discoveryservices. - Node
Data - Data about a node that may be published to and resolved from discovery services.
- Node
Info - Information about a node that may be published to and resolved from discovery services.
- User
Data - Under the hood this is a UTF-8 String is no longer than
UserData::MAX_LENGTHbytes.
Enums§
- Discovery
Error - Discovery errors
- Into
Discovery Error - IntoDiscovery errors
- Parse
Error
Traits§
- Discovery
- Node discovery for
super::Endpoint. - Into
Discovery - Trait for structs that can be converted into
Discovery.
pub const NAME: &str = "mdns";Expand description
Name of this discovery service.
+pub const NAME: &str = "mdns";discovery-local-network only.Expand description
Name of this discovery service.
Used as the provenance field in DiscoveryItems.
Used in the crate::endpoint::Source::Discovery enum variant as the name.
Expand description
An event emitted from the MdnsDiscovery service.
discovery-local-network only.Expand description
An event emitted from the MdnsDiscovery service.
Variants§
Discovered
A peer was discovered or it’s information was updated.
Fields
last_updated: Option<u64>Optional timestamp when this node address info was last updated.
diff --git a/pr/3514/docs/iroh/discovery/mdns/index.html b/pr/3514/docs/iroh/discovery/mdns/index.html index 4d6f633442..91b5077f4d 100644 --- a/pr/3514/docs/iroh/discovery/mdns/index.html +++ b/pr/3514/docs/iroh/discovery/mdns/index.html @@ -1,4 +1,4 @@ -Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+discovery-local-network only.Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
When MdnsDiscovery is enabled, it’s possible to get a list of the locally discovered nodes by filtering a list of RemoteInfos.
pub struct MdnsDiscovery { /* private fields */ }Expand description
Discovery using swarm-discovery, a variation on mdns
pub struct MdnsDiscovery { /* private fields */ }discovery-local-network only.Expand description
Discovery using swarm-discovery, a variation on mdns
Implementations§
Source§impl MdnsDiscovery
impl MdnsDiscovery
Sourcepub fn builder() -> MdnsDiscoveryBuilder
pub fn builder() -> MdnsDiscoveryBuilder
Returns a MdnsDiscoveryBuilder that implements IntoDiscovery.
Sourcepub async fn subscribe(
&self,
diff --git a/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html b/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html
index 84530b9ce3..70599bcd6e 100644
--- a/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html
+++ b/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html
@@ -1,4 +1,4 @@
-MdnsDiscoveryBuilder in iroh::discovery::mdns - Rust pub struct MdnsDiscoveryBuilder { /* private fields */ }
Expand description
Builder for MdnsDiscovery.
+MdnsDiscoveryBuilder in iroh::discovery::mdns - Rust pub struct MdnsDiscoveryBuilder { /* private fields */ }
Available on crate feature discovery-local-network only.Expand description
Builder for MdnsDiscovery.
Implementations§
Source§impl MdnsDiscoveryBuilder
Sourcepub fn advertise(self, advertise: bool) -> Self
Sets whether this node should advertise its presence.
Default is true.
Sourcepub fn service_name(self, service_name: impl Into<String>) -> Self
Sets a custom service name.
diff --git a/pr/3514/docs/iroh/discovery/pkarr/dht/index.html b/pr/3514/docs/iroh/discovery/pkarr/dht/index.html
index a93b8efb9c..cf1fec8f01 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/dht/index.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/dht/index.html
@@ -1,4 +1,4 @@
-iroh::discovery::pkarr::dht - Rust Expand description
Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
+iroh::discovery::pkarr::dht - Rust Available on crate feature discovery-pkarr-dht only.Expand description
Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
This module contains pkarr-based node discovery for iroh which can use both pkarr
relay servers as well as the Mainline DHT directly. See the pkarr module for an
overview of pkarr.
diff --git a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html
index b8ee24bd00..cfac228a91 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html
@@ -1,4 +1,4 @@
-Builder in iroh::discovery::pkarr::dht - Rust pub struct Builder { /* private fields */ }
Expand description
Builder for DhtDiscovery.
+Builder in iroh::discovery::pkarr::dht - Rust pub struct Builder { /* private fields */ }
Available on crate feature discovery-pkarr-dht only.Expand description
Builder for DhtDiscovery.
By default, publishing to the DHT is enabled, and relay publishing is disabled.
Implementations§
Source§impl Builder
Sourcepub fn secret_key(self, secret_key: SecretKey) -> Self
Sets the secret key to use for signing the DNS packets.
diff --git a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html
index d0d3e4b20b..ed5352b949 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html
@@ -1,4 +1,4 @@
-DhtDiscovery in iroh::discovery::pkarr::dht - Rust pub struct DhtDiscovery(/* private fields */);
Expand description
Pkarr Mainline DHT and relay server node discovery.
+DhtDiscovery in iroh::discovery::pkarr::dht - Rust pub struct DhtDiscovery(/* private fields */);
Available on crate feature discovery-pkarr-dht only.Expand description
Pkarr Mainline DHT and relay server node discovery.
It stores node addresses in DNS records, signed by the node’s private key, and publishes
them to the BitTorrent Mainline DHT. See the pkarr module for more details.
This implements the Discovery trait to be used as a node discovery service which can
diff --git a/pr/3514/docs/iroh/discovery/pkarr/index.html b/pr/3514/docs/iroh/discovery/pkarr/index.html
index 26266c7ce3..043507d251 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/index.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/index.html
@@ -40,4 +40,4 @@ to the application’s needs:
as the Mainline DHT.
-Modules§
- dht
- Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
Structs§
- Pkarr
Publisher - Publisher of node discovery information to a pkarr relay.
- Pkarr
PublisherBuilder - Builder for
PkarrPublisher. - Pkarr
RelayClient - A pkarr client to publish [
pkarr::SignedPacket]s to a pkarr relay. - Pkarr
Resolver - Resolver of node discovery information from a pkarr relay.
- Pkarr
ResolverBuilder - Builder for
PkarrResolver.
Enums§
Constants§
- DEFAULT_
PKARR_TTL - Default TTL for the records in the pkarr signed packet.
- DEFAULT_
REPUBLISH_INTERVAL - Interval in which to republish the node info even if unchanged: 5 minutes.
- N0_
DNS_PKARR_RELAY_PROD - The production pkarr relay run by number 0.
- N0_
DNS_PKARR_RELAY_STAGING - The testing pkarr relay run by number 0.
\ No newline at end of file
+Modules§
- dht
discovery-pkarr-dht - Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
Structs§
- Pkarr
Publisher - Publisher of node discovery information to a pkarr relay.
- Pkarr
PublisherBuilder - Builder for
PkarrPublisher. - Pkarr
RelayClient - A pkarr client to publish [
pkarr::SignedPacket]s to a pkarr relay. - Pkarr
Resolver - Resolver of node discovery information from a pkarr relay.
- Pkarr
ResolverBuilder - Builder for
PkarrResolver.
Enums§
Constants§
- DEFAULT_
PKARR_TTL - Default TTL for the records in the pkarr signed packet.
- DEFAULT_
REPUBLISH_INTERVAL - Interval in which to republish the node info even if unchanged: 5 minutes.
- N0_
DNS_PKARR_RELAY_PROD - The production pkarr relay run by number 0.
- N0_
DNS_PKARR_RELAY_STAGING - The testing pkarr relay run by number 0.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html
index e723931d74..ad99b4e9cf 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html
@@ -4,7 +4,7 @@
Default is DEFAULT_PKARR_TTL.
Sourcepub fn republish_interval(self, republish_interval: Duration) -> Self
Sets the interval after which packets are republished even if our node info did not change.
Default is DEFAULT_REPUBLISH_INTERVAL.
-Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Sets the DNS resolver to use for resolving the pkarr relay URL.
+Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
Sets the DNS resolver to use for resolving the pkarr relay URL.
Sourcepub fn build(self, secret_key: SecretKey) -> PkarrPublisher
Builds the PkarrPublisher with the passed secret key for signing packets.
This publisher will be able to publish [pkarr] records for SecretKey.
Trait Implementations§
Source§impl Debug for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrPublisherBuilder
Source§fn into_discovery(
diff --git a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html
index dca85e4052..31e8c17df1 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html
@@ -3,7 +3,7 @@
Sourcepub fn with_dns_resolver(
pkarr_relay_url: Url,
dns_resolver: DnsResolver,
-) -> Self
Creates a new client while passing a DNS resolver to use.
+) -> SelfAvailable on non-wasm_browser only.Creates a new client while passing a DNS resolver to use.
Sourcepub async fn resolve(
&self,
node_id: NodeId,
diff --git a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
index 026fbb96c3..c0cb93ea99 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
@@ -1,6 +1,6 @@
PkarrResolverBuilder in iroh::discovery::pkarr - Rust pub struct PkarrResolverBuilder { /* private fields */ }
Expand description
Builder for PkarrResolver.
-Implementations§
Source§impl PkarrResolverBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Sets the DNS resolver to use for resolving the pkarr relay URL.
+Implementations§
Source§impl PkarrResolverBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
Sets the DNS resolver to use for resolving the pkarr relay URL.
Sourcepub fn build(self) -> PkarrResolver
Creates a PkarrResolver from this builder.
Trait Implementations§
Source§impl Debug for PkarrResolverBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§fn into_discovery(
self,
diff --git a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
index ff13d6c05a..db9a976390 100644
--- a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
+++ b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
@@ -1,7 +1,7 @@
DiscoveryContext in iroh::discovery - Rust pub struct DiscoveryContext<'a> { /* private fields */ }
Expand description
Context about the Endpoint for discovery services.
Implementations§
Source§impl DiscoveryContext<'_>
Sourcepub fn secret_key(&self) -> &SecretKey
Returns the SecretKey of the endpoint.
-Sourcepub fn dns_resolver(&self) -> &DnsResolver
Returns the DnsResolver used by the endpoint.
+Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
Returns the DnsResolver used by the endpoint.
Trait Implementations§
Auto Trait Implementations§
§impl<'a> Freeze for DiscoveryContext<'a>
§impl<'a> !RefUnwindSafe for DiscoveryContext<'a>
§impl<'a> Send for DiscoveryContext<'a>
§impl<'a> Sync for DiscoveryContext<'a>
§impl<'a> Unpin for DiscoveryContext<'a>
§impl<'a> !UnwindSafe for DiscoveryContext<'a>
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/3514/docs/iroh/discovery/struct.NodeInfo.html b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
index 403eebaaa0..d9e2f234c6 100644
--- a/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/discovery/trait.Discovery.html b/pr/3514/docs/iroh/discovery/trait.Discovery.html
index 04a41a6c3b..e5a0286374 100644
--- a/pr/3514/docs/iroh/discovery/trait.Discovery.html
+++ b/pr/3514/docs/iroh/discovery/trait.Discovery.html
@@ -34,4 +34,4 @@ work.
Implementations on Foreign Types§
Implementors§
Source§impl Discovery for DnsDiscovery
Source§impl Discovery for MdnsDiscovery
Source§impl Discovery for DhtDiscovery
Source§impl Discovery for PkarrPublisher
Source§impl Discovery for PkarrResolver
Source§impl Discovery for StaticProvider
Source§impl Discovery for ConcurrentDiscovery
\ No newline at end of file
+) -> Option<BoxStream<Result<DiscoveryItem, DiscoveryError>>>
Implementors§
Source§impl Discovery for DnsDiscovery
Available on non-wasm_browser only. Source§impl Discovery for MdnsDiscovery
Available on crate feature discovery-local-network only. Source§impl Discovery for DhtDiscovery
Available on crate feature discovery-pkarr-dht only. Source§impl Discovery for PkarrPublisher
Source§impl Discovery for PkarrResolver
Source§impl Discovery for StaticProvider
Source§impl Discovery for ConcurrentDiscovery
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html b/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
index 0eb48a1ca3..dae50f9f36 100644
--- a/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
+++ b/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
@@ -23,5 +23,5 @@ creation via the 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 IntoDiscovery for DnsDiscoveryBuilder
Source§impl IntoDiscovery for MdnsDiscoveryBuilder
Source§impl IntoDiscovery for Builder
Source§impl IntoDiscovery for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§impl<T: Discovery> IntoDiscovery for T
Blanket no-op impl of IntoDiscovery for T: Discovery.
+ 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 IntoDiscovery for DnsDiscoveryBuilder
Available on non-wasm_browser only. Source§impl IntoDiscovery for MdnsDiscoveryBuilder
Available on crate feature discovery-local-network only. Source§impl IntoDiscovery for Builder
Available on crate feature discovery-pkarr-dht only. Source§impl IntoDiscovery for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§impl<T: Discovery> IntoDiscovery for T
Blanket no-op impl of IntoDiscovery for T: Discovery.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
index 50d4a20730..db6bf77241 100644
--- a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
+++ b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Expand description
The n0 testing DNS node origin, for production.
+N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
index 58ebca53fc..39f9f7646d 100644
--- a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
+++ b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Expand description
The n0 testing DNS node origin, for testing.
+N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/index.html b/pr/3514/docs/iroh/dns/index.html
index 9006a2fc26..43518a5920 100644
--- a/pr/3514/docs/iroh/dns/index.html
+++ b/pr/3514/docs/iroh/dns/index.html
@@ -1,4 +1,4 @@
-iroh::dns - Rust Expand description
This module exports a DNS resolver, which is also the default resolver used in the
+
iroh::dns - Rust Available on non-wasm_browser only.Expand description
This module exports a DNS resolver, which is also the default resolver used in the
crate::Endpoint if no custom resolver is configured.
The resolver provides methods to resolve domain names to ipv4 and ipv6 addresses,
and to resolve node ids to node addresses.
diff --git a/pr/3514/docs/iroh/dns/struct.DnsResolver.html b/pr/3514/docs/iroh/dns/struct.DnsResolver.html
index 36397fb5d0..9f5504e056 100644
--- a/pr/3514/docs/iroh/dns/struct.DnsResolver.html
+++ b/pr/3514/docs/iroh/dns/struct.DnsResolver.html
@@ -1,4 +1,4 @@
-DnsResolver in iroh::dns - Rust pub struct DnsResolver(/* private fields */);
Expand description
The DNS resolver used throughout iroh.
+DnsResolver in iroh::dns - Rust pub struct DnsResolver(/* private fields */);
Available on non-wasm_browser only.Expand description
The DNS resolver used throughout iroh.
Implementations§
Source§impl DnsResolver
Sourcepub fn new() -> DnsResolver
Creates a new DNS resolver with sensible cross-platform defaults.
We first try to read the system’s resolver from /etc/resolv.conf.
This does not work at least on some Androids, therefore we fallback
diff --git a/pr/3514/docs/iroh/endpoint/enum.PathSelection.html b/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
index ae95c1d723..25731b05ea 100644
--- a/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
+++ b/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
@@ -1,7 +1,7 @@
PathSelection in iroh::endpoint - Rust pub enum PathSelection {
All,
RelayOnly,
-}
Expand description
Defines the mode of path selection for all traffic flowing through
+}Available on crate feature test-utils only.Expand description
Defines the mode of path selection for all traffic flowing through
the endpoint.
Variants§
§All
Uses all available paths
§RelayOnly
Forces all traffic to go exclusively through relays
diff --git a/pr/3514/docs/iroh/endpoint/index.html b/pr/3514/docs/iroh/endpoint/index.html
index a7a8803e76..5acb89986c 100644
--- a/pr/3514/docs/iroh/endpoint/index.html
+++ b/pr/3514/docs/iroh/endpoint/index.html
@@ -8,6 +8,6 @@ more details on how iroh connections work.
Builder to create an Endpoint.
Structs§
- Accept
- Future produced by
Endpoint::accept. - Accept
Bi - Future produced by [
Connection::accept_bi] - Accept
Uni - Future produced by [
Connection::accept_uni] - AckFrequency
Config - Parameters for controlling the peer’s acknowledgement frequency
- Application
Close - Reason given by an application for closing the connection
- Builder
- Builder for
Endpoint. - Chunk
- A chunk of data from the receive stream
- Closed
Stream - Error indicating that a stream has not been opened or has already been finished or reset
- Connect
Options - Options for the
Endpoint::connect_with_opts function. - Connecting
- In-progress connection attempt future
- Connection
- A QUIC connection.
- Connection
Close - Reason given by the transport for closing the connection
- Connection
Stats - Connection statistics
- Crypto
Error - Generic crypto errors
- Direct
Addr - A direct address on which an iroh-node might be contactable.
- Direct
AddrInfo - Information about a direct address.
- Endpoint
- Controls an iroh node, establishing connections with other nodes.
- Export
KeyingMaterialError - Error returned by [Session::export_keying_material].
- Frame
Stats - Number of frames transmitted of each frame type
- Incoming
- An incoming connection for which the server has not yet begun its parts of the
-handshake.
- Incoming
Future - Adaptor to let
Incoming be awaited like a Connecting. - MtuDiscovery
Config - Parameters governing MTU discovery.
- OpenBi
- Future produced by [
Connection::open_bi] - OpenUni
- Future produced by [
Connection::open_uni] - Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by [
Connection::read_datagram] - Recv
Stream - A stream that can only be used to receive data
- Remote
NodeIdError - Retry
Error - Error for attempting to retry an [
Incoming] which already bears a token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
ErrorCode - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
ConnectionHandle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established.
Enums§
- AddNode
AddrError - Alpn
Error - Bind
Error - Connect
Error - Connect
WithOptsError - Connection
Error - Reasons why a connection might be lost
- Connection
Type - The type of connection we have to the endpoint.
- Control
Msg - The type of control message we have received.
- Direct
AddrType - The type of direct address.
- GetMapping
AddressError - Path
Selection - Defines the mode of path selection for all traffic flowing through
+handshake.
- Incoming
Future - Adaptor to let
Incoming be awaited like a Connecting. - MtuDiscovery
Config - Parameters governing MTU discovery.
- OpenBi
- Future produced by [
Connection::open_bi] - OpenUni
- Future produced by [
Connection::open_uni] - Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by [
Connection::read_datagram] - Recv
Stream - A stream that can only be used to receive data
- Remote
NodeIdError - Retry
Error - Error for attempting to retry an [
Incoming] which already bears a token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
ErrorCode - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
ConnectionHandle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established.
Enums§
- AddNode
AddrError - Alpn
Error - Bind
Error - Connect
Error - Connect
WithOptsError - Connection
Error - Reasons why a connection might be lost
- Connection
Type - The type of connection we have to the endpoint.
- Control
Msg - The type of control message we have received.
- Direct
AddrType - The type of direct address.
- GetMapping
AddressError - Path
Selection test-utils - Defines the mode of path selection for all traffic flowing through
the endpoint.
- Read
Error - Errors that arise from reading from a stream.
- Read
ExactError - Errors that arise from reading from a stream.
- Read
ToEndError - Errors from
RecvStream::read_to_end - Relay
Mode - Configuration of the relay servers for an
Endpoint. - Reset
Error - Errors that arise while waiting for a stream to be reset
- Send
DatagramError - Errors that can arise when sending a datagram
- Source
- The origin or source through which an address associated with a remote node
was discovered.
- Stopped
Error - Errors that arise while monitoring for a send stream stop from the peer
- Write
Error - Errors that arise from writing to a stream
Constants§
- ENV_
FORCE_STAGING_RELAYS - Environment variable to force the use of staging relays.
Traits§
- AeadKey
- A key for sealing data with AEAD-based algorithms
- Controller
- Common interface for different congestion controllers
- Controller
Factory - Constructs controllers on demand
- Crypto
ServerConfig - Server-side configuration for the crypto protocol
- Handshake
TokenKey - A pseudo random key for HKDF
Functions§
- default_
relay_mode - Returns the default relay mode.
- force_
staging_infra - Returns
true if the use of staging relays is forced.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/endpoint/struct.Accept.html b/pr/3514/docs/iroh/endpoint/struct.Accept.html
index 6b202d3e50..5453a95cab 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Accept.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Accept.html
@@ -18,10 +18,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html b/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
index 1fd37c94d4..724b764538 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
index 51edf23f3d..5014777bb6 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Builder.html b/pr/3514/docs/iroh/endpoint/struct.Builder.html
index 634092ba1c..07049e8552 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Builder.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Builder.html
@@ -54,12 +54,12 @@ n0.computer dns server.
This will by default use N0_DNS_PKARR_RELAY_PROD.
When in tests, or when the test-utils feature is enabled, this will use the
N0_DNS_PKARR_RELAY_STAGING.
-
Sourcepub fn discovery_dht(self) -> Self
Configures the endpoint to also use the mainline DHT with default settings.
+Sourcepub fn discovery_dht(self) -> Self
Available on crate feature discovery-pkarr-dht only.
Configures the endpoint to also use the mainline DHT with default settings.
This is equivalent to adding a crate::discovery::pkarr::dht::DhtDiscovery
with default settings. Note that DhtDiscovery has various more advanced
configuration options. If you need any of those, you should manually
create a DhtDiscovery and add it with Builder::add_discovery.
-Sourcepub fn discovery_local_network(self) -> Self
Configures the endpoint to also use local network discovery.
+Sourcepub fn discovery_local_network(self) -> Self
Available on crate feature discovery-local-network only.
Configures the endpoint to also use local network discovery.
This is equivalent to adding a crate::discovery::mdns::MdnsDiscovery
with default settings. Note that MdnsDiscovery has various more advanced
configuration options. If you need any of those, you should manually
@@ -78,7 +78,7 @@ 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
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 node addresses if
crate::discovery::dns::DnsDiscovery is configured.
By default, a new DNS resolver is created which is configured to use the
@@ -98,9 +98,9 @@ a
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 insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
Skip verification of SSL certificates from relay servers
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
Available on crate feature test-utils only.
Skip verification of SSL certificates from relay servers
May only be used in tests.
-Sourcepub fn path_selection(self, path_selection: PathSelection) -> Self
This implies we only use the relay to communicate
+
Sourcepub fn path_selection(self, path_selection: PathSelection) -> Self
Available on crate feature test-utils only.
This implies we only use the relay to communicate
and do not attempt to do any hole punching.
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
diff --git a/pr/3514/docs/iroh/endpoint/struct.Connecting.html b/pr/3514/docs/iroh/endpoint/struct.Connecting.html
index bc09f88e65..ca039bb20a 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Connecting.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Connecting.html
@@ -54,10 +54,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -100,14 +100,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -137,7 +137,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
index eecfbb0e23..092b95e89c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
@@ -96,7 +96,7 @@ to ensure that the NodeAddr will contain enough information to allo
to be dialable by a remote endpoint over the internet.
You can use the Endpoint::watch_node_addr method to get updates when the NodeAddr
changes.
-
Sourcepub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
Sourcepub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
Available on non-wasm_browser only.
Returns a Watcher for the current NodeAddr for this endpoint.
The observed NodeAddr will have the current RelayUrl and direct addresses.
use iroh::{Endpoint, Watcher};
@@ -155,11 +155,11 @@ become inaccessible.
Will return None if we do not have any address information for the given node_id.
Sourcepub fn latency(&self, node_id: NodeId) -> Option<Duration>
Returns the currently lowest latency for this node.
Will return None if we do not have any address information for the given node_id.
-Sourcepub fn dns_resolver(&self) -> &DnsResolver
Returns the DNS resolver used in this Endpoint.
+Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
Returns the DNS resolver used in this Endpoint.
Sourcepub fn discovery(&self) -> &ConcurrentDiscovery
Returns the discovery mechanism, if configured.
See Builder::discovery.
-Sourcepub fn metrics(&self) -> &EndpointMetrics
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:
diff --git a/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html b/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
index 532ab31338..b440826d41 100644
--- a/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
+++ b/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
@@ -18,10 +18,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -101,7 +101,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
index 2bc9c37c4b..cd17591f00 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
index 212288f8c2..25febd17e2 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
index 11b48fbb04..b06cc6a844 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
index 6b6ed92006..86a258a62c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
@@ -82,9 +82,9 @@ exhaustion in most contexts.
§impl ServerConfig
pub fn with_single_cert(
cert_chain: Vec<CertificateDer<'static>>,
key: PrivateKeyDer<'static>,
-) -> Result<ServerConfig, Error>
Create a server config with the given certificate chain to be presented to clients
+) -> Result<ServerConfig, Error>Available on crate features rustls-aws-lc-rs or rustls-ring only.Create a server config with the given certificate chain to be presented to clients
Uses a randomized handshake token key.
-§impl ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
Create a server config with the given crypto::ServerConfig
+§impl ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
Available on crate features aws-lc-rs or ring only.
Create a server config with the given crypto::ServerConfig
Uses a randomized handshake token key.
Trait Implementations§
§impl Clone for ServerConfig
§fn clone(&self) -> ServerConfig
Returns a copy 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 ServerConfig
§impl !RefUnwindSafe for ServerConfig
§impl Send for ServerConfig
§impl Sync for ServerConfig
§impl Unpin for ServerConfig
§impl !UnwindSafe for ServerConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
index 33693f4f40..518d7f97c9 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
@@ -19,10 +19,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -65,14 +65,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
diff --git a/pr/3514/docs/iroh/index.html b/pr/3514/docs/iroh/index.html
index d2098ddf1f..18c995edcf 100644
--- a/pr/3514/docs/iroh/index.html
+++ b/pr/3514/docs/iroh/index.html
@@ -178,5 +178,5 @@ connecting using only the <
Ok(())
}
Please see the examples directory for more nuanced examples.
-Re-exports§
Modules§
- defaults
- Default values used in
iroh - discovery
- Node address discovery.
- dns
- This module exports a DNS resolver, which is also the default resolver used in the
-
crate::Endpoint if no custom resolver is configured. - endpoint
- The
Endpoint allows establishing connections to other iroh nodes. - metrics
- Co-locating all of the iroh metrics structs
- net_
report - Checks the network conditions from the current host.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protocol
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_
utils - Internal utilities to support testing.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Traits§
- Watcher
- A handle to a value that’s represented by one or more underlying [
Watchable]s.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
\ No newline at end of file
+Re-exports§
Modules§
- defaults
- Default values used in
iroh - discovery
- Node address discovery.
- dns
Non-wasm_browser - This module exports a DNS resolver, which is also the default resolver used in the
+
crate::Endpoint if no custom resolver is configured. - endpoint
- The
Endpoint allows establishing connections to other iroh nodes. - metrics
- Co-locating all of the iroh metrics structs
- net_
report - Checks the network conditions from the current host.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protocol
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_
utils test-utils - Internal utilities to support testing.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Traits§
- Watcher
- A handle to a value that’s represented by one or more underlying [
Watchable]s.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/metrics/index.html b/pr/3514/docs/iroh/metrics/index.html
index d8f680b832..5c703d4a2a 100644
--- a/pr/3514/docs/iroh/metrics/index.html
+++ b/pr/3514/docs/iroh/metrics/index.html
@@ -1,2 +1,2 @@
iroh::metrics - Rust Expand description
Co-locating all of the iroh metrics structs
-Re-exports§
pub use crate::net_report::Metrics as NetReportMetrics;
Structs§
- Endpoint
Metrics - Metrics collected by an
crate::endpoint::Endpoint. - Magicsock
Metrics - Enum of metrics for the module
- Portmap
Metrics - Enum of metrics for the module
- Relay
Metrics - Metrics tracked for the relay server
\ No newline at end of file
+Re-exports§
pub use crate::net_report::Metrics as NetReportMetrics;
Structs§
- Endpoint
Metrics - Metrics collected by an
crate::endpoint::Endpoint. - Magicsock
Metrics - Enum of metrics for the module
- Portmap
Metrics Non-wasm_browser - Enum of metrics for the module
- Relay
Metrics test-utils - Metrics tracked for the relay server
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html b/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
index feb83ae3d0..abf95ee874 100644
--- a/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
@@ -6,7 +6,7 @@
See crate::endpoint::Endpoint::metrics for details.
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.§magicsock: Arc<MagicsockMetrics>Metrics collected by the endpoint’s socket.
§net_report: Arc<NetReportMetrics>Metrics collected by net reports.
-§portmapper: Arc<PortmapMetrics>Metrics collected by the portmapper service.
+§portmapper: Arc<PortmapMetrics>Available on non-wasm_browser only.Metrics collected by the portmapper service.
Trait Implementations§
Source§impl Clone for EndpointMetrics
Source§fn clone(&self) -> EndpointMetrics
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointMetrics
Source§impl Default for EndpointMetrics
Source§fn default() -> EndpointMetrics
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for EndpointMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl MetricsGroupSet for EndpointMetrics
Auto Trait Implementations§
§impl Freeze for EndpointMetrics
§impl RefUnwindSafe for EndpointMetrics
§impl Send for EndpointMetrics
§impl Sync for EndpointMetrics
§impl Unpin for EndpointMetrics
§impl UnwindSafe for EndpointMetrics
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
index 71ebbfa1c6..f396502ecf 100644
--- a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
@@ -10,7 +10,7 @@
pub upnp_gateway_updated: Counter,
pub pcp_probes: Counter,
pub pcp_available: Counter,
-}Expand description
Enum of metrics for the module
+}Available on non-wasm_browser only.Expand description
Enum of metrics for the module
Fields§
§probes_started: CounterNumber of probing tasks started.
§local_port_updates: CounterNumber of updates to the local port.
§mapping_attempts: CounterNumber of mapping tasks started.
diff --git a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
index 560a6dc0d7..0d269892b0 100644
--- a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
@@ -18,7 +18,7 @@
pub accepts: Counter,
pub disconnects: Counter,
pub unique_client_keys: Counter,
-}Expand description
Metrics tracked for the relay server
+}Available on crate feature test-utils only.Expand description
Metrics tracked for the relay server
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
§bytes_recv: CounterBytes received from a FrameType::SendPacket
§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
diff --git a/pr/3514/docs/iroh/net_report/enum.Probe.html b/pr/3514/docs/iroh/net_report/enum.Probe.html
index c524906642..0e14a0b4dd 100644
--- a/pr/3514/docs/iroh/net_report/enum.Probe.html
+++ b/pr/3514/docs/iroh/net_report/enum.Probe.html
@@ -4,8 +4,8 @@
QadIpv6 = 2,
}Expand description
The protocol used to time a node’s latency.
Variants§
§Https = 0
HTTPS
-§QadIpv4 = 1
QUIC Address Discovery Ipv4
-§QadIpv6 = 2
QUIC Address Discovery Ipv6
+§QadIpv4 = 1
Available on non-wasm_browser only.QUIC Address Discovery Ipv4
+§QadIpv6 = 2
Available on non-wasm_browser only.QUIC Address Discovery Ipv6
Trait Implementations§
Source§impl Ord for Probe
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/3514/docs/iroh/net_report/index.html b/pr/3514/docs/iroh/net_report/index.html
index dc297a94dc..5b2223108c 100644
--- a/pr/3514/docs/iroh/net_report/index.html
+++ b/pr/3514/docs/iroh/net_report/index.html
@@ -2,4 +2,4 @@
NetReport is responsible for finding out the network conditions of the current host, like
whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is
etc and reachability to the configured relays.
-
Structs§
- Metrics
- Enum of metrics for the module
- Options
- Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
+Structs§
- Metrics
- Enum of metrics for the module
- Options
Non-wasm_browser - Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/net_report/struct.Options.html b/pr/3514/docs/iroh/net_report/struct.Options.html
index 9b9f76f3f6..fa199a8c37 100644
--- a/pr/3514/docs/iroh/net_report/struct.Options.html
+++ b/pr/3514/docs/iroh/net_report/struct.Options.html
@@ -1,10 +1,10 @@
-Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Expand description
Options for running probes
+Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Available on non-wasm_browser only.Expand description
Options for running probes
By default, will run Https probes.
Use Options::quic_config to enable QUIC address discovery.
Implementations§
Source§impl Options
Sourcepub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
Enable quic probes
Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Skip cert verification
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Available on crate feature test-utils only.
Skip cert verification
Sourcepub fn as_protocols(&self) -> BTreeSet<Probe>
Turn the options into set of valid protocols
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Options
§impl !RefUnwindSafe for Options
§impl Send for Options
§impl Sync for Options
§impl Unpin for Options
§impl !UnwindSafe for Options
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
index 24cf23b16a..ec8f88c330 100644
--- a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
+++ b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
@@ -1,5 +1,5 @@
RelayLatencies in iroh::net_report - Rust pub struct RelayLatencies { /* private fields */ }
Expand description
Latencies per relay node.
-Implementations§
Source§impl RelayLatencies
Sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
Source§impl Clone for RelayLatencies
Source§fn clone(&self) -> RelayLatencies
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RelayLatencies
Source§impl Default for RelayLatencies
Source§fn default() -> RelayLatencies
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for RelayLatencies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for RelayLatencies
Source§impl Serialize for RelayLatencies
Source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
index 78f05a321d..45df56531d 100644
--- a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
index a0dcc86190..b87d07c1de 100644
--- a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
+++ b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
@@ -4,6 +4,6 @@
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Required Methods§
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§
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/struct.NodeAddr.html b/pr/3514/docs/iroh/struct.NodeAddr.html
index e7e779d25b..14279600a5 100644
--- a/pr/3514/docs/iroh/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh/struct.NodeAddr.html
@@ -44,7 +44,7 @@ whenever a connection to other nodes needs to be established.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
Source§impl Hash for NodeAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/pr/3514/docs/iroh/struct.PublicKey.html b/pr/3514/docs/iroh/struct.PublicKey.html
index b700c8a17c..748f989107 100644
--- a/pr/3514/docs/iroh/struct.PublicKey.html
+++ b/pr/3514/docs/iroh/struct.PublicKey.html
@@ -109,7 +109,7 @@ indices from [N - M, N) (excluding the index N itself)
Source§impl Ord for PublicKey
Source§impl PartialEq for PublicKey
Source§fn eq(&self, other: &PublicKey) -> bool
Tests for self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
Tests for !=. The default implementation is almost always sufficient,
diff --git a/pr/3514/docs/iroh/struct.RelayUrl.html b/pr/3514/docs/iroh/struct.RelayUrl.html
index b2093b812e..04238b61fa 100644
--- a/pr/3514/docs/iroh/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh/struct.RelayUrl.html
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
index 24335b059d..b4c43a77a8 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-
run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server with QUIC enabled suitable for tests.
+run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
index 2427917da9..dc1d67d062 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,6 +1,6 @@
run_relay_server_with in iroh::test_utils - Rust pub async fn run_relay_server_with(
quic: bool,
-) -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server), SpawnError>Available on crate feature 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.
The return value is similar to run_relay_server.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/index.html b/pr/3514/docs/iroh/test_utils/index.html
index 5ab9442bcf..99408b93c8 100644
--- a/pr/3514/docs/iroh/test_utils/index.html
+++ b/pr/3514/docs/iroh/test_utils/index.html
@@ -1,2 +1,2 @@
-iroh::test_utils - Rust Expand description
Internal utilities to support testing.
+iroh::test_utils - Rust Available on crate feature test-utils only.Expand description
Internal utilities to support testing.
Structs§
- Cleanup
DropGuard - A drop guard to clean up test infrastructure.
- DnsPkarr
Server - Handle and drop guard for test DNS and Pkarr servers.
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/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
index c557fa7870..c5444183b5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
+++ b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
@@ -1,4 +1,4 @@
-CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Expand description
A drop guard to clean up test infrastructure.
+CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Available on crate feature test-utils only.Expand description
A drop guard to clean up test infrastructure.
After dropping the test infrastructure will asynchronously shutdown and release its
resources.
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for CleanupDropGuard
§impl !RefUnwindSafe for CleanupDropGuard
§impl Send for CleanupDropGuard
§impl Sync for CleanupDropGuard
§impl Unpin for CleanupDropGuard
§impl !UnwindSafe for CleanupDropGuard
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
index d46ae8d5e1..ccd49d4ef5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -3,7 +3,7 @@
pub nameserver: SocketAddr,
pub pkarr_url: Url,
/* private fields */
-}Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}Available on crate feature test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
§nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
index a08dddd86b..f4c1157e70 100644
--- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html
+++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
@@ -13,7 +13,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
Error when deserialising a PublicKey or a SecretKey.
+}Available on crate feature key only.Variants§
§Decode
Error when decoding.
§Key
Error when decoding the public key.
§DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html
index 817a16cc72..b1ee851ad2 100644
--- a/pr/3514/docs/iroh_base/index.html
+++ b/pr/3514/docs/iroh_base/index.html
@@ -1,5 +1,5 @@
iroh_base - Rust Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation.
+
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
-provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
+provider.Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParseError relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh_base/struct.NodeAddr.html b/pr/3514/docs/iroh_base/struct.NodeAddr.html
index 839a0f8fe6..f4fde16166 100644
--- a/pr/3514/docs/iroh_base/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh_base/struct.NodeAddr.html
@@ -2,7 +2,7 @@
pub node_id: NodeId,
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
-}Expand description
Network-level addressing information for an iroh node.
+}Available on crate feature key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to
contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
pub async fn subscribe(
&self,
diff --git a/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html b/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html
index 84530b9ce3..70599bcd6e 100644
--- a/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html
+++ b/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html
@@ -1,4 +1,4 @@
-MdnsDiscoveryBuilder in iroh::discovery::mdns - Rust pub struct MdnsDiscoveryBuilder { /* private fields */ }
Expand description
Builder for MdnsDiscovery.
+MdnsDiscoveryBuilder in iroh::discovery::mdns - Rust pub struct MdnsDiscoveryBuilder { /* private fields */ }
Available on crate feature discovery-local-network only.Expand description
Builder for MdnsDiscovery.
Implementations§
Source§impl MdnsDiscoveryBuilder
Sourcepub fn advertise(self, advertise: bool) -> Self
Sets whether this node should advertise its presence.
Default is true.
Sourcepub fn service_name(self, service_name: impl Into<String>) -> Self
Sets a custom service name.
diff --git a/pr/3514/docs/iroh/discovery/pkarr/dht/index.html b/pr/3514/docs/iroh/discovery/pkarr/dht/index.html
index a93b8efb9c..cf1fec8f01 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/dht/index.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/dht/index.html
@@ -1,4 +1,4 @@
-iroh::discovery::pkarr::dht - Rust Expand description
Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
+iroh::discovery::pkarr::dht - Rust Available on crate feature discovery-pkarr-dht only.Expand description
Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
This module contains pkarr-based node discovery for iroh which can use both pkarr
relay servers as well as the Mainline DHT directly. See the pkarr module for an
overview of pkarr.
diff --git a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html
index b8ee24bd00..cfac228a91 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html
@@ -1,4 +1,4 @@
-Builder in iroh::discovery::pkarr::dht - Rust pub struct Builder { /* private fields */ }
Expand description
Builder for DhtDiscovery.
+Builder in iroh::discovery::pkarr::dht - Rust pub struct Builder { /* private fields */ }
Available on crate feature discovery-pkarr-dht only.Expand description
Builder for DhtDiscovery.
By default, publishing to the DHT is enabled, and relay publishing is disabled.
Implementations§
Source§impl Builder
Sourcepub fn secret_key(self, secret_key: SecretKey) -> Self
Sets the secret key to use for signing the DNS packets.
diff --git a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html
index d0d3e4b20b..ed5352b949 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html
@@ -1,4 +1,4 @@
-DhtDiscovery in iroh::discovery::pkarr::dht - Rust pub struct DhtDiscovery(/* private fields */);
Expand description
Pkarr Mainline DHT and relay server node discovery.
+DhtDiscovery in iroh::discovery::pkarr::dht - Rust pub struct DhtDiscovery(/* private fields */);
Available on crate feature discovery-pkarr-dht only.Expand description
Pkarr Mainline DHT and relay server node discovery.
It stores node addresses in DNS records, signed by the node’s private key, and publishes
them to the BitTorrent Mainline DHT. See the pkarr module for more details.
This implements the Discovery trait to be used as a node discovery service which can
diff --git a/pr/3514/docs/iroh/discovery/pkarr/index.html b/pr/3514/docs/iroh/discovery/pkarr/index.html
index 26266c7ce3..043507d251 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/index.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/index.html
@@ -40,4 +40,4 @@ to the application’s needs:
as the Mainline DHT.
-Modules§
- dht
- Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
Structs§
- Pkarr
Publisher - Publisher of node discovery information to a pkarr relay.
- Pkarr
PublisherBuilder - Builder for
PkarrPublisher. - Pkarr
RelayClient - A pkarr client to publish [
pkarr::SignedPacket]s to a pkarr relay. - Pkarr
Resolver - Resolver of node discovery information from a pkarr relay.
- Pkarr
ResolverBuilder - Builder for
PkarrResolver.
Enums§
Constants§
- DEFAULT_
PKARR_TTL - Default TTL for the records in the pkarr signed packet.
- DEFAULT_
REPUBLISH_INTERVAL - Interval in which to republish the node info even if unchanged: 5 minutes.
- N0_
DNS_PKARR_RELAY_PROD - The production pkarr relay run by number 0.
- N0_
DNS_PKARR_RELAY_STAGING - The testing pkarr relay run by number 0.
\ No newline at end of file
+Modules§
- dht
discovery-pkarr-dht - Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
Structs§
- Pkarr
Publisher - Publisher of node discovery information to a pkarr relay.
- Pkarr
PublisherBuilder - Builder for
PkarrPublisher. - Pkarr
RelayClient - A pkarr client to publish [
pkarr::SignedPacket]s to a pkarr relay. - Pkarr
Resolver - Resolver of node discovery information from a pkarr relay.
- Pkarr
ResolverBuilder - Builder for
PkarrResolver.
Enums§
Constants§
- DEFAULT_
PKARR_TTL - Default TTL for the records in the pkarr signed packet.
- DEFAULT_
REPUBLISH_INTERVAL - Interval in which to republish the node info even if unchanged: 5 minutes.
- N0_
DNS_PKARR_RELAY_PROD - The production pkarr relay run by number 0.
- N0_
DNS_PKARR_RELAY_STAGING - The testing pkarr relay run by number 0.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html
index e723931d74..ad99b4e9cf 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html
@@ -4,7 +4,7 @@
Default is DEFAULT_PKARR_TTL.
Sourcepub fn republish_interval(self, republish_interval: Duration) -> Self
Sets the interval after which packets are republished even if our node info did not change.
Default is DEFAULT_REPUBLISH_INTERVAL.
-Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Sets the DNS resolver to use for resolving the pkarr relay URL.
+Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
Sets the DNS resolver to use for resolving the pkarr relay URL.
Sourcepub fn build(self, secret_key: SecretKey) -> PkarrPublisher
Builds the PkarrPublisher with the passed secret key for signing packets.
This publisher will be able to publish [pkarr] records for SecretKey.
Trait Implementations§
Source§impl Debug for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrPublisherBuilder
Source§fn into_discovery(
diff --git a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html
index dca85e4052..31e8c17df1 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html
@@ -3,7 +3,7 @@
Sourcepub fn with_dns_resolver(
pkarr_relay_url: Url,
dns_resolver: DnsResolver,
-) -> Self
Creates a new client while passing a DNS resolver to use.
+) -> SelfAvailable on non-wasm_browser only.Creates a new client while passing a DNS resolver to use.
Sourcepub async fn resolve(
&self,
node_id: NodeId,
diff --git a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
index 026fbb96c3..c0cb93ea99 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
@@ -1,6 +1,6 @@
PkarrResolverBuilder in iroh::discovery::pkarr - Rust pub struct PkarrResolverBuilder { /* private fields */ }
Expand description
Builder for PkarrResolver.
-Implementations§
Source§impl PkarrResolverBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Sets the DNS resolver to use for resolving the pkarr relay URL.
+Implementations§
Source§impl PkarrResolverBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
Sets the DNS resolver to use for resolving the pkarr relay URL.
Sourcepub fn build(self) -> PkarrResolver
Creates a PkarrResolver from this builder.
Trait Implementations§
Source§impl Debug for PkarrResolverBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§fn into_discovery(
self,
diff --git a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
index ff13d6c05a..db9a976390 100644
--- a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
+++ b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
@@ -1,7 +1,7 @@
DiscoveryContext in iroh::discovery - Rust pub struct DiscoveryContext<'a> { /* private fields */ }
Expand description
Context about the Endpoint for discovery services.
Implementations§
Source§impl DiscoveryContext<'_>
Sourcepub fn secret_key(&self) -> &SecretKey
Returns the SecretKey of the endpoint.
-Sourcepub fn dns_resolver(&self) -> &DnsResolver
Returns the DnsResolver used by the endpoint.
+Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
Returns the DnsResolver used by the endpoint.
Trait Implementations§
Auto Trait Implementations§
§impl<'a> Freeze for DiscoveryContext<'a>
§impl<'a> !RefUnwindSafe for DiscoveryContext<'a>
§impl<'a> Send for DiscoveryContext<'a>
§impl<'a> Sync for DiscoveryContext<'a>
§impl<'a> Unpin for DiscoveryContext<'a>
§impl<'a> !UnwindSafe for DiscoveryContext<'a>
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/3514/docs/iroh/discovery/struct.NodeInfo.html b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
index 403eebaaa0..d9e2f234c6 100644
--- a/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/discovery/trait.Discovery.html b/pr/3514/docs/iroh/discovery/trait.Discovery.html
index 04a41a6c3b..e5a0286374 100644
--- a/pr/3514/docs/iroh/discovery/trait.Discovery.html
+++ b/pr/3514/docs/iroh/discovery/trait.Discovery.html
@@ -34,4 +34,4 @@ work.
Implementations on Foreign Types§
Implementors§
Source§impl Discovery for DnsDiscovery
Source§impl Discovery for MdnsDiscovery
Source§impl Discovery for DhtDiscovery
Source§impl Discovery for PkarrPublisher
Source§impl Discovery for PkarrResolver
Source§impl Discovery for StaticProvider
Source§impl Discovery for ConcurrentDiscovery
\ No newline at end of file
+) -> Option<BoxStream<Result<DiscoveryItem, DiscoveryError>>>
Implementors§
Source§impl Discovery for DnsDiscovery
Available on non-wasm_browser only. Source§impl Discovery for MdnsDiscovery
Available on crate feature discovery-local-network only. Source§impl Discovery for DhtDiscovery
Available on crate feature discovery-pkarr-dht only. Source§impl Discovery for PkarrPublisher
Source§impl Discovery for PkarrResolver
Source§impl Discovery for StaticProvider
Source§impl Discovery for ConcurrentDiscovery
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html b/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
index 0eb48a1ca3..dae50f9f36 100644
--- a/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
+++ b/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
@@ -23,5 +23,5 @@ creation via the 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 IntoDiscovery for DnsDiscoveryBuilder
Source§impl IntoDiscovery for MdnsDiscoveryBuilder
Source§impl IntoDiscovery for Builder
Source§impl IntoDiscovery for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§impl<T: Discovery> IntoDiscovery for T
Blanket no-op impl of IntoDiscovery for T: Discovery.
+ 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 IntoDiscovery for DnsDiscoveryBuilder
Available on non-wasm_browser only. Source§impl IntoDiscovery for MdnsDiscoveryBuilder
Available on crate feature discovery-local-network only. Source§impl IntoDiscovery for Builder
Available on crate feature discovery-pkarr-dht only. Source§impl IntoDiscovery for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§impl<T: Discovery> IntoDiscovery for T
Blanket no-op impl of IntoDiscovery for T: Discovery.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
index 50d4a20730..db6bf77241 100644
--- a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
+++ b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Expand description
The n0 testing DNS node origin, for production.
+N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
index 58ebca53fc..39f9f7646d 100644
--- a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
+++ b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Expand description
The n0 testing DNS node origin, for testing.
+N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/index.html b/pr/3514/docs/iroh/dns/index.html
index 9006a2fc26..43518a5920 100644
--- a/pr/3514/docs/iroh/dns/index.html
+++ b/pr/3514/docs/iroh/dns/index.html
@@ -1,4 +1,4 @@
-iroh::dns - Rust Expand description
This module exports a DNS resolver, which is also the default resolver used in the
+
iroh::dns - Rust Available on non-wasm_browser only.Expand description
This module exports a DNS resolver, which is also the default resolver used in the
crate::Endpoint if no custom resolver is configured.
The resolver provides methods to resolve domain names to ipv4 and ipv6 addresses,
and to resolve node ids to node addresses.
diff --git a/pr/3514/docs/iroh/dns/struct.DnsResolver.html b/pr/3514/docs/iroh/dns/struct.DnsResolver.html
index 36397fb5d0..9f5504e056 100644
--- a/pr/3514/docs/iroh/dns/struct.DnsResolver.html
+++ b/pr/3514/docs/iroh/dns/struct.DnsResolver.html
@@ -1,4 +1,4 @@
-DnsResolver in iroh::dns - Rust pub struct DnsResolver(/* private fields */);
Expand description
The DNS resolver used throughout iroh.
+DnsResolver in iroh::dns - Rust pub struct DnsResolver(/* private fields */);
Available on non-wasm_browser only.Expand description
The DNS resolver used throughout iroh.
Implementations§
Source§impl DnsResolver
Sourcepub fn new() -> DnsResolver
Creates a new DNS resolver with sensible cross-platform defaults.
We first try to read the system’s resolver from /etc/resolv.conf.
This does not work at least on some Androids, therefore we fallback
diff --git a/pr/3514/docs/iroh/endpoint/enum.PathSelection.html b/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
index ae95c1d723..25731b05ea 100644
--- a/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
+++ b/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
@@ -1,7 +1,7 @@
PathSelection in iroh::endpoint - Rust pub enum PathSelection {
All,
RelayOnly,
-}
Expand description
Defines the mode of path selection for all traffic flowing through
+}Available on crate feature test-utils only.Expand description
Defines the mode of path selection for all traffic flowing through
the endpoint.
Variants§
§All
Uses all available paths
§RelayOnly
Forces all traffic to go exclusively through relays
diff --git a/pr/3514/docs/iroh/endpoint/index.html b/pr/3514/docs/iroh/endpoint/index.html
index a7a8803e76..5acb89986c 100644
--- a/pr/3514/docs/iroh/endpoint/index.html
+++ b/pr/3514/docs/iroh/endpoint/index.html
@@ -8,6 +8,6 @@ more details on how iroh connections work.
Builder to create an Endpoint.
Structs§
- Accept
- Future produced by
Endpoint::accept. - Accept
Bi - Future produced by [
Connection::accept_bi] - Accept
Uni - Future produced by [
Connection::accept_uni] - AckFrequency
Config - Parameters for controlling the peer’s acknowledgement frequency
- Application
Close - Reason given by an application for closing the connection
- Builder
- Builder for
Endpoint. - Chunk
- A chunk of data from the receive stream
- Closed
Stream - Error indicating that a stream has not been opened or has already been finished or reset
- Connect
Options - Options for the
Endpoint::connect_with_opts function. - Connecting
- In-progress connection attempt future
- Connection
- A QUIC connection.
- Connection
Close - Reason given by the transport for closing the connection
- Connection
Stats - Connection statistics
- Crypto
Error - Generic crypto errors
- Direct
Addr - A direct address on which an iroh-node might be contactable.
- Direct
AddrInfo - Information about a direct address.
- Endpoint
- Controls an iroh node, establishing connections with other nodes.
- Export
KeyingMaterialError - Error returned by [Session::export_keying_material].
- Frame
Stats - Number of frames transmitted of each frame type
- Incoming
- An incoming connection for which the server has not yet begun its parts of the
-handshake.
- Incoming
Future - Adaptor to let
Incoming be awaited like a Connecting. - MtuDiscovery
Config - Parameters governing MTU discovery.
- OpenBi
- Future produced by [
Connection::open_bi] - OpenUni
- Future produced by [
Connection::open_uni] - Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by [
Connection::read_datagram] - Recv
Stream - A stream that can only be used to receive data
- Remote
NodeIdError - Retry
Error - Error for attempting to retry an [
Incoming] which already bears a token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
ErrorCode - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
ConnectionHandle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established.
Enums§
- AddNode
AddrError - Alpn
Error - Bind
Error - Connect
Error - Connect
WithOptsError - Connection
Error - Reasons why a connection might be lost
- Connection
Type - The type of connection we have to the endpoint.
- Control
Msg - The type of control message we have received.
- Direct
AddrType - The type of direct address.
- GetMapping
AddressError - Path
Selection - Defines the mode of path selection for all traffic flowing through
+handshake.
- Incoming
Future - Adaptor to let
Incoming be awaited like a Connecting. - MtuDiscovery
Config - Parameters governing MTU discovery.
- OpenBi
- Future produced by [
Connection::open_bi] - OpenUni
- Future produced by [
Connection::open_uni] - Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by [
Connection::read_datagram] - Recv
Stream - A stream that can only be used to receive data
- Remote
NodeIdError - Retry
Error - Error for attempting to retry an [
Incoming] which already bears a token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
ErrorCode - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
ConnectionHandle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established.
Enums§
- AddNode
AddrError - Alpn
Error - Bind
Error - Connect
Error - Connect
WithOptsError - Connection
Error - Reasons why a connection might be lost
- Connection
Type - The type of connection we have to the endpoint.
- Control
Msg - The type of control message we have received.
- Direct
AddrType - The type of direct address.
- GetMapping
AddressError - Path
Selection test-utils - Defines the mode of path selection for all traffic flowing through
the endpoint.
- Read
Error - Errors that arise from reading from a stream.
- Read
ExactError - Errors that arise from reading from a stream.
- Read
ToEndError - Errors from
RecvStream::read_to_end - Relay
Mode - Configuration of the relay servers for an
Endpoint. - Reset
Error - Errors that arise while waiting for a stream to be reset
- Send
DatagramError - Errors that can arise when sending a datagram
- Source
- The origin or source through which an address associated with a remote node
was discovered.
- Stopped
Error - Errors that arise while monitoring for a send stream stop from the peer
- Write
Error - Errors that arise from writing to a stream
Constants§
- ENV_
FORCE_STAGING_RELAYS - Environment variable to force the use of staging relays.
Traits§
- AeadKey
- A key for sealing data with AEAD-based algorithms
- Controller
- Common interface for different congestion controllers
- Controller
Factory - Constructs controllers on demand
- Crypto
ServerConfig - Server-side configuration for the crypto protocol
- Handshake
TokenKey - A pseudo random key for HKDF
Functions§
- default_
relay_mode - Returns the default relay mode.
- force_
staging_infra - Returns
true if the use of staging relays is forced.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/endpoint/struct.Accept.html b/pr/3514/docs/iroh/endpoint/struct.Accept.html
index 6b202d3e50..5453a95cab 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Accept.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Accept.html
@@ -18,10 +18,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html b/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
index 1fd37c94d4..724b764538 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
index 51edf23f3d..5014777bb6 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Builder.html b/pr/3514/docs/iroh/endpoint/struct.Builder.html
index 634092ba1c..07049e8552 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Builder.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Builder.html
@@ -54,12 +54,12 @@ n0.computer dns server.
This will by default use N0_DNS_PKARR_RELAY_PROD.
When in tests, or when the test-utils feature is enabled, this will use the
N0_DNS_PKARR_RELAY_STAGING.
-
Sourcepub fn discovery_dht(self) -> Self
Configures the endpoint to also use the mainline DHT with default settings.
+Sourcepub fn discovery_dht(self) -> Self
Available on crate feature discovery-pkarr-dht only.
Configures the endpoint to also use the mainline DHT with default settings.
This is equivalent to adding a crate::discovery::pkarr::dht::DhtDiscovery
with default settings. Note that DhtDiscovery has various more advanced
configuration options. If you need any of those, you should manually
create a DhtDiscovery and add it with Builder::add_discovery.
-Sourcepub fn discovery_local_network(self) -> Self
Configures the endpoint to also use local network discovery.
+Sourcepub fn discovery_local_network(self) -> Self
Available on crate feature discovery-local-network only.
Configures the endpoint to also use local network discovery.
This is equivalent to adding a crate::discovery::mdns::MdnsDiscovery
with default settings. Note that MdnsDiscovery has various more advanced
configuration options. If you need any of those, you should manually
@@ -78,7 +78,7 @@ 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
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 node addresses if
crate::discovery::dns::DnsDiscovery is configured.
By default, a new DNS resolver is created which is configured to use the
@@ -98,9 +98,9 @@ a
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 insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
Skip verification of SSL certificates from relay servers
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
Available on crate feature test-utils only.
Skip verification of SSL certificates from relay servers
May only be used in tests.
-Sourcepub fn path_selection(self, path_selection: PathSelection) -> Self
This implies we only use the relay to communicate
+
Sourcepub fn path_selection(self, path_selection: PathSelection) -> Self
Available on crate feature test-utils only.
This implies we only use the relay to communicate
and do not attempt to do any hole punching.
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
diff --git a/pr/3514/docs/iroh/endpoint/struct.Connecting.html b/pr/3514/docs/iroh/endpoint/struct.Connecting.html
index bc09f88e65..ca039bb20a 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Connecting.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Connecting.html
@@ -54,10 +54,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -100,14 +100,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -137,7 +137,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
index eecfbb0e23..092b95e89c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
@@ -96,7 +96,7 @@ to ensure that the NodeAddr will contain enough information to allo
to be dialable by a remote endpoint over the internet.
You can use the Endpoint::watch_node_addr method to get updates when the NodeAddr
changes.
-
Sourcepub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
Sourcepub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
Available on non-wasm_browser only.
Returns a Watcher for the current NodeAddr for this endpoint.
The observed NodeAddr will have the current RelayUrl and direct addresses.
use iroh::{Endpoint, Watcher};
@@ -155,11 +155,11 @@ become inaccessible.
Will return None if we do not have any address information for the given node_id.
Sourcepub fn latency(&self, node_id: NodeId) -> Option<Duration>
Returns the currently lowest latency for this node.
Will return None if we do not have any address information for the given node_id.
-Sourcepub fn dns_resolver(&self) -> &DnsResolver
Returns the DNS resolver used in this Endpoint.
+Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
Returns the DNS resolver used in this Endpoint.
Sourcepub fn discovery(&self) -> &ConcurrentDiscovery
Returns the discovery mechanism, if configured.
See Builder::discovery.
-Sourcepub fn metrics(&self) -> &EndpointMetrics
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:
diff --git a/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html b/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
index 532ab31338..b440826d41 100644
--- a/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
+++ b/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
@@ -18,10 +18,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -101,7 +101,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
index 2bc9c37c4b..cd17591f00 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
index 212288f8c2..25febd17e2 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
index 11b48fbb04..b06cc6a844 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
index 6b6ed92006..86a258a62c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
@@ -82,9 +82,9 @@ exhaustion in most contexts.
§impl ServerConfig
pub fn with_single_cert(
cert_chain: Vec<CertificateDer<'static>>,
key: PrivateKeyDer<'static>,
-) -> Result<ServerConfig, Error>
Create a server config with the given certificate chain to be presented to clients
+) -> Result<ServerConfig, Error>Available on crate features rustls-aws-lc-rs or rustls-ring only.Create a server config with the given certificate chain to be presented to clients
Uses a randomized handshake token key.
-§impl ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
Create a server config with the given crypto::ServerConfig
+§impl ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
Available on crate features aws-lc-rs or ring only.
Create a server config with the given crypto::ServerConfig
Uses a randomized handshake token key.
Trait Implementations§
§impl Clone for ServerConfig
§fn clone(&self) -> ServerConfig
Returns a copy 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 ServerConfig
§impl !RefUnwindSafe for ServerConfig
§impl Send for ServerConfig
§impl Sync for ServerConfig
§impl Unpin for ServerConfig
§impl !UnwindSafe for ServerConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
index 33693f4f40..518d7f97c9 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
@@ -19,10 +19,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -65,14 +65,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
diff --git a/pr/3514/docs/iroh/index.html b/pr/3514/docs/iroh/index.html
index d2098ddf1f..18c995edcf 100644
--- a/pr/3514/docs/iroh/index.html
+++ b/pr/3514/docs/iroh/index.html
@@ -178,5 +178,5 @@ connecting using only the <
Ok(())
}
Please see the examples directory for more nuanced examples.
-Re-exports§
Modules§
- defaults
- Default values used in
iroh - discovery
- Node address discovery.
- dns
- This module exports a DNS resolver, which is also the default resolver used in the
-
crate::Endpoint if no custom resolver is configured. - endpoint
- The
Endpoint allows establishing connections to other iroh nodes. - metrics
- Co-locating all of the iroh metrics structs
- net_
report - Checks the network conditions from the current host.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protocol
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_
utils - Internal utilities to support testing.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Traits§
- Watcher
- A handle to a value that’s represented by one or more underlying [
Watchable]s.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
\ No newline at end of file
+Re-exports§
Modules§
- defaults
- Default values used in
iroh - discovery
- Node address discovery.
- dns
Non-wasm_browser - This module exports a DNS resolver, which is also the default resolver used in the
+
crate::Endpoint if no custom resolver is configured. - endpoint
- The
Endpoint allows establishing connections to other iroh nodes. - metrics
- Co-locating all of the iroh metrics structs
- net_
report - Checks the network conditions from the current host.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protocol
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_
utils test-utils - Internal utilities to support testing.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Traits§
- Watcher
- A handle to a value that’s represented by one or more underlying [
Watchable]s.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/metrics/index.html b/pr/3514/docs/iroh/metrics/index.html
index d8f680b832..5c703d4a2a 100644
--- a/pr/3514/docs/iroh/metrics/index.html
+++ b/pr/3514/docs/iroh/metrics/index.html
@@ -1,2 +1,2 @@
iroh::metrics - Rust Expand description
Co-locating all of the iroh metrics structs
-Re-exports§
pub use crate::net_report::Metrics as NetReportMetrics;
Structs§
- Endpoint
Metrics - Metrics collected by an
crate::endpoint::Endpoint. - Magicsock
Metrics - Enum of metrics for the module
- Portmap
Metrics - Enum of metrics for the module
- Relay
Metrics - Metrics tracked for the relay server
\ No newline at end of file
+Re-exports§
pub use crate::net_report::Metrics as NetReportMetrics;
Structs§
- Endpoint
Metrics - Metrics collected by an
crate::endpoint::Endpoint. - Magicsock
Metrics - Enum of metrics for the module
- Portmap
Metrics Non-wasm_browser - Enum of metrics for the module
- Relay
Metrics test-utils - Metrics tracked for the relay server
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html b/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
index feb83ae3d0..abf95ee874 100644
--- a/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
@@ -6,7 +6,7 @@
See crate::endpoint::Endpoint::metrics for details.
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.§magicsock: Arc<MagicsockMetrics>Metrics collected by the endpoint’s socket.
§net_report: Arc<NetReportMetrics>Metrics collected by net reports.
-§portmapper: Arc<PortmapMetrics>Metrics collected by the portmapper service.
+§portmapper: Arc<PortmapMetrics>Available on non-wasm_browser only.Metrics collected by the portmapper service.
Trait Implementations§
Source§impl Clone for EndpointMetrics
Source§fn clone(&self) -> EndpointMetrics
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointMetrics
Source§impl Default for EndpointMetrics
Source§fn default() -> EndpointMetrics
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for EndpointMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl MetricsGroupSet for EndpointMetrics
Auto Trait Implementations§
§impl Freeze for EndpointMetrics
§impl RefUnwindSafe for EndpointMetrics
§impl Send for EndpointMetrics
§impl Sync for EndpointMetrics
§impl Unpin for EndpointMetrics
§impl UnwindSafe for EndpointMetrics
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
index 71ebbfa1c6..f396502ecf 100644
--- a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
@@ -10,7 +10,7 @@
pub upnp_gateway_updated: Counter,
pub pcp_probes: Counter,
pub pcp_available: Counter,
-}Expand description
Enum of metrics for the module
+}Available on non-wasm_browser only.Expand description
Enum of metrics for the module
Fields§
§probes_started: CounterNumber of probing tasks started.
§local_port_updates: CounterNumber of updates to the local port.
§mapping_attempts: CounterNumber of mapping tasks started.
diff --git a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
index 560a6dc0d7..0d269892b0 100644
--- a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
@@ -18,7 +18,7 @@
pub accepts: Counter,
pub disconnects: Counter,
pub unique_client_keys: Counter,
-}Expand description
Metrics tracked for the relay server
+}Available on crate feature test-utils only.Expand description
Metrics tracked for the relay server
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
§bytes_recv: CounterBytes received from a FrameType::SendPacket
§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
diff --git a/pr/3514/docs/iroh/net_report/enum.Probe.html b/pr/3514/docs/iroh/net_report/enum.Probe.html
index c524906642..0e14a0b4dd 100644
--- a/pr/3514/docs/iroh/net_report/enum.Probe.html
+++ b/pr/3514/docs/iroh/net_report/enum.Probe.html
@@ -4,8 +4,8 @@
QadIpv6 = 2,
}Expand description
The protocol used to time a node’s latency.
Variants§
§Https = 0
HTTPS
-§QadIpv4 = 1
QUIC Address Discovery Ipv4
-§QadIpv6 = 2
QUIC Address Discovery Ipv6
+§QadIpv4 = 1
Available on non-wasm_browser only.QUIC Address Discovery Ipv4
+§QadIpv6 = 2
Available on non-wasm_browser only.QUIC Address Discovery Ipv6
Trait Implementations§
Source§impl Ord for Probe
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/3514/docs/iroh/net_report/index.html b/pr/3514/docs/iroh/net_report/index.html
index dc297a94dc..5b2223108c 100644
--- a/pr/3514/docs/iroh/net_report/index.html
+++ b/pr/3514/docs/iroh/net_report/index.html
@@ -2,4 +2,4 @@
NetReport is responsible for finding out the network conditions of the current host, like
whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is
etc and reachability to the configured relays.
-
Structs§
- Metrics
- Enum of metrics for the module
- Options
- Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
+Structs§
- Metrics
- Enum of metrics for the module
- Options
Non-wasm_browser - Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/net_report/struct.Options.html b/pr/3514/docs/iroh/net_report/struct.Options.html
index 9b9f76f3f6..fa199a8c37 100644
--- a/pr/3514/docs/iroh/net_report/struct.Options.html
+++ b/pr/3514/docs/iroh/net_report/struct.Options.html
@@ -1,10 +1,10 @@
-Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Expand description
Options for running probes
+Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Available on non-wasm_browser only.Expand description
Options for running probes
By default, will run Https probes.
Use Options::quic_config to enable QUIC address discovery.
Implementations§
Source§impl Options
Sourcepub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
Enable quic probes
Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Skip cert verification
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Available on crate feature test-utils only.
Skip cert verification
Sourcepub fn as_protocols(&self) -> BTreeSet<Probe>
Turn the options into set of valid protocols
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Options
§impl !RefUnwindSafe for Options
§impl Send for Options
§impl Sync for Options
§impl Unpin for Options
§impl !UnwindSafe for Options
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
index 24cf23b16a..ec8f88c330 100644
--- a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
+++ b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
@@ -1,5 +1,5 @@
RelayLatencies in iroh::net_report - Rust pub struct RelayLatencies { /* private fields */ }
Expand description
Latencies per relay node.
-Implementations§
Source§impl RelayLatencies
Sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
Source§impl Clone for RelayLatencies
Source§fn clone(&self) -> RelayLatencies
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RelayLatencies
Source§impl Default for RelayLatencies
Source§fn default() -> RelayLatencies
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for RelayLatencies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for RelayLatencies
Source§impl Serialize for RelayLatencies
Source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
index 78f05a321d..45df56531d 100644
--- a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
index a0dcc86190..b87d07c1de 100644
--- a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
+++ b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
@@ -4,6 +4,6 @@
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Required Methods§
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§
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/struct.NodeAddr.html b/pr/3514/docs/iroh/struct.NodeAddr.html
index e7e779d25b..14279600a5 100644
--- a/pr/3514/docs/iroh/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh/struct.NodeAddr.html
@@ -44,7 +44,7 @@ whenever a connection to other nodes needs to be established.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
Source§impl Hash for NodeAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/pr/3514/docs/iroh/struct.PublicKey.html b/pr/3514/docs/iroh/struct.PublicKey.html
index b700c8a17c..748f989107 100644
--- a/pr/3514/docs/iroh/struct.PublicKey.html
+++ b/pr/3514/docs/iroh/struct.PublicKey.html
@@ -109,7 +109,7 @@ indices from [N - M, N) (excluding the index N itself)
Source§impl Ord for PublicKey
Source§impl PartialEq for PublicKey
Source§fn eq(&self, other: &PublicKey) -> bool
Tests for self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
Tests for !=. The default implementation is almost always sufficient,
diff --git a/pr/3514/docs/iroh/struct.RelayUrl.html b/pr/3514/docs/iroh/struct.RelayUrl.html
index b2093b812e..04238b61fa 100644
--- a/pr/3514/docs/iroh/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh/struct.RelayUrl.html
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
index 24335b059d..b4c43a77a8 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-
run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server with QUIC enabled suitable for tests.
+run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
index 2427917da9..dc1d67d062 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,6 +1,6 @@
run_relay_server_with in iroh::test_utils - Rust pub async fn run_relay_server_with(
quic: bool,
-) -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server), SpawnError>Available on crate feature 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.
The return value is similar to run_relay_server.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/index.html b/pr/3514/docs/iroh/test_utils/index.html
index 5ab9442bcf..99408b93c8 100644
--- a/pr/3514/docs/iroh/test_utils/index.html
+++ b/pr/3514/docs/iroh/test_utils/index.html
@@ -1,2 +1,2 @@
-iroh::test_utils - Rust Expand description
Internal utilities to support testing.
+iroh::test_utils - Rust Available on crate feature test-utils only.Expand description
Internal utilities to support testing.
Structs§
- Cleanup
DropGuard - A drop guard to clean up test infrastructure.
- DnsPkarr
Server - Handle and drop guard for test DNS and Pkarr servers.
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/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
index c557fa7870..c5444183b5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
+++ b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
@@ -1,4 +1,4 @@
-CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Expand description
A drop guard to clean up test infrastructure.
+CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Available on crate feature test-utils only.Expand description
A drop guard to clean up test infrastructure.
After dropping the test infrastructure will asynchronously shutdown and release its
resources.
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for CleanupDropGuard
§impl !RefUnwindSafe for CleanupDropGuard
§impl Send for CleanupDropGuard
§impl Sync for CleanupDropGuard
§impl Unpin for CleanupDropGuard
§impl !UnwindSafe for CleanupDropGuard
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
index d46ae8d5e1..ccd49d4ef5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -3,7 +3,7 @@
pub nameserver: SocketAddr,
pub pkarr_url: Url,
/* private fields */
-}Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}Available on crate feature test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
§nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
index a08dddd86b..f4c1157e70 100644
--- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html
+++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
@@ -13,7 +13,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
Error when deserialising a PublicKey or a SecretKey.
+}Available on crate feature key only.Variants§
§Decode
Error when decoding.
§Key
Error when decoding the public key.
§DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html
index 817a16cc72..b1ee851ad2 100644
--- a/pr/3514/docs/iroh_base/index.html
+++ b/pr/3514/docs/iroh_base/index.html
@@ -1,5 +1,5 @@
iroh_base - Rust Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation.
+
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
-provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
+provider.Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParseError relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh_base/struct.NodeAddr.html b/pr/3514/docs/iroh_base/struct.NodeAddr.html
index 839a0f8fe6..f4fde16166 100644
--- a/pr/3514/docs/iroh_base/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh_base/struct.NodeAddr.html
@@ -2,7 +2,7 @@
pub node_id: NodeId,
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
-}Expand description
Network-level addressing information for an iroh node.
+}Available on crate feature key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to
contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
pub struct MdnsDiscoveryBuilder { /* private fields */ }Expand description
Builder for MdnsDiscovery.
pub struct MdnsDiscoveryBuilder { /* private fields */ }discovery-local-network only.Expand description
Builder for MdnsDiscovery.
Implementations§
Source§impl MdnsDiscoveryBuilder
impl MdnsDiscoveryBuilder
Sourcepub fn advertise(self, advertise: bool) -> Self
pub fn advertise(self, advertise: bool) -> Self
Sets whether this node should advertise its presence.
Default is true.
Sourcepub fn service_name(self, service_name: impl Into<String>) -> Self
pub fn service_name(self, service_name: impl Into<String>) -> Self
Sets a custom service name.
diff --git a/pr/3514/docs/iroh/discovery/pkarr/dht/index.html b/pr/3514/docs/iroh/discovery/pkarr/dht/index.html index a93b8efb9c..cf1fec8f01 100644 --- a/pr/3514/docs/iroh/discovery/pkarr/dht/index.html +++ b/pr/3514/docs/iroh/discovery/pkarr/dht/index.html @@ -1,4 +1,4 @@ -Expand description
Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
+discovery-pkarr-dht only.Expand description
Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
This module contains pkarr-based node discovery for iroh which can use both pkarr relay servers as well as the Mainline DHT directly. See the pkarr module for an overview of pkarr.
diff --git a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html index b8ee24bd00..cfac228a91 100644 --- a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html +++ b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.Builder.html @@ -1,4 +1,4 @@ -pub struct Builder { /* private fields */ }Expand description
Builder for DhtDiscovery.
pub struct Builder { /* private fields */ }discovery-pkarr-dht only.Expand description
Builder for DhtDiscovery.
By default, publishing to the DHT is enabled, and relay publishing is disabled.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn secret_key(self, secret_key: SecretKey) -> Self
pub fn secret_key(self, secret_key: SecretKey) -> Self
Sets the secret key to use for signing the DNS packets.
diff --git a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html index d0d3e4b20b..ed5352b949 100644 --- a/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html +++ b/pr/3514/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html @@ -1,4 +1,4 @@ -pub struct DhtDiscovery(/* private fields */);Expand description
Pkarr Mainline DHT and relay server node discovery.
+pub struct DhtDiscovery(/* private fields */);discovery-pkarr-dht only.Expand description
Pkarr Mainline DHT and relay server node discovery.
It stores node addresses in DNS records, signed by the node’s private key, and publishes them to the BitTorrent Mainline DHT. See the pkarr module for more details.
This implements the Discovery trait to be used as a node discovery service which can
diff --git a/pr/3514/docs/iroh/discovery/pkarr/index.html b/pr/3514/docs/iroh/discovery/pkarr/index.html
index 26266c7ce3..043507d251 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/index.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/index.html
@@ -40,4 +40,4 @@ to the application’s needs:
Modules§
- dht
- Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
Structs§
- Pkarr
Publisher - Publisher of node discovery information to a pkarr relay.
- Pkarr
Publisher Builder - Builder for
PkarrPublisher. - Pkarr
Relay Client - A pkarr client to publish [
pkarr::SignedPacket]s to a pkarr relay. - Pkarr
Resolver - Resolver of node discovery information from a pkarr relay.
- Pkarr
Resolver Builder - Builder for
PkarrResolver.
Enums§
Constants§
- DEFAULT_
PKARR_ TTL - Default TTL for the records in the pkarr signed packet.
- DEFAULT_
REPUBLISH_ INTERVAL - Interval in which to republish the node info even if unchanged: 5 minutes.
- N0_
DNS_ PKARR_ RELAY_ PROD - The production pkarr relay run by number 0.
- N0_
DNS_ PKARR_ RELAY_ STAGING - The testing pkarr relay run by number 0.
Modules§
- dht
discovery-pkarr-dht - Pkarr based node discovery for iroh, supporting both relay servers and the DHT.
Structs§
- Pkarr
Publisher - Publisher of node discovery information to a pkarr relay.
- Pkarr
Publisher Builder - Builder for
PkarrPublisher. - Pkarr
Relay Client - A pkarr client to publish [
pkarr::SignedPacket]s to a pkarr relay. - Pkarr
Resolver - Resolver of node discovery information from a pkarr relay.
- Pkarr
Resolver Builder - Builder for
PkarrResolver.
Enums§
Constants§
- DEFAULT_
PKARR_ TTL - Default TTL for the records in the pkarr signed packet.
- DEFAULT_
REPUBLISH_ INTERVAL - Interval in which to republish the node info even if unchanged: 5 minutes.
- N0_
DNS_ PKARR_ RELAY_ PROD - The production pkarr relay run by number 0.
- N0_
DNS_ PKARR_ RELAY_ STAGING - The testing pkarr relay run by number 0.
Default is DEFAULT_PKARR_TTL.
Sourcepub fn republish_interval(self, republish_interval: Duration) -> Self
pub fn republish_interval(self, republish_interval: Duration) -> Self
Sets the interval after which packets are republished even if our node info did not change.
Default is DEFAULT_REPUBLISH_INTERVAL.
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Sets the DNS resolver to use for resolving the pkarr relay URL.
+Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
wasm_browser only.Sets the DNS resolver to use for resolving the pkarr relay URL.
Sourcepub fn build(self, secret_key: SecretKey) -> PkarrPublisher
pub fn build(self, secret_key: SecretKey) -> PkarrPublisher
Builds the PkarrPublisher with the passed secret key for signing packets.
This publisher will be able to publish [pkarr] records for SecretKey.
Trait Implementations§
Source§impl Debug for PkarrPublisherBuilder
impl Debug for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrPublisherBuilder
impl IntoDiscovery for PkarrPublisherBuilder
Source§fn into_discovery(
diff --git a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html
index dca85e4052..31e8c17df1 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html
@@ -3,7 +3,7 @@
fn into_discovery( diff --git a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html index dca85e4052..31e8c17df1 100644 --- a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html +++ b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html @@ -3,7 +3,7 @@
Sourcepub fn with_dns_resolver(
pkarr_relay_url: Url,
dns_resolver: DnsResolver,
-) -> Self
pub fn with_dns_resolver( pkarr_relay_url: Url, dns_resolver: DnsResolver, -) -> Self
Creates a new client while passing a DNS resolver to use.
+) -> Selfwasm_browser only.Creates a new client while passing a DNS resolver to use.
Sourcepub async fn resolve(
&self,
node_id: NodeId,
diff --git a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
index 026fbb96c3..c0cb93ea99 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
@@ -1,6 +1,6 @@
PkarrResolverBuilder in iroh::discovery::pkarr - Rust pub struct PkarrResolverBuilder { /* private fields */ }
Expand description
Builder for PkarrResolver.
-Implementations§
Source§impl PkarrResolverBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Sets the DNS resolver to use for resolving the pkarr relay URL.
+Implementations§
Source§impl PkarrResolverBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
Sets the DNS resolver to use for resolving the pkarr relay URL.
Sourcepub fn build(self) -> PkarrResolver
Creates a PkarrResolver from this builder.
Trait Implementations§
Source§impl Debug for PkarrResolverBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§fn into_discovery(
self,
diff --git a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
index ff13d6c05a..db9a976390 100644
--- a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
+++ b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
@@ -1,7 +1,7 @@
DiscoveryContext in iroh::discovery - Rust pub struct DiscoveryContext<'a> { /* private fields */ }
Expand description
Context about the Endpoint for discovery services.
Implementations§
Source§impl DiscoveryContext<'_>
Sourcepub fn secret_key(&self) -> &SecretKey
Returns the SecretKey of the endpoint.
-Sourcepub fn dns_resolver(&self) -> &DnsResolver
Returns the DnsResolver used by the endpoint.
+Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
Returns the DnsResolver used by the endpoint.
Trait Implementations§
Auto Trait Implementations§
§impl<'a> Freeze for DiscoveryContext<'a>
§impl<'a> !RefUnwindSafe for DiscoveryContext<'a>
§impl<'a> Send for DiscoveryContext<'a>
§impl<'a> Sync for DiscoveryContext<'a>
§impl<'a> Unpin for DiscoveryContext<'a>
§impl<'a> !UnwindSafe for DiscoveryContext<'a>
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/3514/docs/iroh/discovery/struct.NodeInfo.html b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
index 403eebaaa0..d9e2f234c6 100644
--- a/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/discovery/trait.Discovery.html b/pr/3514/docs/iroh/discovery/trait.Discovery.html
index 04a41a6c3b..e5a0286374 100644
--- a/pr/3514/docs/iroh/discovery/trait.Discovery.html
+++ b/pr/3514/docs/iroh/discovery/trait.Discovery.html
@@ -34,4 +34,4 @@ work.
Implementations on Foreign Types§
Implementors§
Source§impl Discovery for DnsDiscovery
Source§impl Discovery for MdnsDiscovery
Source§impl Discovery for DhtDiscovery
Source§impl Discovery for PkarrPublisher
Source§impl Discovery for PkarrResolver
Source§impl Discovery for StaticProvider
Source§impl Discovery for ConcurrentDiscovery
\ No newline at end of file
+) -> Option<BoxStream<Result<DiscoveryItem, DiscoveryError>>>
Implementors§
Source§impl Discovery for DnsDiscovery
Available on non-wasm_browser only. Source§impl Discovery for MdnsDiscovery
Available on crate feature discovery-local-network only. Source§impl Discovery for DhtDiscovery
Available on crate feature discovery-pkarr-dht only. Source§impl Discovery for PkarrPublisher
Source§impl Discovery for PkarrResolver
Source§impl Discovery for StaticProvider
Source§impl Discovery for ConcurrentDiscovery
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html b/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
index 0eb48a1ca3..dae50f9f36 100644
--- a/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
+++ b/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
@@ -23,5 +23,5 @@ creation via the 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 IntoDiscovery for DnsDiscoveryBuilder
Source§impl IntoDiscovery for MdnsDiscoveryBuilder
Source§impl IntoDiscovery for Builder
Source§impl IntoDiscovery for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§impl<T: Discovery> IntoDiscovery for T
Blanket no-op impl of IntoDiscovery for T: Discovery.
+ 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 IntoDiscovery for DnsDiscoveryBuilder
Available on non-wasm_browser only. Source§impl IntoDiscovery for MdnsDiscoveryBuilder
Available on crate feature discovery-local-network only. Source§impl IntoDiscovery for Builder
Available on crate feature discovery-pkarr-dht only. Source§impl IntoDiscovery for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§impl<T: Discovery> IntoDiscovery for T
Blanket no-op impl of IntoDiscovery for T: Discovery.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
index 50d4a20730..db6bf77241 100644
--- a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
+++ b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Expand description
The n0 testing DNS node origin, for production.
+N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
index 58ebca53fc..39f9f7646d 100644
--- a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
+++ b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Expand description
The n0 testing DNS node origin, for testing.
+N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/index.html b/pr/3514/docs/iroh/dns/index.html
index 9006a2fc26..43518a5920 100644
--- a/pr/3514/docs/iroh/dns/index.html
+++ b/pr/3514/docs/iroh/dns/index.html
@@ -1,4 +1,4 @@
-iroh::dns - Rust Expand description
This module exports a DNS resolver, which is also the default resolver used in the
+
iroh::dns - Rust Available on non-wasm_browser only.Expand description
This module exports a DNS resolver, which is also the default resolver used in the
crate::Endpoint if no custom resolver is configured.
The resolver provides methods to resolve domain names to ipv4 and ipv6 addresses,
and to resolve node ids to node addresses.
diff --git a/pr/3514/docs/iroh/dns/struct.DnsResolver.html b/pr/3514/docs/iroh/dns/struct.DnsResolver.html
index 36397fb5d0..9f5504e056 100644
--- a/pr/3514/docs/iroh/dns/struct.DnsResolver.html
+++ b/pr/3514/docs/iroh/dns/struct.DnsResolver.html
@@ -1,4 +1,4 @@
-DnsResolver in iroh::dns - Rust pub struct DnsResolver(/* private fields */);
Expand description
The DNS resolver used throughout iroh.
+DnsResolver in iroh::dns - Rust pub struct DnsResolver(/* private fields */);
Available on non-wasm_browser only.Expand description
The DNS resolver used throughout iroh.
Implementations§
Source§impl DnsResolver
Sourcepub fn new() -> DnsResolver
Creates a new DNS resolver with sensible cross-platform defaults.
We first try to read the system’s resolver from /etc/resolv.conf.
This does not work at least on some Androids, therefore we fallback
diff --git a/pr/3514/docs/iroh/endpoint/enum.PathSelection.html b/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
index ae95c1d723..25731b05ea 100644
--- a/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
+++ b/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
@@ -1,7 +1,7 @@
PathSelection in iroh::endpoint - Rust pub enum PathSelection {
All,
RelayOnly,
-}
Expand description
Defines the mode of path selection for all traffic flowing through
+}Available on crate feature test-utils only.Expand description
Defines the mode of path selection for all traffic flowing through
the endpoint.
Variants§
§All
Uses all available paths
§RelayOnly
Forces all traffic to go exclusively through relays
diff --git a/pr/3514/docs/iroh/endpoint/index.html b/pr/3514/docs/iroh/endpoint/index.html
index a7a8803e76..5acb89986c 100644
--- a/pr/3514/docs/iroh/endpoint/index.html
+++ b/pr/3514/docs/iroh/endpoint/index.html
@@ -8,6 +8,6 @@ more details on how iroh connections work.
Builder to create an Endpoint.
Structs§
- Accept
- Future produced by
Endpoint::accept. - Accept
Bi - Future produced by [
Connection::accept_bi] - Accept
Uni - Future produced by [
Connection::accept_uni] - AckFrequency
Config - Parameters for controlling the peer’s acknowledgement frequency
- Application
Close - Reason given by an application for closing the connection
- Builder
- Builder for
Endpoint. - Chunk
- A chunk of data from the receive stream
- Closed
Stream - Error indicating that a stream has not been opened or has already been finished or reset
- Connect
Options - Options for the
Endpoint::connect_with_opts function. - Connecting
- In-progress connection attempt future
- Connection
- A QUIC connection.
- Connection
Close - Reason given by the transport for closing the connection
- Connection
Stats - Connection statistics
- Crypto
Error - Generic crypto errors
- Direct
Addr - A direct address on which an iroh-node might be contactable.
- Direct
AddrInfo - Information about a direct address.
- Endpoint
- Controls an iroh node, establishing connections with other nodes.
- Export
KeyingMaterialError - Error returned by [Session::export_keying_material].
- Frame
Stats - Number of frames transmitted of each frame type
- Incoming
- An incoming connection for which the server has not yet begun its parts of the
-handshake.
- Incoming
Future - Adaptor to let
Incoming be awaited like a Connecting. - MtuDiscovery
Config - Parameters governing MTU discovery.
- OpenBi
- Future produced by [
Connection::open_bi] - OpenUni
- Future produced by [
Connection::open_uni] - Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by [
Connection::read_datagram] - Recv
Stream - A stream that can only be used to receive data
- Remote
NodeIdError - Retry
Error - Error for attempting to retry an [
Incoming] which already bears a token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
ErrorCode - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
ConnectionHandle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established.
Enums§
- AddNode
AddrError - Alpn
Error - Bind
Error - Connect
Error - Connect
WithOptsError - Connection
Error - Reasons why a connection might be lost
- Connection
Type - The type of connection we have to the endpoint.
- Control
Msg - The type of control message we have received.
- Direct
AddrType - The type of direct address.
- GetMapping
AddressError - Path
Selection - Defines the mode of path selection for all traffic flowing through
+handshake.
- Incoming
Future - Adaptor to let
Incoming be awaited like a Connecting. - MtuDiscovery
Config - Parameters governing MTU discovery.
- OpenBi
- Future produced by [
Connection::open_bi] - OpenUni
- Future produced by [
Connection::open_uni] - Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by [
Connection::read_datagram] - Recv
Stream - A stream that can only be used to receive data
- Remote
NodeIdError - Retry
Error - Error for attempting to retry an [
Incoming] which already bears a token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
ErrorCode - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
ConnectionHandle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established.
Enums§
- AddNode
AddrError - Alpn
Error - Bind
Error - Connect
Error - Connect
WithOptsError - Connection
Error - Reasons why a connection might be lost
- Connection
Type - The type of connection we have to the endpoint.
- Control
Msg - The type of control message we have received.
- Direct
AddrType - The type of direct address.
- GetMapping
AddressError - Path
Selection test-utils - Defines the mode of path selection for all traffic flowing through
the endpoint.
- Read
Error - Errors that arise from reading from a stream.
- Read
ExactError - Errors that arise from reading from a stream.
- Read
ToEndError - Errors from
RecvStream::read_to_end - Relay
Mode - Configuration of the relay servers for an
Endpoint. - Reset
Error - Errors that arise while waiting for a stream to be reset
- Send
DatagramError - Errors that can arise when sending a datagram
- Source
- The origin or source through which an address associated with a remote node
was discovered.
- Stopped
Error - Errors that arise while monitoring for a send stream stop from the peer
- Write
Error - Errors that arise from writing to a stream
Constants§
- ENV_
FORCE_STAGING_RELAYS - Environment variable to force the use of staging relays.
Traits§
- AeadKey
- A key for sealing data with AEAD-based algorithms
- Controller
- Common interface for different congestion controllers
- Controller
Factory - Constructs controllers on demand
- Crypto
ServerConfig - Server-side configuration for the crypto protocol
- Handshake
TokenKey - A pseudo random key for HKDF
Functions§
- default_
relay_mode - Returns the default relay mode.
- force_
staging_infra - Returns
true if the use of staging relays is forced.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/endpoint/struct.Accept.html b/pr/3514/docs/iroh/endpoint/struct.Accept.html
index 6b202d3e50..5453a95cab 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Accept.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Accept.html
@@ -18,10 +18,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html b/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
index 1fd37c94d4..724b764538 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
index 51edf23f3d..5014777bb6 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Builder.html b/pr/3514/docs/iroh/endpoint/struct.Builder.html
index 634092ba1c..07049e8552 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Builder.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Builder.html
@@ -54,12 +54,12 @@ n0.computer dns server.
This will by default use N0_DNS_PKARR_RELAY_PROD.
When in tests, or when the test-utils feature is enabled, this will use the
N0_DNS_PKARR_RELAY_STAGING.
-
Sourcepub fn discovery_dht(self) -> Self
Configures the endpoint to also use the mainline DHT with default settings.
+Sourcepub fn discovery_dht(self) -> Self
Available on crate feature discovery-pkarr-dht only.
Configures the endpoint to also use the mainline DHT with default settings.
This is equivalent to adding a crate::discovery::pkarr::dht::DhtDiscovery
with default settings. Note that DhtDiscovery has various more advanced
configuration options. If you need any of those, you should manually
create a DhtDiscovery and add it with Builder::add_discovery.
-Sourcepub fn discovery_local_network(self) -> Self
Configures the endpoint to also use local network discovery.
+Sourcepub fn discovery_local_network(self) -> Self
Available on crate feature discovery-local-network only.
Configures the endpoint to also use local network discovery.
This is equivalent to adding a crate::discovery::mdns::MdnsDiscovery
with default settings. Note that MdnsDiscovery has various more advanced
configuration options. If you need any of those, you should manually
@@ -78,7 +78,7 @@ 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
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 node addresses if
crate::discovery::dns::DnsDiscovery is configured.
By default, a new DNS resolver is created which is configured to use the
@@ -98,9 +98,9 @@ a
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 insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
Skip verification of SSL certificates from relay servers
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
Available on crate feature test-utils only.
Skip verification of SSL certificates from relay servers
May only be used in tests.
-Sourcepub fn path_selection(self, path_selection: PathSelection) -> Self
This implies we only use the relay to communicate
+
Sourcepub fn path_selection(self, path_selection: PathSelection) -> Self
Available on crate feature test-utils only.
This implies we only use the relay to communicate
and do not attempt to do any hole punching.
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
diff --git a/pr/3514/docs/iroh/endpoint/struct.Connecting.html b/pr/3514/docs/iroh/endpoint/struct.Connecting.html
index bc09f88e65..ca039bb20a 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Connecting.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Connecting.html
@@ -54,10 +54,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -100,14 +100,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -137,7 +137,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
index eecfbb0e23..092b95e89c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
@@ -96,7 +96,7 @@ to ensure that the NodeAddr will contain enough information to allo
to be dialable by a remote endpoint over the internet.
You can use the Endpoint::watch_node_addr method to get updates when the NodeAddr
changes.
-
Sourcepub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
Sourcepub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
Available on non-wasm_browser only.
Returns a Watcher for the current NodeAddr for this endpoint.
The observed NodeAddr will have the current RelayUrl and direct addresses.
use iroh::{Endpoint, Watcher};
@@ -155,11 +155,11 @@ become inaccessible.
Will return None if we do not have any address information for the given node_id.
Sourcepub fn latency(&self, node_id: NodeId) -> Option<Duration>
Returns the currently lowest latency for this node.
Will return None if we do not have any address information for the given node_id.
-Sourcepub fn dns_resolver(&self) -> &DnsResolver
Returns the DNS resolver used in this Endpoint.
+Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
Returns the DNS resolver used in this Endpoint.
Sourcepub fn discovery(&self) -> &ConcurrentDiscovery
Returns the discovery mechanism, if configured.
See Builder::discovery.
-Sourcepub fn metrics(&self) -> &EndpointMetrics
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:
diff --git a/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html b/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
index 532ab31338..b440826d41 100644
--- a/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
+++ b/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
@@ -18,10 +18,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -101,7 +101,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
index 2bc9c37c4b..cd17591f00 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
index 212288f8c2..25febd17e2 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
index 11b48fbb04..b06cc6a844 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
index 6b6ed92006..86a258a62c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
@@ -82,9 +82,9 @@ exhaustion in most contexts.
§impl ServerConfig
pub fn with_single_cert(
cert_chain: Vec<CertificateDer<'static>>,
key: PrivateKeyDer<'static>,
-) -> Result<ServerConfig, Error>
Create a server config with the given certificate chain to be presented to clients
+) -> Result<ServerConfig, Error>Available on crate features rustls-aws-lc-rs or rustls-ring only.Create a server config with the given certificate chain to be presented to clients
Uses a randomized handshake token key.
-§impl ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
Create a server config with the given crypto::ServerConfig
+§impl ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
Available on crate features aws-lc-rs or ring only.
Create a server config with the given crypto::ServerConfig
Uses a randomized handshake token key.
Trait Implementations§
§impl Clone for ServerConfig
§fn clone(&self) -> ServerConfig
Returns a copy 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 ServerConfig
§impl !RefUnwindSafe for ServerConfig
§impl Send for ServerConfig
§impl Sync for ServerConfig
§impl Unpin for ServerConfig
§impl !UnwindSafe for ServerConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
index 33693f4f40..518d7f97c9 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
@@ -19,10 +19,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -65,14 +65,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
diff --git a/pr/3514/docs/iroh/index.html b/pr/3514/docs/iroh/index.html
index d2098ddf1f..18c995edcf 100644
--- a/pr/3514/docs/iroh/index.html
+++ b/pr/3514/docs/iroh/index.html
@@ -178,5 +178,5 @@ connecting using only the <
Ok(())
}
Please see the examples directory for more nuanced examples.
-Re-exports§
Modules§
- defaults
- Default values used in
iroh - discovery
- Node address discovery.
- dns
- This module exports a DNS resolver, which is also the default resolver used in the
-
crate::Endpoint if no custom resolver is configured. - endpoint
- The
Endpoint allows establishing connections to other iroh nodes. - metrics
- Co-locating all of the iroh metrics structs
- net_
report - Checks the network conditions from the current host.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protocol
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_
utils - Internal utilities to support testing.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Traits§
- Watcher
- A handle to a value that’s represented by one or more underlying [
Watchable]s.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
\ No newline at end of file
+Re-exports§
Modules§
- defaults
- Default values used in
iroh - discovery
- Node address discovery.
- dns
Non-wasm_browser - This module exports a DNS resolver, which is also the default resolver used in the
+
crate::Endpoint if no custom resolver is configured. - endpoint
- The
Endpoint allows establishing connections to other iroh nodes. - metrics
- Co-locating all of the iroh metrics structs
- net_
report - Checks the network conditions from the current host.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protocol
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_
utils test-utils - Internal utilities to support testing.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Traits§
- Watcher
- A handle to a value that’s represented by one or more underlying [
Watchable]s.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/metrics/index.html b/pr/3514/docs/iroh/metrics/index.html
index d8f680b832..5c703d4a2a 100644
--- a/pr/3514/docs/iroh/metrics/index.html
+++ b/pr/3514/docs/iroh/metrics/index.html
@@ -1,2 +1,2 @@
iroh::metrics - Rust Expand description
Co-locating all of the iroh metrics structs
-Re-exports§
pub use crate::net_report::Metrics as NetReportMetrics;
Structs§
- Endpoint
Metrics - Metrics collected by an
crate::endpoint::Endpoint. - Magicsock
Metrics - Enum of metrics for the module
- Portmap
Metrics - Enum of metrics for the module
- Relay
Metrics - Metrics tracked for the relay server
\ No newline at end of file
+Re-exports§
pub use crate::net_report::Metrics as NetReportMetrics;
Structs§
- Endpoint
Metrics - Metrics collected by an
crate::endpoint::Endpoint. - Magicsock
Metrics - Enum of metrics for the module
- Portmap
Metrics Non-wasm_browser - Enum of metrics for the module
- Relay
Metrics test-utils - Metrics tracked for the relay server
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html b/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
index feb83ae3d0..abf95ee874 100644
--- a/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
@@ -6,7 +6,7 @@
See crate::endpoint::Endpoint::metrics for details.
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.§magicsock: Arc<MagicsockMetrics>Metrics collected by the endpoint’s socket.
§net_report: Arc<NetReportMetrics>Metrics collected by net reports.
-§portmapper: Arc<PortmapMetrics>Metrics collected by the portmapper service.
+§portmapper: Arc<PortmapMetrics>Available on non-wasm_browser only.Metrics collected by the portmapper service.
Trait Implementations§
Source§impl Clone for EndpointMetrics
Source§fn clone(&self) -> EndpointMetrics
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointMetrics
Source§impl Default for EndpointMetrics
Source§fn default() -> EndpointMetrics
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for EndpointMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl MetricsGroupSet for EndpointMetrics
Auto Trait Implementations§
§impl Freeze for EndpointMetrics
§impl RefUnwindSafe for EndpointMetrics
§impl Send for EndpointMetrics
§impl Sync for EndpointMetrics
§impl Unpin for EndpointMetrics
§impl UnwindSafe for EndpointMetrics
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
index 71ebbfa1c6..f396502ecf 100644
--- a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
@@ -10,7 +10,7 @@
pub upnp_gateway_updated: Counter,
pub pcp_probes: Counter,
pub pcp_available: Counter,
-}Expand description
Enum of metrics for the module
+}Available on non-wasm_browser only.Expand description
Enum of metrics for the module
Fields§
§probes_started: CounterNumber of probing tasks started.
§local_port_updates: CounterNumber of updates to the local port.
§mapping_attempts: CounterNumber of mapping tasks started.
diff --git a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
index 560a6dc0d7..0d269892b0 100644
--- a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
@@ -18,7 +18,7 @@
pub accepts: Counter,
pub disconnects: Counter,
pub unique_client_keys: Counter,
-}Expand description
Metrics tracked for the relay server
+}Available on crate feature test-utils only.Expand description
Metrics tracked for the relay server
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
§bytes_recv: CounterBytes received from a FrameType::SendPacket
§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
diff --git a/pr/3514/docs/iroh/net_report/enum.Probe.html b/pr/3514/docs/iroh/net_report/enum.Probe.html
index c524906642..0e14a0b4dd 100644
--- a/pr/3514/docs/iroh/net_report/enum.Probe.html
+++ b/pr/3514/docs/iroh/net_report/enum.Probe.html
@@ -4,8 +4,8 @@
QadIpv6 = 2,
}Expand description
The protocol used to time a node’s latency.
Variants§
§Https = 0
HTTPS
-§QadIpv4 = 1
QUIC Address Discovery Ipv4
-§QadIpv6 = 2
QUIC Address Discovery Ipv6
+§QadIpv4 = 1
Available on non-wasm_browser only.QUIC Address Discovery Ipv4
+§QadIpv6 = 2
Available on non-wasm_browser only.QUIC Address Discovery Ipv6
Trait Implementations§
Source§impl Ord for Probe
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/3514/docs/iroh/net_report/index.html b/pr/3514/docs/iroh/net_report/index.html
index dc297a94dc..5b2223108c 100644
--- a/pr/3514/docs/iroh/net_report/index.html
+++ b/pr/3514/docs/iroh/net_report/index.html
@@ -2,4 +2,4 @@
NetReport is responsible for finding out the network conditions of the current host, like
whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is
etc and reachability to the configured relays.
-
Structs§
- Metrics
- Enum of metrics for the module
- Options
- Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
+Structs§
- Metrics
- Enum of metrics for the module
- Options
Non-wasm_browser - Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/net_report/struct.Options.html b/pr/3514/docs/iroh/net_report/struct.Options.html
index 9b9f76f3f6..fa199a8c37 100644
--- a/pr/3514/docs/iroh/net_report/struct.Options.html
+++ b/pr/3514/docs/iroh/net_report/struct.Options.html
@@ -1,10 +1,10 @@
-Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Expand description
Options for running probes
+Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Available on non-wasm_browser only.Expand description
Options for running probes
By default, will run Https probes.
Use Options::quic_config to enable QUIC address discovery.
Implementations§
Source§impl Options
Sourcepub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
Enable quic probes
Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Skip cert verification
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Available on crate feature test-utils only.
Skip cert verification
Sourcepub fn as_protocols(&self) -> BTreeSet<Probe>
Turn the options into set of valid protocols
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Options
§impl !RefUnwindSafe for Options
§impl Send for Options
§impl Sync for Options
§impl Unpin for Options
§impl !UnwindSafe for Options
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
index 24cf23b16a..ec8f88c330 100644
--- a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
+++ b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
@@ -1,5 +1,5 @@
RelayLatencies in iroh::net_report - Rust pub struct RelayLatencies { /* private fields */ }
Expand description
Latencies per relay node.
-Implementations§
Source§impl RelayLatencies
Sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
Source§impl Clone for RelayLatencies
Source§fn clone(&self) -> RelayLatencies
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RelayLatencies
Source§impl Default for RelayLatencies
Source§fn default() -> RelayLatencies
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for RelayLatencies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for RelayLatencies
Source§impl Serialize for RelayLatencies
Source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
index 78f05a321d..45df56531d 100644
--- a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
index a0dcc86190..b87d07c1de 100644
--- a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
+++ b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
@@ -4,6 +4,6 @@
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Required Methods§
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§
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/struct.NodeAddr.html b/pr/3514/docs/iroh/struct.NodeAddr.html
index e7e779d25b..14279600a5 100644
--- a/pr/3514/docs/iroh/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh/struct.NodeAddr.html
@@ -44,7 +44,7 @@ whenever a connection to other nodes needs to be established.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
Source§impl Hash for NodeAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/pr/3514/docs/iroh/struct.PublicKey.html b/pr/3514/docs/iroh/struct.PublicKey.html
index b700c8a17c..748f989107 100644
--- a/pr/3514/docs/iroh/struct.PublicKey.html
+++ b/pr/3514/docs/iroh/struct.PublicKey.html
@@ -109,7 +109,7 @@ indices from [N - M, N) (excluding the index N itself)
Source§impl Ord for PublicKey
Source§impl PartialEq for PublicKey
Source§fn eq(&self, other: &PublicKey) -> bool
Tests for self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
Tests for !=. The default implementation is almost always sufficient,
diff --git a/pr/3514/docs/iroh/struct.RelayUrl.html b/pr/3514/docs/iroh/struct.RelayUrl.html
index b2093b812e..04238b61fa 100644
--- a/pr/3514/docs/iroh/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh/struct.RelayUrl.html
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
index 24335b059d..b4c43a77a8 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-
run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server with QUIC enabled suitable for tests.
+run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
index 2427917da9..dc1d67d062 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,6 +1,6 @@
run_relay_server_with in iroh::test_utils - Rust pub async fn run_relay_server_with(
quic: bool,
-) -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server), SpawnError>Available on crate feature 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.
The return value is similar to run_relay_server.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/index.html b/pr/3514/docs/iroh/test_utils/index.html
index 5ab9442bcf..99408b93c8 100644
--- a/pr/3514/docs/iroh/test_utils/index.html
+++ b/pr/3514/docs/iroh/test_utils/index.html
@@ -1,2 +1,2 @@
-iroh::test_utils - Rust Expand description
Internal utilities to support testing.
+iroh::test_utils - Rust Available on crate feature test-utils only.Expand description
Internal utilities to support testing.
Structs§
- Cleanup
DropGuard - A drop guard to clean up test infrastructure.
- DnsPkarr
Server - Handle and drop guard for test DNS and Pkarr servers.
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/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
index c557fa7870..c5444183b5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
+++ b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
@@ -1,4 +1,4 @@
-CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Expand description
A drop guard to clean up test infrastructure.
+CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Available on crate feature test-utils only.Expand description
A drop guard to clean up test infrastructure.
After dropping the test infrastructure will asynchronously shutdown and release its
resources.
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for CleanupDropGuard
§impl !RefUnwindSafe for CleanupDropGuard
§impl Send for CleanupDropGuard
§impl Sync for CleanupDropGuard
§impl Unpin for CleanupDropGuard
§impl !UnwindSafe for CleanupDropGuard
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
index d46ae8d5e1..ccd49d4ef5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -3,7 +3,7 @@
pub nameserver: SocketAddr,
pub pkarr_url: Url,
/* private fields */
-}Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}Available on crate feature test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
§nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
index a08dddd86b..f4c1157e70 100644
--- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html
+++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
@@ -13,7 +13,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
Error when deserialising a PublicKey or a SecretKey.
+}Available on crate feature key only.Variants§
§Decode
Error when decoding.
§Key
Error when decoding the public key.
§DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html
index 817a16cc72..b1ee851ad2 100644
--- a/pr/3514/docs/iroh_base/index.html
+++ b/pr/3514/docs/iroh_base/index.html
@@ -1,5 +1,5 @@
iroh_base - Rust Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation.
+
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
-provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
+provider.Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParseError relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh_base/struct.NodeAddr.html b/pr/3514/docs/iroh_base/struct.NodeAddr.html
index 839a0f8fe6..f4fde16166 100644
--- a/pr/3514/docs/iroh_base/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh_base/struct.NodeAddr.html
@@ -2,7 +2,7 @@
pub node_id: NodeId,
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
-}Expand description
Network-level addressing information for an iroh node.
+}Available on crate feature key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to
contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
pub async fn resolve(
&self,
node_id: NodeId,
diff --git a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
index 026fbb96c3..c0cb93ea99 100644
--- a/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
+++ b/pr/3514/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html
@@ -1,6 +1,6 @@
PkarrResolverBuilder in iroh::discovery::pkarr - Rust pub struct PkarrResolverBuilder { /* private fields */ }
Expand description
Builder for PkarrResolver.
-Implementations§
Source§impl PkarrResolverBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Sets the DNS resolver to use for resolving the pkarr relay URL.
+Implementations§
Source§impl PkarrResolverBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
Sets the DNS resolver to use for resolving the pkarr relay URL.
Sourcepub fn build(self) -> PkarrResolver
Creates a PkarrResolver from this builder.
Trait Implementations§
Source§impl Debug for PkarrResolverBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§fn into_discovery(
self,
diff --git a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
index ff13d6c05a..db9a976390 100644
--- a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
+++ b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
@@ -1,7 +1,7 @@
DiscoveryContext in iroh::discovery - Rust pub struct DiscoveryContext<'a> { /* private fields */ }
Expand description
Context about the Endpoint for discovery services.
Implementations§
Source§impl DiscoveryContext<'_>
Sourcepub fn secret_key(&self) -> &SecretKey
Returns the SecretKey of the endpoint.
-Sourcepub fn dns_resolver(&self) -> &DnsResolver
Returns the DnsResolver used by the endpoint.
+Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
Returns the DnsResolver used by the endpoint.
Trait Implementations§
Auto Trait Implementations§
§impl<'a> Freeze for DiscoveryContext<'a>
§impl<'a> !RefUnwindSafe for DiscoveryContext<'a>
§impl<'a> Send for DiscoveryContext<'a>
§impl<'a> Sync for DiscoveryContext<'a>
§impl<'a> Unpin for DiscoveryContext<'a>
§impl<'a> !UnwindSafe for DiscoveryContext<'a>
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/3514/docs/iroh/discovery/struct.NodeInfo.html b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
index 403eebaaa0..d9e2f234c6 100644
--- a/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/discovery/trait.Discovery.html b/pr/3514/docs/iroh/discovery/trait.Discovery.html
index 04a41a6c3b..e5a0286374 100644
--- a/pr/3514/docs/iroh/discovery/trait.Discovery.html
+++ b/pr/3514/docs/iroh/discovery/trait.Discovery.html
@@ -34,4 +34,4 @@ work.
Implementations on Foreign Types§
Implementors§
Source§impl Discovery for DnsDiscovery
Source§impl Discovery for MdnsDiscovery
Source§impl Discovery for DhtDiscovery
Source§impl Discovery for PkarrPublisher
Source§impl Discovery for PkarrResolver
Source§impl Discovery for StaticProvider
Source§impl Discovery for ConcurrentDiscovery
\ No newline at end of file
+) -> Option<BoxStream<Result<DiscoveryItem, DiscoveryError>>>
Implementors§
Source§impl Discovery for DnsDiscovery
Available on non-wasm_browser only. Source§impl Discovery for MdnsDiscovery
Available on crate feature discovery-local-network only. Source§impl Discovery for DhtDiscovery
Available on crate feature discovery-pkarr-dht only. Source§impl Discovery for PkarrPublisher
Source§impl Discovery for PkarrResolver
Source§impl Discovery for StaticProvider
Source§impl Discovery for ConcurrentDiscovery
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html b/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
index 0eb48a1ca3..dae50f9f36 100644
--- a/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
+++ b/pr/3514/docs/iroh/discovery/trait.IntoDiscovery.html
@@ -23,5 +23,5 @@ creation via the 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 IntoDiscovery for DnsDiscoveryBuilder
Source§impl IntoDiscovery for MdnsDiscoveryBuilder
Source§impl IntoDiscovery for Builder
Source§impl IntoDiscovery for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§impl<T: Discovery> IntoDiscovery for T
Blanket no-op impl of IntoDiscovery for T: Discovery.
+ 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 IntoDiscovery for DnsDiscoveryBuilder
Available on non-wasm_browser only. Source§impl IntoDiscovery for MdnsDiscoveryBuilder
Available on crate feature discovery-local-network only. Source§impl IntoDiscovery for Builder
Available on crate feature discovery-pkarr-dht only. Source§impl IntoDiscovery for PkarrPublisherBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
Source§impl<T: Discovery> IntoDiscovery for T
Blanket no-op impl of IntoDiscovery for T: Discovery.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
index 50d4a20730..db6bf77241 100644
--- a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
+++ b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Expand description
The n0 testing DNS node origin, for production.
+N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
index 58ebca53fc..39f9f7646d 100644
--- a/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
+++ b/pr/3514/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Expand description
The n0 testing DNS node origin, for testing.
+N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/dns/index.html b/pr/3514/docs/iroh/dns/index.html
index 9006a2fc26..43518a5920 100644
--- a/pr/3514/docs/iroh/dns/index.html
+++ b/pr/3514/docs/iroh/dns/index.html
@@ -1,4 +1,4 @@
-iroh::dns - Rust Expand description
This module exports a DNS resolver, which is also the default resolver used in the
+
iroh::dns - Rust Available on non-wasm_browser only.Expand description
This module exports a DNS resolver, which is also the default resolver used in the
crate::Endpoint if no custom resolver is configured.
The resolver provides methods to resolve domain names to ipv4 and ipv6 addresses,
and to resolve node ids to node addresses.
diff --git a/pr/3514/docs/iroh/dns/struct.DnsResolver.html b/pr/3514/docs/iroh/dns/struct.DnsResolver.html
index 36397fb5d0..9f5504e056 100644
--- a/pr/3514/docs/iroh/dns/struct.DnsResolver.html
+++ b/pr/3514/docs/iroh/dns/struct.DnsResolver.html
@@ -1,4 +1,4 @@
-DnsResolver in iroh::dns - Rust pub struct DnsResolver(/* private fields */);
Expand description
The DNS resolver used throughout iroh.
+DnsResolver in iroh::dns - Rust pub struct DnsResolver(/* private fields */);
Available on non-wasm_browser only.Expand description
The DNS resolver used throughout iroh.
Implementations§
Source§impl DnsResolver
Sourcepub fn new() -> DnsResolver
Creates a new DNS resolver with sensible cross-platform defaults.
We first try to read the system’s resolver from /etc/resolv.conf.
This does not work at least on some Androids, therefore we fallback
diff --git a/pr/3514/docs/iroh/endpoint/enum.PathSelection.html b/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
index ae95c1d723..25731b05ea 100644
--- a/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
+++ b/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
@@ -1,7 +1,7 @@
PathSelection in iroh::endpoint - Rust pub enum PathSelection {
All,
RelayOnly,
-}
Expand description
Defines the mode of path selection for all traffic flowing through
+}Available on crate feature test-utils only.Expand description
Defines the mode of path selection for all traffic flowing through
the endpoint.
Variants§
§All
Uses all available paths
§RelayOnly
Forces all traffic to go exclusively through relays
diff --git a/pr/3514/docs/iroh/endpoint/index.html b/pr/3514/docs/iroh/endpoint/index.html
index a7a8803e76..5acb89986c 100644
--- a/pr/3514/docs/iroh/endpoint/index.html
+++ b/pr/3514/docs/iroh/endpoint/index.html
@@ -8,6 +8,6 @@ more details on how iroh connections work.
Builder to create an Endpoint.
Structs§
- Accept
- Future produced by
Endpoint::accept. - Accept
Bi - Future produced by [
Connection::accept_bi] - Accept
Uni - Future produced by [
Connection::accept_uni] - AckFrequency
Config - Parameters for controlling the peer’s acknowledgement frequency
- Application
Close - Reason given by an application for closing the connection
- Builder
- Builder for
Endpoint. - Chunk
- A chunk of data from the receive stream
- Closed
Stream - Error indicating that a stream has not been opened or has already been finished or reset
- Connect
Options - Options for the
Endpoint::connect_with_opts function. - Connecting
- In-progress connection attempt future
- Connection
- A QUIC connection.
- Connection
Close - Reason given by the transport for closing the connection
- Connection
Stats - Connection statistics
- Crypto
Error - Generic crypto errors
- Direct
Addr - A direct address on which an iroh-node might be contactable.
- Direct
AddrInfo - Information about a direct address.
- Endpoint
- Controls an iroh node, establishing connections with other nodes.
- Export
KeyingMaterialError - Error returned by [Session::export_keying_material].
- Frame
Stats - Number of frames transmitted of each frame type
- Incoming
- An incoming connection for which the server has not yet begun its parts of the
-handshake.
- Incoming
Future - Adaptor to let
Incoming be awaited like a Connecting. - MtuDiscovery
Config - Parameters governing MTU discovery.
- OpenBi
- Future produced by [
Connection::open_bi] - OpenUni
- Future produced by [
Connection::open_uni] - Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by [
Connection::read_datagram] - Recv
Stream - A stream that can only be used to receive data
- Remote
NodeIdError - Retry
Error - Error for attempting to retry an [
Incoming] which already bears a token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
ErrorCode - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
ConnectionHandle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established.
Enums§
- AddNode
AddrError - Alpn
Error - Bind
Error - Connect
Error - Connect
WithOptsError - Connection
Error - Reasons why a connection might be lost
- Connection
Type - The type of connection we have to the endpoint.
- Control
Msg - The type of control message we have received.
- Direct
AddrType - The type of direct address.
- GetMapping
AddressError - Path
Selection - Defines the mode of path selection for all traffic flowing through
+handshake.
- Incoming
Future - Adaptor to let
Incoming be awaited like a Connecting. - MtuDiscovery
Config - Parameters governing MTU discovery.
- OpenBi
- Future produced by [
Connection::open_bi] - OpenUni
- Future produced by [
Connection::open_uni] - Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by [
Connection::read_datagram] - Recv
Stream - A stream that can only be used to receive data
- Remote
NodeIdError - Retry
Error - Error for attempting to retry an [
Incoming] which already bears a token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
ErrorCode - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
ConnectionHandle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established.
Enums§
- AddNode
AddrError - Alpn
Error - Bind
Error - Connect
Error - Connect
WithOptsError - Connection
Error - Reasons why a connection might be lost
- Connection
Type - The type of connection we have to the endpoint.
- Control
Msg - The type of control message we have received.
- Direct
AddrType - The type of direct address.
- GetMapping
AddressError - Path
Selection test-utils - Defines the mode of path selection for all traffic flowing through
the endpoint.
- Read
Error - Errors that arise from reading from a stream.
- Read
ExactError - Errors that arise from reading from a stream.
- Read
ToEndError - Errors from
RecvStream::read_to_end - Relay
Mode - Configuration of the relay servers for an
Endpoint. - Reset
Error - Errors that arise while waiting for a stream to be reset
- Send
DatagramError - Errors that can arise when sending a datagram
- Source
- The origin or source through which an address associated with a remote node
was discovered.
- Stopped
Error - Errors that arise while monitoring for a send stream stop from the peer
- Write
Error - Errors that arise from writing to a stream
Constants§
- ENV_
FORCE_STAGING_RELAYS - Environment variable to force the use of staging relays.
Traits§
- AeadKey
- A key for sealing data with AEAD-based algorithms
- Controller
- Common interface for different congestion controllers
- Controller
Factory - Constructs controllers on demand
- Crypto
ServerConfig - Server-side configuration for the crypto protocol
- Handshake
TokenKey - A pseudo random key for HKDF
Functions§
- default_
relay_mode - Returns the default relay mode.
- force_
staging_infra - Returns
true if the use of staging relays is forced.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/endpoint/struct.Accept.html b/pr/3514/docs/iroh/endpoint/struct.Accept.html
index 6b202d3e50..5453a95cab 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Accept.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Accept.html
@@ -18,10 +18,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html b/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
index 1fd37c94d4..724b764538 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
index 51edf23f3d..5014777bb6 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Builder.html b/pr/3514/docs/iroh/endpoint/struct.Builder.html
index 634092ba1c..07049e8552 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Builder.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Builder.html
@@ -54,12 +54,12 @@ n0.computer dns server.
This will by default use N0_DNS_PKARR_RELAY_PROD.
When in tests, or when the test-utils feature is enabled, this will use the
N0_DNS_PKARR_RELAY_STAGING.
-
Sourcepub fn discovery_dht(self) -> Self
Configures the endpoint to also use the mainline DHT with default settings.
+Sourcepub fn discovery_dht(self) -> Self
Available on crate feature discovery-pkarr-dht only.
Configures the endpoint to also use the mainline DHT with default settings.
This is equivalent to adding a crate::discovery::pkarr::dht::DhtDiscovery
with default settings. Note that DhtDiscovery has various more advanced
configuration options. If you need any of those, you should manually
create a DhtDiscovery and add it with Builder::add_discovery.
-Sourcepub fn discovery_local_network(self) -> Self
Configures the endpoint to also use local network discovery.
+Sourcepub fn discovery_local_network(self) -> Self
Available on crate feature discovery-local-network only.
Configures the endpoint to also use local network discovery.
This is equivalent to adding a crate::discovery::mdns::MdnsDiscovery
with default settings. Note that MdnsDiscovery has various more advanced
configuration options. If you need any of those, you should manually
@@ -78,7 +78,7 @@ 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
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 node addresses if
crate::discovery::dns::DnsDiscovery is configured.
By default, a new DNS resolver is created which is configured to use the
@@ -98,9 +98,9 @@ a
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 insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
Skip verification of SSL certificates from relay servers
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
Available on crate feature test-utils only.
Skip verification of SSL certificates from relay servers
May only be used in tests.
-Sourcepub fn path_selection(self, path_selection: PathSelection) -> Self
This implies we only use the relay to communicate
+
Sourcepub fn path_selection(self, path_selection: PathSelection) -> Self
Available on crate feature test-utils only.
This implies we only use the relay to communicate
and do not attempt to do any hole punching.
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
diff --git a/pr/3514/docs/iroh/endpoint/struct.Connecting.html b/pr/3514/docs/iroh/endpoint/struct.Connecting.html
index bc09f88e65..ca039bb20a 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Connecting.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Connecting.html
@@ -54,10 +54,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -100,14 +100,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -137,7 +137,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
index eecfbb0e23..092b95e89c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
@@ -96,7 +96,7 @@ to ensure that the NodeAddr will contain enough information to allo
to be dialable by a remote endpoint over the internet.
You can use the Endpoint::watch_node_addr method to get updates when the NodeAddr
changes.
-
Sourcepub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
Sourcepub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
Available on non-wasm_browser only.
Returns a Watcher for the current NodeAddr for this endpoint.
The observed NodeAddr will have the current RelayUrl and direct addresses.
use iroh::{Endpoint, Watcher};
@@ -155,11 +155,11 @@ become inaccessible.
Will return None if we do not have any address information for the given node_id.
Sourcepub fn latency(&self, node_id: NodeId) -> Option<Duration>
Returns the currently lowest latency for this node.
Will return None if we do not have any address information for the given node_id.
-Sourcepub fn dns_resolver(&self) -> &DnsResolver
Returns the DNS resolver used in this Endpoint.
+Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
Returns the DNS resolver used in this Endpoint.
Sourcepub fn discovery(&self) -> &ConcurrentDiscovery
Returns the discovery mechanism, if configured.
See Builder::discovery.
-Sourcepub fn metrics(&self) -> &EndpointMetrics
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:
diff --git a/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html b/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
index 532ab31338..b440826d41 100644
--- a/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
+++ b/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html
@@ -18,10 +18,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -101,7 +101,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
index 2bc9c37c4b..cd17591f00 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
index 212288f8c2..25febd17e2 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
index 11b48fbb04..b06cc6a844 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
Flattens the execution of this future when the successful result of this
+ Self: Sized,Available on crate feature sink only.Flattens the execution of this future when the successful result of this
future is a [Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
Maps this future’s success value to a different value. Read more§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
index 6b6ed92006..86a258a62c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
@@ -82,9 +82,9 @@ exhaustion in most contexts.
§impl ServerConfig
pub fn with_single_cert(
cert_chain: Vec<CertificateDer<'static>>,
key: PrivateKeyDer<'static>,
-) -> Result<ServerConfig, Error>
Create a server config with the given certificate chain to be presented to clients
+) -> Result<ServerConfig, Error>Available on crate features rustls-aws-lc-rs or rustls-ring only.Create a server config with the given certificate chain to be presented to clients
Uses a randomized handshake token key.
-§impl ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
Create a server config with the given crypto::ServerConfig
+§impl ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
Available on crate features aws-lc-rs or ring only.
Create a server config with the given crypto::ServerConfig
Uses a randomized handshake token key.
Trait Implementations§
§impl Clone for ServerConfig
§fn clone(&self) -> ServerConfig
Returns a copy 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 ServerConfig
§impl !RefUnwindSafe for ServerConfig
§impl Send for ServerConfig
§impl Sync for ServerConfig
§impl Unpin for ServerConfig
§impl !UnwindSafe for ServerConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
index 33693f4f40..518d7f97c9 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
@@ -19,10 +19,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more§impl<T> FutureExt for T
Available on crate features std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
Available on crate feature std only.Catches panics while polling the future. Read more§impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -65,14 +65,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
Do something with the output of a future before passing it on. Read more§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more Available on crate feature std only.Create a cloneable handle to this future where all handles will resolve
to the same result. Read more§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
Turn this future into a future that yields () on completion and sends
+ Self: Sized,Available on crate features channel and std only.Turn this future into a future that yields () on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
Available on crate feature alloc only.Wrap the future in a Box, pinning it. Read more§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
Turns a Future<Output = T> into a
diff --git a/pr/3514/docs/iroh/index.html b/pr/3514/docs/iroh/index.html
index d2098ddf1f..18c995edcf 100644
--- a/pr/3514/docs/iroh/index.html
+++ b/pr/3514/docs/iroh/index.html
@@ -178,5 +178,5 @@ connecting using only the <
Ok(())
}
Please see the examples directory for more nuanced examples.
-Re-exports§
Modules§
- defaults
- Default values used in
iroh - discovery
- Node address discovery.
- dns
- This module exports a DNS resolver, which is also the default resolver used in the
-
crate::Endpoint if no custom resolver is configured. - endpoint
- The
Endpoint allows establishing connections to other iroh nodes. - metrics
- Co-locating all of the iroh metrics structs
- net_
report - Checks the network conditions from the current host.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protocol
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_
utils - Internal utilities to support testing.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Traits§
- Watcher
- A handle to a value that’s represented by one or more underlying [
Watchable]s.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
\ No newline at end of file
+Re-exports§
Modules§
- defaults
- Default values used in
iroh - discovery
- Node address discovery.
- dns
Non-wasm_browser - This module exports a DNS resolver, which is also the default resolver used in the
+
crate::Endpoint if no custom resolver is configured. - endpoint
- The
Endpoint allows establishing connections to other iroh nodes. - metrics
- Co-locating all of the iroh metrics structs
- net_
report - Checks the network conditions from the current host.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protocol
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_
utils test-utils - Internal utilities to support testing.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Traits§
- Watcher
- A handle to a value that’s represented by one or more underlying [
Watchable]s.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/metrics/index.html b/pr/3514/docs/iroh/metrics/index.html
index d8f680b832..5c703d4a2a 100644
--- a/pr/3514/docs/iroh/metrics/index.html
+++ b/pr/3514/docs/iroh/metrics/index.html
@@ -1,2 +1,2 @@
iroh::metrics - Rust Expand description
Co-locating all of the iroh metrics structs
-Re-exports§
pub use crate::net_report::Metrics as NetReportMetrics;
Structs§
- Endpoint
Metrics - Metrics collected by an
crate::endpoint::Endpoint. - Magicsock
Metrics - Enum of metrics for the module
- Portmap
Metrics - Enum of metrics for the module
- Relay
Metrics - Metrics tracked for the relay server
\ No newline at end of file
+Re-exports§
pub use crate::net_report::Metrics as NetReportMetrics;
Structs§
- Endpoint
Metrics - Metrics collected by an
crate::endpoint::Endpoint. - Magicsock
Metrics - Enum of metrics for the module
- Portmap
Metrics Non-wasm_browser - Enum of metrics for the module
- Relay
Metrics test-utils - Metrics tracked for the relay server
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html b/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
index feb83ae3d0..abf95ee874 100644
--- a/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.EndpointMetrics.html
@@ -6,7 +6,7 @@
See crate::endpoint::Endpoint::metrics for details.
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.§magicsock: Arc<MagicsockMetrics>Metrics collected by the endpoint’s socket.
§net_report: Arc<NetReportMetrics>Metrics collected by net reports.
-§portmapper: Arc<PortmapMetrics>Metrics collected by the portmapper service.
+§portmapper: Arc<PortmapMetrics>Available on non-wasm_browser only.Metrics collected by the portmapper service.
Trait Implementations§
Source§impl Clone for EndpointMetrics
Source§fn clone(&self) -> EndpointMetrics
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointMetrics
Source§impl Default for EndpointMetrics
Source§fn default() -> EndpointMetrics
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for EndpointMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl MetricsGroupSet for EndpointMetrics
Auto Trait Implementations§
§impl Freeze for EndpointMetrics
§impl RefUnwindSafe for EndpointMetrics
§impl Send for EndpointMetrics
§impl Sync for EndpointMetrics
§impl Unpin for EndpointMetrics
§impl UnwindSafe for EndpointMetrics
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
index 71ebbfa1c6..f396502ecf 100644
--- a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
@@ -10,7 +10,7 @@
pub upnp_gateway_updated: Counter,
pub pcp_probes: Counter,
pub pcp_available: Counter,
-}Expand description
Enum of metrics for the module
+}Available on non-wasm_browser only.Expand description
Enum of metrics for the module
Fields§
§probes_started: CounterNumber of probing tasks started.
§local_port_updates: CounterNumber of updates to the local port.
§mapping_attempts: CounterNumber of mapping tasks started.
diff --git a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
index 560a6dc0d7..0d269892b0 100644
--- a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
@@ -18,7 +18,7 @@
pub accepts: Counter,
pub disconnects: Counter,
pub unique_client_keys: Counter,
-}Expand description
Metrics tracked for the relay server
+}Available on crate feature test-utils only.Expand description
Metrics tracked for the relay server
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
§bytes_recv: CounterBytes received from a FrameType::SendPacket
§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
diff --git a/pr/3514/docs/iroh/net_report/enum.Probe.html b/pr/3514/docs/iroh/net_report/enum.Probe.html
index c524906642..0e14a0b4dd 100644
--- a/pr/3514/docs/iroh/net_report/enum.Probe.html
+++ b/pr/3514/docs/iroh/net_report/enum.Probe.html
@@ -4,8 +4,8 @@
QadIpv6 = 2,
}Expand description
The protocol used to time a node’s latency.
Variants§
§Https = 0
HTTPS
-§QadIpv4 = 1
QUIC Address Discovery Ipv4
-§QadIpv6 = 2
QUIC Address Discovery Ipv6
+§QadIpv4 = 1
Available on non-wasm_browser only.QUIC Address Discovery Ipv4
+§QadIpv6 = 2
Available on non-wasm_browser only.QUIC Address Discovery Ipv6
Trait Implementations§
Source§impl Ord for Probe
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/3514/docs/iroh/net_report/index.html b/pr/3514/docs/iroh/net_report/index.html
index dc297a94dc..5b2223108c 100644
--- a/pr/3514/docs/iroh/net_report/index.html
+++ b/pr/3514/docs/iroh/net_report/index.html
@@ -2,4 +2,4 @@
NetReport is responsible for finding out the network conditions of the current host, like
whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is
etc and reachability to the configured relays.
-
Structs§
- Metrics
- Enum of metrics for the module
- Options
- Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
+Structs§
- Metrics
- Enum of metrics for the module
- Options
Non-wasm_browser - Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/net_report/struct.Options.html b/pr/3514/docs/iroh/net_report/struct.Options.html
index 9b9f76f3f6..fa199a8c37 100644
--- a/pr/3514/docs/iroh/net_report/struct.Options.html
+++ b/pr/3514/docs/iroh/net_report/struct.Options.html
@@ -1,10 +1,10 @@
-Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Expand description
Options for running probes
+Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Available on non-wasm_browser only.Expand description
Options for running probes
By default, will run Https probes.
Use Options::quic_config to enable QUIC address discovery.
Implementations§
Source§impl Options
Sourcepub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
Enable quic probes
Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Skip cert verification
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Available on crate feature test-utils only.
Skip cert verification
Sourcepub fn as_protocols(&self) -> BTreeSet<Probe>
Turn the options into set of valid protocols
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Options
§impl !RefUnwindSafe for Options
§impl Send for Options
§impl Sync for Options
§impl Unpin for Options
§impl !UnwindSafe for Options
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
index 24cf23b16a..ec8f88c330 100644
--- a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
+++ b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
@@ -1,5 +1,5 @@
RelayLatencies in iroh::net_report - Rust pub struct RelayLatencies { /* private fields */ }
Expand description
Latencies per relay node.
-Implementations§
Source§impl RelayLatencies
Sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
Source§impl Clone for RelayLatencies
Source§fn clone(&self) -> RelayLatencies
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RelayLatencies
Source§impl Default for RelayLatencies
Source§fn default() -> RelayLatencies
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for RelayLatencies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for RelayLatencies
Source§impl Serialize for RelayLatencies
Source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
index 78f05a321d..45df56531d 100644
--- a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
index a0dcc86190..b87d07c1de 100644
--- a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
+++ b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
@@ -4,6 +4,6 @@
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Required Methods§
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§
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/struct.NodeAddr.html b/pr/3514/docs/iroh/struct.NodeAddr.html
index e7e779d25b..14279600a5 100644
--- a/pr/3514/docs/iroh/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh/struct.NodeAddr.html
@@ -44,7 +44,7 @@ whenever a connection to other nodes needs to be established.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
Source§impl Hash for NodeAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/pr/3514/docs/iroh/struct.PublicKey.html b/pr/3514/docs/iroh/struct.PublicKey.html
index b700c8a17c..748f989107 100644
--- a/pr/3514/docs/iroh/struct.PublicKey.html
+++ b/pr/3514/docs/iroh/struct.PublicKey.html
@@ -109,7 +109,7 @@ indices from [N - M, N) (excluding the index N itself)
Source§impl Ord for PublicKey
Source§impl PartialEq for PublicKey
Source§fn eq(&self, other: &PublicKey) -> bool
Tests for self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
Tests for !=. The default implementation is almost always sufficient,
diff --git a/pr/3514/docs/iroh/struct.RelayUrl.html b/pr/3514/docs/iroh/struct.RelayUrl.html
index b2093b812e..04238b61fa 100644
--- a/pr/3514/docs/iroh/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh/struct.RelayUrl.html
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
index 24335b059d..b4c43a77a8 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-
run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server with QUIC enabled suitable for tests.
+run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
index 2427917da9..dc1d67d062 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,6 +1,6 @@
run_relay_server_with in iroh::test_utils - Rust pub async fn run_relay_server_with(
quic: bool,
-) -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server), SpawnError>Available on crate feature 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.
The return value is similar to run_relay_server.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/index.html b/pr/3514/docs/iroh/test_utils/index.html
index 5ab9442bcf..99408b93c8 100644
--- a/pr/3514/docs/iroh/test_utils/index.html
+++ b/pr/3514/docs/iroh/test_utils/index.html
@@ -1,2 +1,2 @@
-iroh::test_utils - Rust Expand description
Internal utilities to support testing.
+iroh::test_utils - Rust Available on crate feature test-utils only.Expand description
Internal utilities to support testing.
Structs§
- Cleanup
DropGuard - A drop guard to clean up test infrastructure.
- DnsPkarr
Server - Handle and drop guard for test DNS and Pkarr servers.
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/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
index c557fa7870..c5444183b5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
+++ b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
@@ -1,4 +1,4 @@
-CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Expand description
A drop guard to clean up test infrastructure.
+CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Available on crate feature test-utils only.Expand description
A drop guard to clean up test infrastructure.
After dropping the test infrastructure will asynchronously shutdown and release its
resources.
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for CleanupDropGuard
§impl !RefUnwindSafe for CleanupDropGuard
§impl Send for CleanupDropGuard
§impl Sync for CleanupDropGuard
§impl Unpin for CleanupDropGuard
§impl !UnwindSafe for CleanupDropGuard
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
index d46ae8d5e1..ccd49d4ef5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -3,7 +3,7 @@
pub nameserver: SocketAddr,
pub pkarr_url: Url,
/* private fields */
-}Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}Available on crate feature test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
§nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
index a08dddd86b..f4c1157e70 100644
--- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html
+++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
@@ -13,7 +13,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
Error when deserialising a PublicKey or a SecretKey.
+}Available on crate feature key only.Variants§
§Decode
Error when decoding.
§Key
Error when decoding the public key.
§DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html
index 817a16cc72..b1ee851ad2 100644
--- a/pr/3514/docs/iroh_base/index.html
+++ b/pr/3514/docs/iroh_base/index.html
@@ -1,5 +1,5 @@
iroh_base - Rust Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation.
+
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
-provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
+provider.Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParseError relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh_base/struct.NodeAddr.html b/pr/3514/docs/iroh_base/struct.NodeAddr.html
index 839a0f8fe6..f4fde16166 100644
--- a/pr/3514/docs/iroh_base/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh_base/struct.NodeAddr.html
@@ -2,7 +2,7 @@
pub node_id: NodeId,
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
-}Expand description
Network-level addressing information for an iroh node.
+}Available on crate feature key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to
contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
pub struct PkarrResolverBuilder { /* private fields */ }Expand description
Builder for PkarrResolver.
Implementations§
Source§impl PkarrResolverBuilder
impl PkarrResolverBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Sets the DNS resolver to use for resolving the pkarr relay URL.
+Implementations§
Source§impl PkarrResolverBuilder
impl PkarrResolverBuilder
Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
wasm_browser only.Sets the DNS resolver to use for resolving the pkarr relay URL.
Sourcepub fn build(self) -> PkarrResolver
pub fn build(self) -> PkarrResolver
Creates a PkarrResolver from this builder.
Trait Implementations§
Source§impl Debug for PkarrResolverBuilder
impl Debug for PkarrResolverBuilder
Source§impl IntoDiscovery for PkarrResolverBuilder
impl IntoDiscovery for PkarrResolverBuilder
Source§fn into_discovery(
self,
diff --git a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
index ff13d6c05a..db9a976390 100644
--- a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
+++ b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
@@ -1,7 +1,7 @@
DiscoveryContext in iroh::discovery - Rust pub struct DiscoveryContext<'a> { /* private fields */ }
Expand description
Context about the Endpoint for discovery services.
Implementations§
Source§impl DiscoveryContext<'_>
Sourcepub fn secret_key(&self) -> &SecretKey
Returns the SecretKey of the endpoint.
-Sourcepub fn dns_resolver(&self) -> &DnsResolver
Returns the DnsResolver used by the endpoint.
+Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
Returns the DnsResolver used by the endpoint.
Trait Implementations§
Auto Trait Implementations§
§impl<'a> Freeze for DiscoveryContext<'a>
§impl<'a> !RefUnwindSafe for DiscoveryContext<'a>
§impl<'a> Send for DiscoveryContext<'a>
§impl<'a> Sync for DiscoveryContext<'a>
§impl<'a> Unpin for DiscoveryContext<'a>
§impl<'a> !UnwindSafe for DiscoveryContext<'a>
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/3514/docs/iroh/discovery/struct.NodeInfo.html b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
index 403eebaaa0..d9e2f234c6 100644
--- a/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/discovery/trait.Discovery.html b/pr/3514/docs/iroh/discovery/trait.Discovery.html
index 04a41a6c3b..e5a0286374 100644
--- a/pr/3514/docs/iroh/discovery/trait.Discovery.html
+++ b/pr/3514/docs/iroh/discovery/trait.Discovery.html
@@ -34,4 +34,4 @@ work.
Implementations on Foreign Types§
Implementors§
Source§impl Discovery for DnsDiscovery
Source§impl Discovery for MdnsDiscovery
Source§impl Discovery for DhtDiscovery
Source§impl Discovery for PkarrPublisher
Source§impl Discovery for PkarrResolver
Source§impl Discovery for StaticProvider
Source§impl Discovery for ConcurrentDiscovery
\ No newline at end of file
+) -> Option<BoxStream<Result<DiscoveryItem, DiscoveryError>>>
fn into_discovery(
self,
diff --git a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
index ff13d6c05a..db9a976390 100644
--- a/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
+++ b/pr/3514/docs/iroh/discovery/struct.DiscoveryContext.html
@@ -1,7 +1,7 @@
DiscoveryContext in iroh::discovery - Rust pub struct DiscoveryContext<'a> { /* private fields */ }
Expand description
Context about the Endpoint for discovery services.
Implementations§
Source§impl DiscoveryContext<'_>
Sourcepub fn secret_key(&self) -> &SecretKey
Returns the SecretKey of the endpoint.
-Sourcepub fn dns_resolver(&self) -> &DnsResolver
Returns the DnsResolver used by the endpoint.
+Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
Returns the DnsResolver used by the endpoint.
Trait Implementations§
Auto Trait Implementations§
§impl<'a> Freeze for DiscoveryContext<'a>
§impl<'a> !RefUnwindSafe for DiscoveryContext<'a>
§impl<'a> Send for DiscoveryContext<'a>
§impl<'a> Sync for DiscoveryContext<'a>
§impl<'a> Unpin for DiscoveryContext<'a>
§impl<'a> !UnwindSafe for DiscoveryContext<'a>
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/3514/docs/iroh/discovery/struct.NodeInfo.html b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
index 403eebaaa0..d9e2f234c6 100644
--- a/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/discovery/trait.Discovery.html b/pr/3514/docs/iroh/discovery/trait.Discovery.html
index 04a41a6c3b..e5a0286374 100644
--- a/pr/3514/docs/iroh/discovery/trait.Discovery.html
+++ b/pr/3514/docs/iroh/discovery/trait.Discovery.html
@@ -34,4 +34,4 @@ work.
Implementations on Foreign Types§
Implementors§
Source§impl Discovery for DnsDiscovery
Source§impl Discovery for MdnsDiscovery
Source§impl Discovery for DhtDiscovery
Source§impl Discovery for PkarrPublisher
Source§impl Discovery for PkarrResolver
Source§impl Discovery for StaticProvider
Source§impl Discovery for ConcurrentDiscovery
\ No newline at end of file
+) -> Option<BoxStream<Result<DiscoveryItem, DiscoveryError>>>
pub struct DiscoveryContext<'a> { /* private fields */ }Expand description
Context about the Endpoint for discovery services.
Implementations§
Source§impl DiscoveryContext<'_>
impl DiscoveryContext<'_>
Sourcepub fn secret_key(&self) -> &SecretKey
pub fn secret_key(&self) -> &SecretKey
Returns the SecretKey of the endpoint.
Sourcepub fn dns_resolver(&self) -> &DnsResolver
pub fn dns_resolver(&self) -> &DnsResolver
Returns the DnsResolver used by the endpoint.
Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
pub fn dns_resolver(&self) -> &DnsResolver
wasm_browser only.Returns the DnsResolver used by the endpoint.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DiscoveryContext<'a>
impl<'a> !RefUnwindSafe for DiscoveryContext<'a>
impl<'a> Send for DiscoveryContext<'a>
impl<'a> Sync for DiscoveryContext<'a>
impl<'a> Unpin for DiscoveryContext<'a>
impl<'a> !UnwindSafe for DiscoveryContext<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/discovery/struct.NodeInfo.html b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
index 403eebaaa0..d9e2f234c6 100644
--- a/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
@@ -18,7 +18,7 @@
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/discovery/struct.NodeInfo.html b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
index 403eebaaa0..d9e2f234c6 100644
--- a/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/discovery/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
pub fn from_txt_lookup( domain_name: String, lookup: impl Iterator<Item = TxtRecordData>, -) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
pub fn from_pkarr_signed_packet( packet: &SignedPacket, ) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
Implementations on Foreign Types§
Implementors§
impl Discovery for DnsDiscovery
impl Discovery for MdnsDiscovery
impl Discovery for DhtDiscovery
impl Discovery for PkarrPublisher
impl Discovery for PkarrResolver
impl Discovery for StaticProvider
impl Discovery for ConcurrentDiscovery
Implementors§
impl Discovery for DnsDiscovery
wasm_browser only.impl Discovery for MdnsDiscovery
discovery-local-network only.impl Discovery for DhtDiscovery
discovery-pkarr-dht only.impl Discovery for PkarrPublisher
impl Discovery for PkarrResolver
impl Discovery for StaticProvider
impl Discovery for ConcurrentDiscovery
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§
impl IntoDiscovery for DnsDiscoveryBuilder
impl IntoDiscovery for MdnsDiscoveryBuilder
impl IntoDiscovery for Builder
impl IntoDiscovery for PkarrPublisherBuilder
impl IntoDiscovery for PkarrResolverBuilder
impl<T: Discovery> IntoDiscovery for T
Blanket no-op impl of IntoDiscovery for T: Discovery.
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§
impl IntoDiscovery for DnsDiscoveryBuilder
wasm_browser only.impl IntoDiscovery for MdnsDiscoveryBuilder
discovery-local-network only.impl IntoDiscovery for Builder
discovery-pkarr-dht only.impl IntoDiscovery for PkarrPublisherBuilder
impl IntoDiscovery for PkarrResolverBuilder
impl<T: Discovery> IntoDiscovery for T
Blanket no-op impl of IntoDiscovery for T: Discovery.
pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;Expand description
The n0 testing DNS node origin, for production.
+pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;Expand description
The n0 testing DNS node origin, for testing.
+Expand description
This module exports a DNS resolver, which is also the default resolver used in the +
wasm_browser only.Expand description
This module exports a DNS resolver, which is also the default resolver used in the
crate::Endpoint if no custom resolver is configured.
The resolver provides methods to resolve domain names to ipv4 and ipv6 addresses, and to resolve node ids to node addresses.
diff --git a/pr/3514/docs/iroh/dns/struct.DnsResolver.html b/pr/3514/docs/iroh/dns/struct.DnsResolver.html index 36397fb5d0..9f5504e056 100644 --- a/pr/3514/docs/iroh/dns/struct.DnsResolver.html +++ b/pr/3514/docs/iroh/dns/struct.DnsResolver.html @@ -1,4 +1,4 @@ -pub struct DnsResolver(/* private fields */);Expand description
The DNS resolver used throughout iroh.
pub struct DnsResolver(/* private fields */);wasm_browser only.Expand description
The DNS resolver used throughout iroh.
Implementations§
Source§impl DnsResolver
impl DnsResolver
Sourcepub fn new() -> DnsResolver
pub fn new() -> DnsResolver
Creates a new DNS resolver with sensible cross-platform defaults.
We first try to read the system’s resolver from /etc/resolv.conf.
This does not work at least on some Androids, therefore we fallback
diff --git a/pr/3514/docs/iroh/endpoint/enum.PathSelection.html b/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
index ae95c1d723..25731b05ea 100644
--- a/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
+++ b/pr/3514/docs/iroh/endpoint/enum.PathSelection.html
@@ -1,7 +1,7 @@
pub enum PathSelection {
All,
RelayOnly,
-}Expand description
Defines the mode of path selection for all traffic flowing through
+} Defines the mode of path selection for all traffic flowing through
the endpoint.test-utils only.Expand description
Variants§
All
Uses all available paths
RelayOnly
Forces all traffic to go exclusively through relays
diff --git a/pr/3514/docs/iroh/endpoint/index.html b/pr/3514/docs/iroh/endpoint/index.html index a7a8803e76..5acb89986c 100644 --- a/pr/3514/docs/iroh/endpoint/index.html +++ b/pr/3514/docs/iroh/endpoint/index.html @@ -8,6 +8,6 @@ more details on how iroh connections work.Builder to create an Endpoint.Structs§
- Accept
- Future produced by
Endpoint::accept. - Accept
Bi - Future produced by [
Connection::accept_bi] - Accept
Uni - Future produced by [
Connection::accept_uni] - AckFrequency
Config - Parameters for controlling the peer’s acknowledgement frequency
- Application
Close - Reason given by an application for closing the connection
- Builder
- Builder for
Endpoint. - Chunk
- A chunk of data from the receive stream
- Closed
Stream - Error indicating that a stream has not been opened or has already been finished or reset
- Connect
Options - Options for the
Endpoint::connect_with_optsfunction. - Connecting
- In-progress connection attempt future
- Connection
- A QUIC connection.
- Connection
Close - Reason given by the transport for closing the connection
- Connection
Stats - Connection statistics
- Crypto
Error - Generic crypto errors
- Direct
Addr - A direct address on which an iroh-node might be contactable.
- Direct
Addr Info - Information about a direct address.
- Endpoint
- Controls an iroh node, establishing connections with other nodes.
- Export
Keying Material Error - Error returned by [Session::export_keying_material].
- Frame
Stats - Number of frames transmitted of each frame type
- Incoming
- An incoming connection for which the server has not yet begun its parts of the -handshake.
- Incoming
Future - Adaptor to let
Incomingbeawaited like aConnecting. - MtuDiscovery
Config - Parameters governing MTU discovery.
- OpenBi
- Future produced by [
Connection::open_bi] - OpenUni
- Future produced by [
Connection::open_uni] - Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by [
Connection::read_datagram] - Recv
Stream - A stream that can only be used to receive data
- Remote
Node IdError - Retry
Error - Error for attempting to retry an [
Incoming] which already bears a token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
Error Code - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
Connection Handle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established.
Enums§
- AddNode
Addr Error - Alpn
Error - Bind
Error - Connect
Error - Connect
With Opts Error - Connection
Error - Reasons why a connection might be lost
- Connection
Type - The type of connection we have to the endpoint.
- Control
Msg - The type of control message we have received.
- Direct
Addr Type - The type of direct address.
- GetMapping
Address Error - Path
Selection - Defines the mode of path selection for all traffic flowing through +handshake.
- Incoming
Future - Adaptor to let
Incomingbeawaited like aConnecting. - MtuDiscovery
Config - Parameters governing MTU discovery.
- OpenBi
- Future produced by [
Connection::open_bi] - OpenUni
- Future produced by [
Connection::open_uni] - Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by [
Connection::read_datagram] - Recv
Stream - A stream that can only be used to receive data
- Remote
Node IdError - Retry
Error - Error for attempting to retry an [
Incoming] which already bears a token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
Error Code - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
Connection Handle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established.
Enums§
- AddNode
Addr Error - Alpn
Error - Bind
Error - Connect
Error - Connect
With Opts Error - Connection
Error - Reasons why a connection might be lost
- Connection
Type - The type of connection we have to the endpoint.
- Control
Msg - The type of control message we have received.
- Direct
Addr Type - The type of direct address.
- GetMapping
Address Error - Path
Selection test-utils - Defines the mode of path selection for all traffic flowing through the endpoint.
- Read
Error - Errors that arise from reading from a stream.
- Read
Exact Error - Errors that arise from reading from a stream.
- Read
ToEnd Error - Errors from
RecvStream::read_to_end - Relay
Mode - Configuration of the relay servers for an
Endpoint. - Reset
Error - Errors that arise while waiting for a stream to be reset
- Send
Datagram Error - Errors that can arise when sending a datagram
- Source
- The origin or source through which an address associated with a remote node was discovered.
- Stopped
Error - Errors that arise while monitoring for a send stream stop from the peer
- Write
Error - Errors that arise from writing to a stream
Constants§
- ENV_
FORCE_ STAGING_ RELAYS - Environment variable to force the use of staging relays.
Traits§
- AeadKey
- A key for sealing data with AEAD-based algorithms
- Controller
- Common interface for different congestion controllers
- Controller
Factory - Constructs controllers on demand
- Crypto
Server Config - Server-side configuration for the crypto protocol
- Handshake
Token Key - A pseudo random key for HKDF
Functions§
- default_
relay_ mode - Returns the default relay mode.
- force_
staging_ infra - Returns
trueif the use of staging relays is forced.
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
§impl<T> FutureExt for T
impl<T> FutureExt for T
std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
std only.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
std only.§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
() on completion and sends
+ Self: Sized,channel and std only.() on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
§fn unit_error(self) -> UnitError<Self>
fn unit_error(self) -> UnitError<Self>
alloc only.§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
alloc only.§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
fn never_error(self) -> NeverError<Self>where
Self: Sized,
Future<Output = T> into a
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html b/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
index 1fd37c94d4..724b764538 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
§impl<T> FutureExt for T
impl<T> FutureExt for T
std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
std only.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
std only.§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
() on completion and sends
+ Self: Sized,channel and std only.() on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
§fn unit_error(self) -> UnitError<Self>
fn unit_error(self) -> UnitError<Self>
alloc only.§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
alloc only.§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
fn never_error(self) -> NeverError<Self>where
Self: Sized,
Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
sink only.Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
index 51edf23f3d..5014777bb6 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
index 51edf23f3d..5014777bb6 100644
--- a/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.AcceptUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
§impl<T> FutureExt for T
impl<T> FutureExt for T
std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
std only.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
std only.§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
() on completion and sends
+ Self: Sized,channel and std only.() on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
§fn unit_error(self) -> UnitError<Self>
fn unit_error(self) -> UnitError<Self>
alloc only.§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
alloc only.§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
fn never_error(self) -> NeverError<Self>where
Self: Sized,
Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
sink only.Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Builder.html b/pr/3514/docs/iroh/endpoint/struct.Builder.html
index 634092ba1c..07049e8552 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Builder.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Builder.html
@@ -54,12 +54,12 @@ n0.computer dns server.
This will by default use N0_DNS_PKARR_RELAY_PROD.
When in tests, or when the test-utils feature is enabled, this will use the
N0_DNS_PKARR_RELAY_STAGING.
-
fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Builder.html b/pr/3514/docs/iroh/endpoint/struct.Builder.html
index 634092ba1c..07049e8552 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Builder.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Builder.html
@@ -54,12 +54,12 @@ n0.computer dns server.
This will by default use N0_DNS_PKARR_RELAY_PROD.
When in tests, or when the test-utils feature is enabled, this will use the
N0_DNS_PKARR_RELAY_STAGING.
-
This will by default use N0_DNS_PKARR_RELAY_PROD.
When in tests, or when the test-utils feature is enabled, this will use the
N0_DNS_PKARR_RELAY_STAGING.
Sourcepub fn discovery_dht(self) -> Self
pub fn discovery_dht(self) -> Self
Configures the endpoint to also use the mainline DHT with default settings.
+Sourcepub fn discovery_dht(self) -> Self
Available on crate feature discovery-pkarr-dht only.
pub fn discovery_dht(self) -> Self
discovery-pkarr-dht only.Configures the endpoint to also use the mainline DHT with default settings.
This is equivalent to adding a crate::discovery::pkarr::dht::DhtDiscovery
with default settings. Note that DhtDiscovery has various more advanced
configuration options. If you need any of those, you should manually
create a DhtDiscovery and add it with Builder::add_discovery.
Sourcepub fn discovery_local_network(self) -> Self
pub fn discovery_local_network(self) -> Self
Configures the endpoint to also use local network discovery.
+Sourcepub fn discovery_local_network(self) -> Self
Available on crate feature discovery-local-network only.
pub fn discovery_local_network(self) -> Self
discovery-local-network only.Configures the endpoint to also use local network discovery.
This is equivalent to adding a crate::discovery::mdns::MdnsDiscovery
with default settings. Note that MdnsDiscovery has various more advanced
configuration options. If you need any of those, you should manually
@@ -78,7 +78,7 @@ 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
pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
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.
pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
wasm_browser only.Optionally sets a custom DNS resolver to use for this endpoint.
The DNS resolver is used to resolve relay hostnames, and node addresses if
crate::discovery::dns::DnsDiscovery is configured.
By default, a new DNS resolver is created which is configured to use the
@@ -98,9 +98,9 @@ a
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 insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
pub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
Skip verification of SSL certificates from relay servers
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
Available on crate feature test-utils only.
pub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self
test-utils only.Skip verification of SSL certificates from relay servers
May only be used in tests.
-Sourcepub fn path_selection(self, path_selection: PathSelection) -> Self
pub fn path_selection(self, path_selection: PathSelection) -> Self
This implies we only use the relay to communicate +
Sourcepub fn path_selection(self, path_selection: PathSelection) -> Self
Available on crate feature test-utils only.
pub fn path_selection(self, path_selection: PathSelection) -> Self
test-utils only.This implies we only use the relay to communicate and do not attempt to do any hole punching.
Sourcepub fn max_tls_tickets(self, n: usize) -> Self
pub 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 diff --git a/pr/3514/docs/iroh/endpoint/struct.Connecting.html b/pr/3514/docs/iroh/endpoint/struct.Connecting.html index bc09f88e65..ca039bb20a 100644 --- a/pr/3514/docs/iroh/endpoint/struct.Connecting.html +++ b/pr/3514/docs/iroh/endpoint/struct.Connecting.html @@ -54,10 +54,10 @@ the current task for wakeup if the value is not yet available. Sized, F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
§impl<T> FutureExt for T
impl<T> FutureExt for T
std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
std only.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -100,14 +100,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -100,14 +100,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
std only.§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
() on completion and sends
+ Self: Sized,channel and std only.() on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
§fn unit_error(self) -> UnitError<Self>
fn unit_error(self) -> UnitError<Self>
alloc only.§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
alloc only.§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
fn never_error(self) -> NeverError<Self>where
Self: Sized,
Future<Output = T> into a
@@ -137,7 +137,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
sink only.Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
index eecfbb0e23..092b95e89c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
@@ -96,7 +96,7 @@ to ensure that the NodeAddr will contain enough information to allo
to be dialable by a remote endpoint over the internet.
You can use the Endpoint::watch_node_addr method to get updates when the NodeAddr
changes.
-
fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
index eecfbb0e23..092b95e89c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
+++ b/pr/3514/docs/iroh/endpoint/struct.Endpoint.html
@@ -96,7 +96,7 @@ to ensure that the NodeAddr will contain enough information to allo
to be dialable by a remote endpoint over the internet.
You can use the Endpoint::watch_node_addr method to get updates when the NodeAddr
changes.
-
NodeAddr will contain enough information to allo
to be dialable by a remote endpoint over the internet.
You can use the Endpoint::watch_node_addr method to get updates when the NodeAddr
changes.
Sourcepub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
pub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
Sourcepub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
Available on non-wasm_browser only.
pub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>
wasm_browser only.Returns a Watcher for the current NodeAddr for this endpoint.
The observed NodeAddr will have the current RelayUrl and direct addresses.
use iroh::{Endpoint, Watcher};
@@ -155,11 +155,11 @@ become inaccessible.
Will return None if we do not have any address information for the given node_id.
Sourcepub fn latency(&self, node_id: NodeId) -> Option<Duration>
pub fn latency(&self, node_id: NodeId) -> Option<Duration>
Returns the currently lowest latency for this node.
Will return None if we do not have any address information for the given node_id.
Sourcepub fn dns_resolver(&self) -> &DnsResolver
pub fn dns_resolver(&self) -> &DnsResolver
Returns the DNS resolver used in this Endpoint.
Sourcepub fn dns_resolver(&self) -> &DnsResolver
Available on non-wasm_browser only.
pub fn dns_resolver(&self) -> &DnsResolver
wasm_browser only.Returns the DNS resolver used in this Endpoint.
Sourcepub fn discovery(&self) -> &ConcurrentDiscovery
pub fn discovery(&self) -> &ConcurrentDiscovery
Returns the discovery mechanism, if configured.
See Builder::discovery.
Sourcepub fn metrics(&self) -> &EndpointMetrics
pub fn metrics(&self) -> &EndpointMetrics
Returns metrics collected for this endpoint.
+Sourcepub fn metrics(&self) -> &EndpointMetrics
Available on crate feature metrics only.
pub fn metrics(&self) -> &EndpointMetrics
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:
diff --git a/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html b/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html index 532ab31338..b440826d41 100644 --- a/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html +++ b/pr/3514/docs/iroh/endpoint/struct.IncomingFuture.html @@ -18,10 +18,10 @@ the current task for wakeup if the value is not yet available. Sized, F: Future<Output = Self::Output>,§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
§impl<T> FutureExt for T
impl<T> FutureExt for T
std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
std only.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -64,14 +64,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
std only.§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
() on completion and sends
+ Self: Sized,channel and std only.() on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
§fn unit_error(self) -> UnitError<Self>
fn unit_error(self) -> UnitError<Self>
alloc only.§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
alloc only.§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
fn never_error(self) -> NeverError<Self>where
Self: Sized,
Future<Output = T> into a
@@ -101,7 +101,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
sink only.Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
index 2bc9c37c4b..cd17591f00 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
index 2bc9c37c4b..cd17591f00 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenBi.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
§impl<T> FutureExt for T
impl<T> FutureExt for T
std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
std only.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
std only.§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
() on completion and sends
+ Self: Sized,channel and std only.() on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
§fn unit_error(self) -> UnitError<Self>
fn unit_error(self) -> UnitError<Self>
alloc only.§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
alloc only.§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
fn never_error(self) -> NeverError<Self>where
Self: Sized,
Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
sink only.Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
index 212288f8c2..25febd17e2 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
index 212288f8c2..25febd17e2 100644
--- a/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
+++ b/pr/3514/docs/iroh/endpoint/struct.OpenUni.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
§impl<T> FutureExt for T
impl<T> FutureExt for T
std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
std only.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
std only.§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
() on completion and sends
+ Self: Sized,channel and std only.() on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
§fn unit_error(self) -> UnitError<Self>
fn unit_error(self) -> UnitError<Self>
alloc only.§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
alloc only.§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
fn never_error(self) -> NeverError<Self>where
Self: Sized,
Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
sink only.Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
index 11b48fbb04..b06cc6a844 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
index 11b48fbb04..b06cc6a844 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ReadDatagram.html
@@ -21,10 +21,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
§impl<T> FutureExt for T
impl<T> FutureExt for T
std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
std only.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -67,14 +67,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
std only.§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
() on completion and sends
+ Self: Sized,channel and std only.() on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
§fn unit_error(self) -> UnitError<Self>
fn unit_error(self) -> UnitError<Self>
alloc only.§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
alloc only.§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
fn never_error(self) -> NeverError<Self>where
Self: Sized,
Future<Output = T> into a
@@ -104,7 +104,7 @@ the future is ready after the first call to Future::poll. Read m
F: Future<Output = Result<T, E>> + ?Sized,§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture + ?Sized,
§fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where
Self::Ok: Sink<Item, Error = Self::Error>,
- Self: Sized,
sink only.Sink]. Read more§fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
§fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
index 6b6ed92006..86a258a62c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
@@ -82,9 +82,9 @@ exhaustion in most contexts.
fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where
diff --git a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
index 6b6ed92006..86a258a62c 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ServerConfig.html
@@ -82,9 +82,9 @@ exhaustion in most contexts.
§impl ServerConfig
impl ServerConfig
pub fn with_single_cert(
cert_chain: Vec<CertificateDer<'static>>,
key: PrivateKeyDer<'static>,
-) -> Result<ServerConfig, Error>
pub fn with_single_cert( cert_chain: Vec<CertificateDer<'static>>, key: PrivateKeyDer<'static>, -) -> Result<ServerConfig, Error>
Create a server config with the given certificate chain to be presented to clients
+) -> Result<ServerConfig, Error>rustls-aws-lc-rs or rustls-ring only.Create a server config with the given certificate chain to be presented to clients
Uses a randomized handshake token key.
-§impl ServerConfig
impl ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
Create a server config with the given crypto::ServerConfig
§impl ServerConfig
impl ServerConfig
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
Available on crate features aws-lc-rs or ring only.
pub fn with_crypto(crypto: Arc<dyn ServerConfig>) -> ServerConfig
aws-lc-rs or ring only.Create a server config with the given crypto::ServerConfig
Uses a randomized handshake token key.
Trait Implementations§
§impl Clone for ServerConfig
impl Clone for ServerConfig
§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ServerConfig
impl !RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl !UnwindSafe for ServerConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
index 33693f4f40..518d7f97c9 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
@@ -19,10 +19,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
index 33693f4f40..518d7f97c9 100644
--- a/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
+++ b/pr/3514/docs/iroh/endpoint/struct.ZeroRttAccepted.html
@@ -19,10 +19,10 @@ the current task for wakeup if the value is not yet available. Sized,
F: Future<Output = Self::Output>,
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
§impl<T> FutureExt for T
impl<T> FutureExt for T
std and race only.§fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
+ Self: Sized + UnwindSafe,
std only.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -65,14 +65,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
fn with_cancellation_token(
self,
cancellation_token: &CancellationToken,
@@ -65,14 +65,14 @@ completed. This method can be used to turn any Future into a
FusedFuture. Read more
§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
§fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
- Self: Sized + UnwindSafe,
std only.§fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where
- Self: Sized,
() on completion and sends
+ Self: Sized,channel and std only.() on completion and sends
its output to another future on a separate task. Read more§fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
- Self: Sized + 'a,
§fn unit_error(self) -> UnitError<Self>
fn unit_error(self) -> UnitError<Self>
alloc only.§fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where
+ Self: Sized + 'a,
alloc only.§fn unit_error(self) -> UnitError<Self>where
Self: Sized,
fn unit_error(self) -> UnitError<Self>where
Self: Sized,
Future<Output = T> into a
TryFuture<Ok = T, Error = ()>.§fn never_error(self) -> NeverError<Self>where
Self: Sized,
fn never_error(self) -> NeverError<Self>where
Self: Sized,
Future<Output = T> into a
diff --git a/pr/3514/docs/iroh/index.html b/pr/3514/docs/iroh/index.html
index d2098ddf1f..18c995edcf 100644
--- a/pr/3514/docs/iroh/index.html
+++ b/pr/3514/docs/iroh/index.html
@@ -178,5 +178,5 @@ connecting using only the <
Ok(())
}Please see the examples directory for more nuanced examples.
-Re-exports§
Modules§
- defaults
- Default values used in
iroh - discovery
- Node address discovery.
- dns
- This module exports a DNS resolver, which is also the default resolver used in the
-
crate::Endpointif no custom resolver is configured. - endpoint
- The
Endpointallows establishing connections to other iroh nodes. - metrics
- Co-locating all of the iroh metrics structs
- net_
report - Checks the network conditions from the current host.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protocol
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_
utils - Internal utilities to support testing.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParse Error - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKeyor aSecretKey.
Traits§
- Watcher
- A handle to a value that’s represented by one or more underlying [
Watchable]s.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
Re-exports§
Modules§
- defaults
- Default values used in
iroh - discovery
- Node address discovery.
- dns
Non- wasm_browser - This module exports a DNS resolver, which is also the default resolver used in the
+
crate::Endpointif no custom resolver is configured. - endpoint
- The
Endpointallows establishing connections to other iroh nodes. - metrics
- Co-locating all of the iroh metrics structs
- net_
report - Checks the network conditions from the current host.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protocol
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_
utils test-utils - Internal utilities to support testing.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParse Error - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKeyor aSecretKey.
Traits§
- Watcher
- A handle to a value that’s represented by one or more underlying [
Watchable]s.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
Expand description
Co-locating all of the iroh metrics structs
-Re-exports§
pub use crate::net_report::Metrics as NetReportMetrics;
Structs§
- Endpoint
Metrics - Metrics collected by an
crate::endpoint::Endpoint. - Magicsock
Metrics - Enum of metrics for the module
- Portmap
Metrics - Enum of metrics for the module
- Relay
Metrics - Metrics tracked for the relay server
Re-exports§
pub use crate::net_report::Metrics as NetReportMetrics;
Structs§
- Endpoint
Metrics - Metrics collected by an
crate::endpoint::Endpoint. - Magicsock
Metrics - Enum of metrics for the module
- Portmap
Metrics Non- wasm_browser - Enum of metrics for the module
- Relay
Metrics test-utils - Metrics tracked for the relay server
See crate::endpoint::Endpoint::metrics for details.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.magicsock: Arc<MagicsockMetrics>Metrics collected by the endpoint’s socket.
net_report: Arc<NetReportMetrics>Metrics collected by net reports.
-portmapper: Arc<PortmapMetrics>Metrics collected by the portmapper service.
+portmapper: Arc<PortmapMetrics>wasm_browser only.Metrics collected by the portmapper service.
Trait Implementations§
Source§impl Clone for EndpointMetrics
impl Clone for EndpointMetrics
Source§fn clone(&self) -> EndpointMetrics
fn clone(&self) -> EndpointMetrics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointMetrics
impl Debug for EndpointMetrics
Source§impl Default for EndpointMetrics
impl Default for EndpointMetrics
Source§fn default() -> EndpointMetrics
fn default() -> EndpointMetrics
Source§impl<'de> Deserialize<'de> for EndpointMetrics
impl<'de> Deserialize<'de> for EndpointMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl MetricsGroupSet for EndpointMetrics
impl MetricsGroupSet for EndpointMetrics
Auto Trait Implementations§
impl Freeze for EndpointMetrics
impl RefUnwindSafe for EndpointMetrics
impl Send for EndpointMetrics
impl Sync for EndpointMetrics
impl Unpin for EndpointMetrics
impl UnwindSafe for EndpointMetrics
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
index 71ebbfa1c6..f396502ecf 100644
--- a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
@@ -10,7 +10,7 @@
pub upnp_gateway_updated: Counter,
pub pcp_probes: Counter,
pub pcp_available: Counter,
-}Expand description
Enum of metrics for the module
+}Available on non-wasm_browser only.Expand description
Enum of metrics for the module
Fields§
§probes_started: CounterNumber of probing tasks started.
§local_port_updates: CounterNumber of updates to the local port.
§mapping_attempts: CounterNumber of mapping tasks started.
diff --git a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
index 560a6dc0d7..0d269892b0 100644
--- a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
@@ -18,7 +18,7 @@
pub accepts: Counter,
pub disconnects: Counter,
pub unique_client_keys: Counter,
-}Expand description
Metrics tracked for the relay server
+}Available on crate feature test-utils only.Expand description
Metrics tracked for the relay server
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
§bytes_recv: CounterBytes received from a FrameType::SendPacket
§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
diff --git a/pr/3514/docs/iroh/net_report/enum.Probe.html b/pr/3514/docs/iroh/net_report/enum.Probe.html
index c524906642..0e14a0b4dd 100644
--- a/pr/3514/docs/iroh/net_report/enum.Probe.html
+++ b/pr/3514/docs/iroh/net_report/enum.Probe.html
@@ -4,8 +4,8 @@
QadIpv6 = 2,
}Expand description
The protocol used to time a node’s latency.
Variants§
§Https = 0
HTTPS
-§QadIpv4 = 1
QUIC Address Discovery Ipv4
-§QadIpv6 = 2
QUIC Address Discovery Ipv6
+§QadIpv4 = 1
Available on non-wasm_browser only.QUIC Address Discovery Ipv4
+§QadIpv6 = 2
Available on non-wasm_browser only.QUIC Address Discovery Ipv6
Trait Implementations§
Source§impl Ord for Probe
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/3514/docs/iroh/net_report/index.html b/pr/3514/docs/iroh/net_report/index.html
index dc297a94dc..5b2223108c 100644
--- a/pr/3514/docs/iroh/net_report/index.html
+++ b/pr/3514/docs/iroh/net_report/index.html
@@ -2,4 +2,4 @@
NetReport is responsible for finding out the network conditions of the current host, like
whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is
etc and reachability to the configured relays.
-
Structs§
- Metrics
- Enum of metrics for the module
- Options
- Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
+Structs§
- Metrics
- Enum of metrics for the module
- Options
Non-wasm_browser - Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/net_report/struct.Options.html b/pr/3514/docs/iroh/net_report/struct.Options.html
index 9b9f76f3f6..fa199a8c37 100644
--- a/pr/3514/docs/iroh/net_report/struct.Options.html
+++ b/pr/3514/docs/iroh/net_report/struct.Options.html
@@ -1,10 +1,10 @@
-Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Expand description
Options for running probes
+Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Available on non-wasm_browser only.Expand description
Options for running probes
By default, will run Https probes.
Use Options::quic_config to enable QUIC address discovery.
Implementations§
Source§impl Options
Sourcepub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
Enable quic probes
Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Skip cert verification
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Available on crate feature test-utils only.
Skip cert verification
Sourcepub fn as_protocols(&self) -> BTreeSet<Probe>
Turn the options into set of valid protocols
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Options
§impl !RefUnwindSafe for Options
§impl Send for Options
§impl Sync for Options
§impl Unpin for Options
§impl !UnwindSafe for Options
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
index 24cf23b16a..ec8f88c330 100644
--- a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
+++ b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
@@ -1,5 +1,5 @@
RelayLatencies in iroh::net_report - Rust pub struct RelayLatencies { /* private fields */ }
Expand description
Latencies per relay node.
-Implementations§
Source§impl RelayLatencies
Sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
Source§impl Clone for RelayLatencies
Source§fn clone(&self) -> RelayLatencies
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RelayLatencies
Source§impl Default for RelayLatencies
Source§fn default() -> RelayLatencies
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for RelayLatencies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for RelayLatencies
Source§impl Serialize for RelayLatencies
Source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
index 78f05a321d..45df56531d 100644
--- a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
index a0dcc86190..b87d07c1de 100644
--- a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
+++ b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
@@ -4,6 +4,6 @@
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Required Methods§
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§
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/struct.NodeAddr.html b/pr/3514/docs/iroh/struct.NodeAddr.html
index e7e779d25b..14279600a5 100644
--- a/pr/3514/docs/iroh/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh/struct.NodeAddr.html
@@ -44,7 +44,7 @@ whenever a connection to other nodes needs to be established.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
Source§impl Hash for NodeAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/pr/3514/docs/iroh/struct.PublicKey.html b/pr/3514/docs/iroh/struct.PublicKey.html
index b700c8a17c..748f989107 100644
--- a/pr/3514/docs/iroh/struct.PublicKey.html
+++ b/pr/3514/docs/iroh/struct.PublicKey.html
@@ -109,7 +109,7 @@ indices from [N - M, N) (excluding the index N itself)
Source§impl Ord for PublicKey
Source§impl PartialEq for PublicKey
Source§fn eq(&self, other: &PublicKey) -> bool
Tests for self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
Tests for !=. The default implementation is almost always sufficient,
diff --git a/pr/3514/docs/iroh/struct.RelayUrl.html b/pr/3514/docs/iroh/struct.RelayUrl.html
index b2093b812e..04238b61fa 100644
--- a/pr/3514/docs/iroh/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh/struct.RelayUrl.html
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
index 24335b059d..b4c43a77a8 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-
run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server with QUIC enabled suitable for tests.
+run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
index 2427917da9..dc1d67d062 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,6 +1,6 @@
run_relay_server_with in iroh::test_utils - Rust pub async fn run_relay_server_with(
quic: bool,
-) -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server), SpawnError>Available on crate feature 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.
The return value is similar to run_relay_server.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/index.html b/pr/3514/docs/iroh/test_utils/index.html
index 5ab9442bcf..99408b93c8 100644
--- a/pr/3514/docs/iroh/test_utils/index.html
+++ b/pr/3514/docs/iroh/test_utils/index.html
@@ -1,2 +1,2 @@
-iroh::test_utils - Rust Expand description
Internal utilities to support testing.
+iroh::test_utils - Rust Available on crate feature test-utils only.Expand description
Internal utilities to support testing.
Structs§
- Cleanup
DropGuard - A drop guard to clean up test infrastructure.
- DnsPkarr
Server - Handle and drop guard for test DNS and Pkarr servers.
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/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
index c557fa7870..c5444183b5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
+++ b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
@@ -1,4 +1,4 @@
-CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Expand description
A drop guard to clean up test infrastructure.
+CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Available on crate feature test-utils only.Expand description
A drop guard to clean up test infrastructure.
After dropping the test infrastructure will asynchronously shutdown and release its
resources.
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for CleanupDropGuard
§impl !RefUnwindSafe for CleanupDropGuard
§impl Send for CleanupDropGuard
§impl Sync for CleanupDropGuard
§impl Unpin for CleanupDropGuard
§impl !UnwindSafe for CleanupDropGuard
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
index d46ae8d5e1..ccd49d4ef5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -3,7 +3,7 @@
pub nameserver: SocketAddr,
pub pkarr_url: Url,
/* private fields */
-}Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}Available on crate feature test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
§nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
index a08dddd86b..f4c1157e70 100644
--- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html
+++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
@@ -13,7 +13,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
Error when deserialising a PublicKey or a SecretKey.
+}Available on crate feature key only.Variants§
§Decode
Error when decoding.
§Key
Error when decoding the public key.
§DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html
index 817a16cc72..b1ee851ad2 100644
--- a/pr/3514/docs/iroh_base/index.html
+++ b/pr/3514/docs/iroh_base/index.html
@@ -1,5 +1,5 @@
iroh_base - Rust Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation.
+
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
-provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
+provider.Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParseError relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh_base/struct.NodeAddr.html b/pr/3514/docs/iroh_base/struct.NodeAddr.html
index 839a0f8fe6..f4fde16166 100644
--- a/pr/3514/docs/iroh_base/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh_base/struct.NodeAddr.html
@@ -2,7 +2,7 @@
pub node_id: NodeId,
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
-}Expand description
Network-level addressing information for an iroh node.
+}Available on crate feature key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to
contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
index 71ebbfa1c6..f396502ecf 100644
--- a/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.PortmapMetrics.html
@@ -10,7 +10,7 @@
pub upnp_gateway_updated: Counter,
pub pcp_probes: Counter,
pub pcp_available: Counter,
-}Expand description
Enum of metrics for the module
+}Available on non-wasm_browser only.Expand description
Enum of metrics for the module
Fields§
§probes_started: CounterNumber of probing tasks started.
§local_port_updates: CounterNumber of updates to the local port.
§mapping_attempts: CounterNumber of mapping tasks started.
diff --git a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
index 560a6dc0d7..0d269892b0 100644
--- a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
+++ b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html
@@ -18,7 +18,7 @@
pub accepts: Counter,
pub disconnects: Counter,
pub unique_client_keys: Counter,
-}Expand description
Metrics tracked for the relay server
+}Available on crate feature test-utils only.Expand description
Metrics tracked for the relay server
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
§bytes_recv: CounterBytes received from a FrameType::SendPacket
§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
diff --git a/pr/3514/docs/iroh/net_report/enum.Probe.html b/pr/3514/docs/iroh/net_report/enum.Probe.html
index c524906642..0e14a0b4dd 100644
--- a/pr/3514/docs/iroh/net_report/enum.Probe.html
+++ b/pr/3514/docs/iroh/net_report/enum.Probe.html
@@ -4,8 +4,8 @@
QadIpv6 = 2,
}Expand description
The protocol used to time a node’s latency.
Variants§
§Https = 0
HTTPS
-§QadIpv4 = 1
QUIC Address Discovery Ipv4
-§QadIpv6 = 2
QUIC Address Discovery Ipv6
+§QadIpv4 = 1
Available on non-wasm_browser only.QUIC Address Discovery Ipv4
+§QadIpv6 = 2
Available on non-wasm_browser only.QUIC Address Discovery Ipv6
Trait Implementations§
Source§impl Ord for Probe
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/3514/docs/iroh/net_report/index.html b/pr/3514/docs/iroh/net_report/index.html
index dc297a94dc..5b2223108c 100644
--- a/pr/3514/docs/iroh/net_report/index.html
+++ b/pr/3514/docs/iroh/net_report/index.html
@@ -2,4 +2,4 @@
NetReport is responsible for finding out the network conditions of the current host, like
whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is
etc and reachability to the configured relays.
-
Structs§
- Metrics
- Enum of metrics for the module
- Options
- Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
+Structs§
- Metrics
- Enum of metrics for the module
- Options
Non-wasm_browser - Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/net_report/struct.Options.html b/pr/3514/docs/iroh/net_report/struct.Options.html
index 9b9f76f3f6..fa199a8c37 100644
--- a/pr/3514/docs/iroh/net_report/struct.Options.html
+++ b/pr/3514/docs/iroh/net_report/struct.Options.html
@@ -1,10 +1,10 @@
-Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Expand description
Options for running probes
+Options in iroh::net_report - Rust pub struct Options { /* private fields */ }
Available on non-wasm_browser only.Expand description
Options for running probes
By default, will run Https probes.
Use Options::quic_config to enable QUIC address discovery.
Implementations§
Source§impl Options
Sourcepub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
Enable quic probes
Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Skip cert verification
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Available on crate feature test-utils only.
Skip cert verification
Sourcepub fn as_protocols(&self) -> BTreeSet<Probe>
Turn the options into set of valid protocols
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Options
§impl !RefUnwindSafe for Options
§impl Send for Options
§impl Sync for Options
§impl Unpin for Options
§impl !UnwindSafe for Options
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
index 24cf23b16a..ec8f88c330 100644
--- a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
+++ b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
@@ -1,5 +1,5 @@
RelayLatencies in iroh::net_report - Rust pub struct RelayLatencies { /* private fields */ }
Expand description
Latencies per relay node.
-Implementations§
Source§impl RelayLatencies
Sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
Source§impl Clone for RelayLatencies
Source§fn clone(&self) -> RelayLatencies
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RelayLatencies
Source§impl Default for RelayLatencies
Source§fn default() -> RelayLatencies
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for RelayLatencies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for RelayLatencies
Source§impl Serialize for RelayLatencies
Source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
index 78f05a321d..45df56531d 100644
--- a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
index a0dcc86190..b87d07c1de 100644
--- a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
+++ b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
@@ -4,6 +4,6 @@
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Required Methods§
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§
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/struct.NodeAddr.html b/pr/3514/docs/iroh/struct.NodeAddr.html
index e7e779d25b..14279600a5 100644
--- a/pr/3514/docs/iroh/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh/struct.NodeAddr.html
@@ -44,7 +44,7 @@ whenever a connection to other nodes needs to be established.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
Source§impl Hash for NodeAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/pr/3514/docs/iroh/struct.PublicKey.html b/pr/3514/docs/iroh/struct.PublicKey.html
index b700c8a17c..748f989107 100644
--- a/pr/3514/docs/iroh/struct.PublicKey.html
+++ b/pr/3514/docs/iroh/struct.PublicKey.html
@@ -109,7 +109,7 @@ indices from [N - M, N) (excluding the index N itself)
Source§impl Ord for PublicKey
Source§impl PartialEq for PublicKey
Source§fn eq(&self, other: &PublicKey) -> bool
Tests for self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
Tests for !=. The default implementation is almost always sufficient,
diff --git a/pr/3514/docs/iroh/struct.RelayUrl.html b/pr/3514/docs/iroh/struct.RelayUrl.html
index b2093b812e..04238b61fa 100644
--- a/pr/3514/docs/iroh/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh/struct.RelayUrl.html
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
index 24335b059d..b4c43a77a8 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-
run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server with QUIC enabled suitable for tests.
+run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
index 2427917da9..dc1d67d062 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,6 +1,6 @@
run_relay_server_with in iroh::test_utils - Rust pub async fn run_relay_server_with(
quic: bool,
-) -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server), SpawnError>Available on crate feature 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.
The return value is similar to run_relay_server.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/index.html b/pr/3514/docs/iroh/test_utils/index.html
index 5ab9442bcf..99408b93c8 100644
--- a/pr/3514/docs/iroh/test_utils/index.html
+++ b/pr/3514/docs/iroh/test_utils/index.html
@@ -1,2 +1,2 @@
-iroh::test_utils - Rust Expand description
Internal utilities to support testing.
+iroh::test_utils - Rust Available on crate feature test-utils only.Expand description
Internal utilities to support testing.
Structs§
- Cleanup
DropGuard - A drop guard to clean up test infrastructure.
- DnsPkarr
Server - Handle and drop guard for test DNS and Pkarr servers.
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/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
index c557fa7870..c5444183b5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
+++ b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
@@ -1,4 +1,4 @@
-CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Expand description
A drop guard to clean up test infrastructure.
+CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Available on crate feature test-utils only.Expand description
A drop guard to clean up test infrastructure.
After dropping the test infrastructure will asynchronously shutdown and release its
resources.
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for CleanupDropGuard
§impl !RefUnwindSafe for CleanupDropGuard
§impl Send for CleanupDropGuard
§impl Sync for CleanupDropGuard
§impl Unpin for CleanupDropGuard
§impl !UnwindSafe for CleanupDropGuard
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
index d46ae8d5e1..ccd49d4ef5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -3,7 +3,7 @@
pub nameserver: SocketAddr,
pub pkarr_url: Url,
/* private fields */
-}Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}Available on crate feature test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
§nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
index a08dddd86b..f4c1157e70 100644
--- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html
+++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
@@ -13,7 +13,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
Error when deserialising a PublicKey or a SecretKey.
+}Available on crate feature key only.Variants§
§Decode
Error when decoding.
§Key
Error when decoding the public key.
§DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html
index 817a16cc72..b1ee851ad2 100644
--- a/pr/3514/docs/iroh_base/index.html
+++ b/pr/3514/docs/iroh_base/index.html
@@ -1,5 +1,5 @@
iroh_base - Rust Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation.
+
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
-provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
+provider.Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParseError relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh_base/struct.NodeAddr.html b/pr/3514/docs/iroh_base/struct.NodeAddr.html
index 839a0f8fe6..f4fde16166 100644
--- a/pr/3514/docs/iroh_base/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh_base/struct.NodeAddr.html
@@ -2,7 +2,7 @@
pub node_id: NodeId,
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
-}Expand description
Network-level addressing information for an iroh node.
+}Available on crate feature key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to
contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
Expand description
Enum of metrics for the module
+}wasm_browser only.Expand description
Enum of metrics for the module
Fields§
§probes_started: CounterNumber of probing tasks started.
local_port_updates: CounterNumber of updates to the local port.
mapping_attempts: CounterNumber of mapping tasks started.
diff --git a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html index 560a6dc0d7..0d269892b0 100644 --- a/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html +++ b/pr/3514/docs/iroh/metrics/struct.RelayMetrics.html @@ -18,7 +18,7 @@ pub accepts: Counter, pub disconnects: Counter, pub unique_client_keys: Counter, -}Expand description
Metrics tracked for the relay server
+}test-utils only.Expand description
Metrics tracked for the relay server
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
bytes_recv: CounterBytes received from a FrameType::SendPacket
send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
Expand description
The protocol used to time a node’s latency.
Variants§
Https = 0
HTTPS
-QadIpv4 = 1
QUIC Address Discovery Ipv4
-QadIpv6 = 2
QUIC Address Discovery Ipv6
+QadIpv4 = 1
wasm_browser only.QUIC Address Discovery Ipv4
+QadIpv6 = 2
wasm_browser only.QUIC Address Discovery Ipv6
Trait Implementations§
Source§impl Ord for Probe
impl Ord for Probe
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · Source§fn clamp(self, min: Self, max: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh/net_report/index.html b/pr/3514/docs/iroh/net_report/index.html
index dc297a94dc..5b2223108c 100644
--- a/pr/3514/docs/iroh/net_report/index.html
+++ b/pr/3514/docs/iroh/net_report/index.html
@@ -2,4 +2,4 @@
NetReport is responsible for finding out the network conditions of the current host, like
whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is
etc and reachability to the configured relays.
-
fn clamp(self, min: Self, max: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh/net_report/index.html b/pr/3514/docs/iroh/net_report/index.html
index dc297a94dc..5b2223108c 100644
--- a/pr/3514/docs/iroh/net_report/index.html
+++ b/pr/3514/docs/iroh/net_report/index.html
@@ -2,4 +2,4 @@
NetReport is responsible for finding out the network conditions of the current host, like
whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is
etc and reachability to the configured relays.
-
NetReport is responsible for finding out the network conditions of the current host, like whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is etc and reachability to the configured relays.
-Structs§
- Metrics
- Enum of metrics for the module
- Options
- Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
Structs§
- Metrics
- Enum of metrics for the module
- Options
Non- wasm_browser - Options for running probes
- Quic
Config - Pieces needed to do QUIC address discovery.
- Relay
Latencies - Latencies per relay node.
- Report
- A net_report report.
Enums§
- Probe
- The protocol used to time a node’s latency.
Constants§
- TIMEOUT
- The maximum amount of time, in seconds, the net_report will spend gathering a single report.
pub struct Options { /* private fields */ }Expand description
Options for running probes
+pub struct Options { /* private fields */ }wasm_browser only.Expand description
Options for running probes
By default, will run Https probes.
Use Options::quic_config to enable QUIC address discovery.
Implementations§
Source§impl Options
impl Options
Sourcepub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
pub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
Enable quic probes
Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
pub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Skip cert verification
+Sourcepub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
Available on crate feature test-utils only.
pub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self
test-utils only.Skip cert verification
Sourcepub fn as_protocols(&self) -> BTreeSet<Probe>
pub fn as_protocols(&self) -> BTreeSet<Probe>
Turn the options into set of valid protocols
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl !RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl !UnwindSafe for Options
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
index 24cf23b16a..ec8f88c330 100644
--- a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
+++ b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
@@ -1,5 +1,5 @@
RelayLatencies in iroh::net_report - Rust pub struct RelayLatencies { /* private fields */ }
Expand description
Latencies per relay node.
-Implementations§
Source§impl RelayLatencies
Sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
Source§impl Clone for RelayLatencies
Source§fn clone(&self) -> RelayLatencies
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RelayLatencies
Source§impl Default for RelayLatencies
Source§fn default() -> RelayLatencies
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for RelayLatencies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for RelayLatencies
Source§impl Serialize for RelayLatencies
Source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
index 78f05a321d..45df56531d 100644
--- a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
index a0dcc86190..b87d07c1de 100644
--- a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
+++ b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
@@ -4,6 +4,6 @@
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Required Methods§
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§
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/struct.NodeAddr.html b/pr/3514/docs/iroh/struct.NodeAddr.html
index e7e779d25b..14279600a5 100644
--- a/pr/3514/docs/iroh/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh/struct.NodeAddr.html
@@ -44,7 +44,7 @@ whenever a connection to other nodes needs to be established.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
Source§impl Hash for NodeAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/pr/3514/docs/iroh/struct.PublicKey.html b/pr/3514/docs/iroh/struct.PublicKey.html
index b700c8a17c..748f989107 100644
--- a/pr/3514/docs/iroh/struct.PublicKey.html
+++ b/pr/3514/docs/iroh/struct.PublicKey.html
@@ -109,7 +109,7 @@ indices from [N - M, N) (excluding the index N itself)
Source§impl Ord for PublicKey
Source§impl PartialEq for PublicKey
Source§fn eq(&self, other: &PublicKey) -> bool
Tests for self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
Tests for !=. The default implementation is almost always sufficient,
diff --git a/pr/3514/docs/iroh/struct.RelayUrl.html b/pr/3514/docs/iroh/struct.RelayUrl.html
index b2093b812e..04238b61fa 100644
--- a/pr/3514/docs/iroh/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh/struct.RelayUrl.html
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
index 24335b059d..b4c43a77a8 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-
run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server with QUIC enabled suitable for tests.
+run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
index 2427917da9..dc1d67d062 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,6 +1,6 @@
run_relay_server_with in iroh::test_utils - Rust pub async fn run_relay_server_with(
quic: bool,
-) -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server), SpawnError>Available on crate feature 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.
The return value is similar to run_relay_server.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/index.html b/pr/3514/docs/iroh/test_utils/index.html
index 5ab9442bcf..99408b93c8 100644
--- a/pr/3514/docs/iroh/test_utils/index.html
+++ b/pr/3514/docs/iroh/test_utils/index.html
@@ -1,2 +1,2 @@
-iroh::test_utils - Rust Expand description
Internal utilities to support testing.
+iroh::test_utils - Rust Available on crate feature test-utils only.Expand description
Internal utilities to support testing.
Structs§
- Cleanup
DropGuard - A drop guard to clean up test infrastructure.
- DnsPkarr
Server - Handle and drop guard for test DNS and Pkarr servers.
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/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
index c557fa7870..c5444183b5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
+++ b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
@@ -1,4 +1,4 @@
-CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Expand description
A drop guard to clean up test infrastructure.
+CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Available on crate feature test-utils only.Expand description
A drop guard to clean up test infrastructure.
After dropping the test infrastructure will asynchronously shutdown and release its
resources.
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for CleanupDropGuard
§impl !RefUnwindSafe for CleanupDropGuard
§impl Send for CleanupDropGuard
§impl Sync for CleanupDropGuard
§impl Unpin for CleanupDropGuard
§impl !UnwindSafe for CleanupDropGuard
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
index d46ae8d5e1..ccd49d4ef5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -3,7 +3,7 @@
pub nameserver: SocketAddr,
pub pkarr_url: Url,
/* private fields */
-}Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}Available on crate feature test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
§nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
index a08dddd86b..f4c1157e70 100644
--- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html
+++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
@@ -13,7 +13,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
Error when deserialising a PublicKey or a SecretKey.
+}Available on crate feature key only.Variants§
§Decode
Error when decoding.
§Key
Error when decoding the public key.
§DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html
index 817a16cc72..b1ee851ad2 100644
--- a/pr/3514/docs/iroh_base/index.html
+++ b/pr/3514/docs/iroh_base/index.html
@@ -1,5 +1,5 @@
iroh_base - Rust Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation.
+
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
-provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
+provider.Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParseError relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh_base/struct.NodeAddr.html b/pr/3514/docs/iroh_base/struct.NodeAddr.html
index 839a0f8fe6..f4fde16166 100644
--- a/pr/3514/docs/iroh_base/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh_base/struct.NodeAddr.html
@@ -2,7 +2,7 @@
pub node_id: NodeId,
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
-}Expand description
Network-level addressing information for an iroh node.
+}Available on crate feature key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to
contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
index 24cf23b16a..ec8f88c330 100644
--- a/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
+++ b/pr/3514/docs/iroh/net_report/struct.RelayLatencies.html
@@ -1,5 +1,5 @@
RelayLatencies in iroh::net_report - Rust pub struct RelayLatencies { /* private fields */ }
Expand description
Latencies per relay node.
-Implementations§
Source§impl RelayLatencies
Sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
Source§impl Clone for RelayLatencies
Source§fn clone(&self) -> RelayLatencies
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RelayLatencies
Source§impl Default for RelayLatencies
Source§fn default() -> RelayLatencies
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for RelayLatencies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for RelayLatencies
Source§impl Serialize for RelayLatencies
Source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
index 78f05a321d..45df56531d 100644
--- a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
+) -> Result<NodeInfo, ParseError>Available on non-wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
diff --git a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
index a0dcc86190..b87d07c1de 100644
--- a/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
+++ b/pr/3514/docs/iroh/node_info/trait.NodeIdExt.html
@@ -4,6 +4,6 @@
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Required Methods§
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§
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/struct.NodeAddr.html b/pr/3514/docs/iroh/struct.NodeAddr.html
index e7e779d25b..14279600a5 100644
--- a/pr/3514/docs/iroh/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh/struct.NodeAddr.html
@@ -44,7 +44,7 @@ whenever a connection to other nodes needs to be established.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
Source§impl Hash for NodeAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/pr/3514/docs/iroh/struct.PublicKey.html b/pr/3514/docs/iroh/struct.PublicKey.html
index b700c8a17c..748f989107 100644
--- a/pr/3514/docs/iroh/struct.PublicKey.html
+++ b/pr/3514/docs/iroh/struct.PublicKey.html
@@ -109,7 +109,7 @@ indices from [N - M, N) (excluding the index N itself)
Source§impl Ord for PublicKey
Source§impl PartialEq for PublicKey
Source§fn eq(&self, other: &PublicKey) -> bool
Tests for self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
Tests for !=. The default implementation is almost always sufficient,
diff --git a/pr/3514/docs/iroh/struct.RelayUrl.html b/pr/3514/docs/iroh/struct.RelayUrl.html
index b2093b812e..04238b61fa 100644
--- a/pr/3514/docs/iroh/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh/struct.RelayUrl.html
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
index 24335b059d..b4c43a77a8 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-
run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server with QUIC enabled suitable for tests.
+run_relay_server in iroh::test_utils - Rust pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
index 2427917da9..dc1d67d062 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,6 +1,6 @@
run_relay_server_with in iroh::test_utils - Rust pub async fn run_relay_server_with(
quic: bool,
-) -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server), SpawnError>Available on crate feature 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.
The return value is similar to run_relay_server.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh/test_utils/index.html b/pr/3514/docs/iroh/test_utils/index.html
index 5ab9442bcf..99408b93c8 100644
--- a/pr/3514/docs/iroh/test_utils/index.html
+++ b/pr/3514/docs/iroh/test_utils/index.html
@@ -1,2 +1,2 @@
-iroh::test_utils - Rust Expand description
Internal utilities to support testing.
+iroh::test_utils - Rust Available on crate feature test-utils only.Expand description
Internal utilities to support testing.
Structs§
- Cleanup
DropGuard - A drop guard to clean up test infrastructure.
- DnsPkarr
Server - Handle and drop guard for test DNS and Pkarr servers.
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/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
index c557fa7870..c5444183b5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
+++ b/pr/3514/docs/iroh/test_utils/struct.CleanupDropGuard.html
@@ -1,4 +1,4 @@
-CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Expand description
A drop guard to clean up test infrastructure.
+CleanupDropGuard in iroh::test_utils - Rust pub struct CleanupDropGuard(/* private fields */);
Available on crate feature test-utils only.Expand description
A drop guard to clean up test infrastructure.
After dropping the test infrastructure will asynchronously shutdown and release its
resources.
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for CleanupDropGuard
§impl !RefUnwindSafe for CleanupDropGuard
§impl Send for CleanupDropGuard
§impl Sync for CleanupDropGuard
§impl Unpin for CleanupDropGuard
§impl !UnwindSafe for CleanupDropGuard
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
index d46ae8d5e1..ccd49d4ef5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -3,7 +3,7 @@
pub nameserver: SocketAddr,
pub pkarr_url: Url,
/* private fields */
-}Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}Available on crate feature test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
§nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
index a08dddd86b..f4c1157e70 100644
--- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html
+++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
@@ -13,7 +13,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
Error when deserialising a PublicKey or a SecretKey.
+}Available on crate feature key only.Variants§
§Decode
Error when decoding.
§Key
Error when decoding the public key.
§DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html
index 817a16cc72..b1ee851ad2 100644
--- a/pr/3514/docs/iroh_base/index.html
+++ b/pr/3514/docs/iroh_base/index.html
@@ -1,5 +1,5 @@
iroh_base - Rust Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation.
+
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
-provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
+provider.Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParseError relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh_base/struct.NodeAddr.html b/pr/3514/docs/iroh_base/struct.NodeAddr.html
index 839a0f8fe6..f4fde16166 100644
--- a/pr/3514/docs/iroh_base/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh_base/struct.NodeAddr.html
@@ -2,7 +2,7 @@
pub node_id: NodeId,
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
-}Expand description
Network-level addressing information for an iroh node.
+}Available on crate feature key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to
contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
pub struct RelayLatencies { /* private fields */ }Expand description
Latencies per relay node.
-Implementations§
Source§impl RelayLatencies
impl RelayLatencies
Sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
pub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
Source§impl Clone for RelayLatencies
impl Clone for RelayLatencies
Source§fn clone(&self) -> RelayLatencies
fn clone(&self) -> RelayLatencies
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RelayLatencies
impl Debug for RelayLatencies
Source§impl Default for RelayLatencies
impl Default for RelayLatencies
Source§fn default() -> RelayLatencies
fn default() -> RelayLatencies
Source§impl<'de> Deserialize<'de> for RelayLatencies
impl<'de> Deserialize<'de> for RelayLatencies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RelayLatencies
impl PartialEq for RelayLatencies
Source§impl Serialize for RelayLatencies
impl Serialize for RelayLatencies
Source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
index 78f05a321d..45df56531d 100644
--- a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
@@ -18,7 +18,7 @@
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
index 78f05a321d..45df56531d 100644
--- a/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
+++ b/pr/3514/docs/iroh/node_info/struct.NodeInfo.html
@@ -18,7 +18,7 @@
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
-) -> Result<NodeInfo, ParseError>
pub fn from_txt_lookup( domain_name: String, lookup: impl Iterator<Item = TxtRecordData>, -) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from DNS TXT lookup.
wasm_browser only.Parses a NodeInfo from DNS TXT lookup.
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, ParseError>
pub fn from_pkarr_signed_packet( packet: &SignedPacket, ) -> Result<NodeInfo, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
Required Methods§
Required Methods§
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§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Source§impl From<NodeTicket> for NodeAddr
impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Source§impl From<NodeTicket> for NodeAddr
impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
Source§impl Hash for NodeAddr
impl Hash for NodeAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/pr/3514/docs/iroh/struct.PublicKey.html b/pr/3514/docs/iroh/struct.PublicKey.html
index b700c8a17c..748f989107 100644
--- a/pr/3514/docs/iroh/struct.PublicKey.html
+++ b/pr/3514/docs/iroh/struct.PublicKey.html
@@ -109,7 +109,7 @@ indices from [N - M, N) (excluding the index N itself)
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
diff --git a/pr/3514/docs/iroh/struct.PublicKey.html b/pr/3514/docs/iroh/struct.PublicKey.html
index b700c8a17c..748f989107 100644
--- a/pr/3514/docs/iroh/struct.PublicKey.html
+++ b/pr/3514/docs/iroh/struct.PublicKey.html
@@ -109,7 +109,7 @@ indices from [N - M, N) (excluding the index N itself)
[N - M, N) (excluding the index N itself)
Source§impl Ord for PublicKey
impl Ord for PublicKey
Source§impl PartialEq for PublicKey
impl PartialEq for PublicKey
Source§fn eq(&self, other: &PublicKey) -> bool
fn eq(&self, other: &PublicKey) -> bool
self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
!=. The default implementation is almost always sufficient,
diff --git a/pr/3514/docs/iroh/struct.RelayUrl.html b/pr/3514/docs/iroh/struct.RelayUrl.html
index b2093b812e..04238b61fa 100644
--- a/pr/3514/docs/iroh/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh/struct.RelayUrl.html
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
pub fn socket_addrs( &self, default_port_number: impl Fn() -> Option<u16>, -) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
Serialize with Serde using the internal representation of the Url struct.
serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
pub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
pub fn to_file_path(&self) -> Result<PathBuf, ()>
std and (Unix or Windows or Redox or WASI or HermitCore) only.Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
index 24335b059d..b4c43a77a8 100644
--- a/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3514/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-
pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>Expand description
Runs a relay server with QUIC enabled suitable for tests.
+pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>test-utils only.pub async fn run_relay_server_with(
quic: bool,
-) -> Result<(RelayMap, RelayUrl, Server), SpawnError>Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server), SpawnError>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.
The return value is similar to run_relay_server.
Expand description
Internal utilities to support testing.
+test-utils only.Expand description
Internal utilities to support testing.
Structs§
- Cleanup
Drop Guard - A drop guard to clean up test infrastructure.
- DnsPkarr
Server - Handle and drop guard for test DNS and Pkarr servers.
Functions§
- run_
relay_ server - Runs a relay server with QUIC enabled suitable for tests.
- run_
relay_ server_ with - Runs a relay server.
pub struct CleanupDropGuard(/* private fields */);Expand description
A drop guard to clean up test infrastructure.
+pub struct CleanupDropGuard(/* private fields */);test-utils only.Expand description
A drop guard to clean up test infrastructure.
After dropping the test infrastructure will asynchronously shutdown and release its resources.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CleanupDropGuard
impl !RefUnwindSafe for CleanupDropGuard
impl Send for CleanupDropGuard
impl Sync for CleanupDropGuard
impl Unpin for CleanupDropGuard
impl !UnwindSafe for CleanupDropGuard
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
index d46ae8d5e1..ccd49d4ef5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -3,7 +3,7 @@
pub nameserver: SocketAddr,
pub pkarr_url: Url,
/* private fields */
-}Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}Available on crate feature test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
§nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
index a08dddd86b..f4c1157e70 100644
--- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html
+++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
@@ -13,7 +13,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
Error when deserialising a PublicKey or a SecretKey.
+}Available on crate feature key only.Variants§
§Decode
Error when decoding.
§Key
Error when decoding the public key.
§DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html
index 817a16cc72..b1ee851ad2 100644
--- a/pr/3514/docs/iroh_base/index.html
+++ b/pr/3514/docs/iroh_base/index.html
@@ -1,5 +1,5 @@
iroh_base - Rust Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation.
+
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
-provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
+provider.Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParseError relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh_base/struct.NodeAddr.html b/pr/3514/docs/iroh_base/struct.NodeAddr.html
index 839a0f8fe6..f4fde16166 100644
--- a/pr/3514/docs/iroh_base/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh_base/struct.NodeAddr.html
@@ -2,7 +2,7 @@
pub node_id: NodeId,
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
-}Expand description
Network-level addressing information for an iroh node.
+}Available on crate feature key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to
contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
impl<T> Any for Twhere
diff --git a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
index d46ae8d5e1..ccd49d4ef5 100644
--- a/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
+++ b/pr/3514/docs/iroh/test_utils/struct.DnsPkarrServer.html
@@ -3,7 +3,7 @@
pub nameserver: SocketAddr,
pub pkarr_url: Url,
/* private fields */
-}Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}Available on crate feature test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
§nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
index a08dddd86b..f4c1157e70 100644
--- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html
+++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html
@@ -13,7 +13,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
Error when deserialising a PublicKey or a SecretKey.
+}Available on crate feature key only.Variants§
§Decode
Error when decoding.
§Key
Error when decoding the public key.
§DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html
index 817a16cc72..b1ee851ad2 100644
--- a/pr/3514/docs/iroh_base/index.html
+++ b/pr/3514/docs/iroh_base/index.html
@@ -1,5 +1,5 @@
iroh_base - Rust Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation.
+
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
-provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParseError - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
+provider.Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParseError relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKey or a SecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
\ No newline at end of file
diff --git a/pr/3514/docs/iroh_base/struct.NodeAddr.html b/pr/3514/docs/iroh_base/struct.NodeAddr.html
index 839a0f8fe6..f4fde16166 100644
--- a/pr/3514/docs/iroh_base/struct.NodeAddr.html
+++ b/pr/3514/docs/iroh_base/struct.NodeAddr.html
@@ -2,7 +2,7 @@
pub node_id: NodeId,
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
-}Expand description
Network-level addressing information for an iroh node.
+}Available on crate feature key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to
contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moreSource§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
Source§fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
Expand description
Handle and drop guard for test DNS and Pkarr servers.
+}test-utils only.Expand description
Handle and drop guard for test DNS and Pkarr servers.
Once the struct is dropped the servers will shut down.
Fields§
§node_origin: StringThe node origin domain.
nameserver: SocketAddrThe socket address of the DNS server.
diff --git a/pr/3514/docs/iroh_base/enum.KeyParsingError.html b/pr/3514/docs/iroh_base/enum.KeyParsingError.html index a08dddd86b..f4c1157e70 100644 --- a/pr/3514/docs/iroh_base/enum.KeyParsingError.html +++ b/pr/3514/docs/iroh_base/enum.KeyParsingError.html @@ -13,7 +13,7 @@ backtrace: Option<Backtrace>, span_trace: SpanTrace, }, -}Expand description
Error when deserialising a PublicKey or a SecretKey.
key only.Variants§
Decode
Error when decoding.
Key
Error when decoding the public key.
DecodeInvalidLength
The encoded information had the wrong length.
diff --git a/pr/3514/docs/iroh_base/index.html b/pr/3514/docs/iroh_base/index.html index 817a16cc72..b1ee851ad2 100644 --- a/pr/3514/docs/iroh_base/index.html +++ b/pr/3514/docs/iroh_base/index.html @@ -1,5 +1,5 @@Expand description
Base types and utilities for Iroh
-Modules§
- ticket
- Tickets is a serializable object combining information required for an operation. +
Modules§
- ticket
ticket - Tickets is a serializable object combining information required for an operation. Typically tickets contain all information required for an operation, e.g. an iroh blob ticket would contain the hash of the data as well as information about how to reach the -provider.
Structs§
- Node
Addr - Network-level addressing information for an iroh node.
- Public
Key - A public key.
- Relay
Url - A URL identifying a relay server.
- Relay
UrlParse Error - Can occur when parsing a string into a
RelayUrl. - Secret
Key - A secret key.
- Signature
- Ed25519 signature.
Enums§
- KeyParsing
Error - Error when deserialising a
PublicKeyor aSecretKey.
Type Aliases§
- NodeId
- The identifier for a node in the (iroh) network.
- Signature
Error - Errors which may occur while processing signatures and keypairs.
Structs§
- Node
Addr key - Network-level addressing information for an iroh node.
- Public
Key key - A public key.
- Relay
Url relay - A URL identifying a relay server.
- Relay
UrlParse Error relay - Can occur when parsing a string into a
RelayUrl. - Secret
Key key - A secret key.
- Signature
key - Ed25519 signature.
Enums§
- KeyParsing
Error key - Error when deserialising a
PublicKeyor aSecretKey.
Type Aliases§
- NodeId
key - The identifier for a node in the (iroh) network.
- Signature
Error key - Errors which may occur while processing signatures and keypairs.
Expand description
Network-level addressing information for an iroh node.
+}key only.Expand description
Network-level addressing information for an iroh node.
This combines a node’s identifier with network-level addressing information of how to contact the node.
To establish a network connection to a node both the NodeId and one or more network
@@ -42,8 +42,8 @@ whenever a connection to other nodes needs to be established.
Sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeAddr
impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Source§impl From<NodeAddr> for NodeTicket
impl From<NodeAddr> for NodeTicket
Source§impl From<NodeTicket> for NodeAddr
impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> Self
fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Source§impl From<NodeAddr> for NodeTicket
Available on crate feature ticket only.
impl From<NodeAddr> for NodeTicket
ticket only.Source§impl From<NodeTicket> for NodeAddr
Available on crate feature ticket only.
impl From<NodeTicket> for NodeAddr
ticket only.Source§fn from(ticket: NodeTicket) -> Self
fn from(ticket: NodeTicket) -> Self
Returns the addressing info from given ticket.
Source§impl Ord for NodeAddr
impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3514/docs/iroh_base/struct.PublicKey.html b/pr/3514/docs/iroh_base/struct.PublicKey.html
index 0ce79007ab..fff08c6673 100644
--- a/pr/3514/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3514/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_base - Rust pub struct PublicKey(/* private fields */);
Available on crate feature key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
Sourcepub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrl.html b/pr/3514/docs/iroh_base/struct.RelayUrl.html
index 0b2f409e87..a2844d7bbb 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrl.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_base - Rust pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
@@ -325,7 +325,7 @@ For other schemes, it is the same as Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
+) -> Result<Vec<SocketAddr>, Error>Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize with Serde using the internal representation of the Url struct.
+ S: Serializer,Available on crate feature serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
-Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Expand description
Can occur when parsing a string into a RelayUrl.
+RelayUrlParseError in iroh_base - Rust pub struct RelayUrlParseError { /* private fields */ }
Available on crate feature relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcastingSource§impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
diff --git a/pr/3514/docs/iroh_base/struct.SecretKey.html b/pr/3514/docs/iroh_base/struct.SecretKey.html
index 10a4d0d228..ea2aa447cf 100644
--- a/pr/3514/docs/iroh_base/struct.SecretKey.html
+++ b/pr/3514/docs/iroh_base/struct.SecretKey.html
@@ -1,4 +1,4 @@
-SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+SecretKey in iroh_base - Rust pub struct SecretKey { /* private fields */ }
Available on crate feature key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
diff --git a/pr/3514/docs/iroh_base/struct.Signature.html b/pr/3514/docs/iroh_base/struct.Signature.html
index 547a868806..d297b60ca2 100644
--- a/pr/3514/docs/iroh_base/struct.Signature.html
+++ b/pr/3514/docs/iroh_base/struct.Signature.html
@@ -1,4 +1,4 @@
-Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Expand description
Ed25519 signature.
+Signature in iroh_base - Rust Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }
Available on crate feature key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519
signature, and does not necessarily represent well-formed field or curve
elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreResult<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
§fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
§impl Copy for Signature
§impl Eq for Signature
§impl StructuralPartialEq for Signature
Auto Trait Implementations§
§impl Freeze for Signature
§impl RefUnwindSafe for Signature
§impl Send for Signature
§impl Sync for Signature
§impl Unpin for Signature
§impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
pub struct PublicKey(/* private fields */);Expand description
A public key.
+pub struct PublicKey(/* private fields */);key only.Expand description
A public key.
The key itself is stored as the CompressedEdwards y coordinate of the public key
It is verified to decompress into a valid key when created.
Implementations§
Source§impl PublicKey
impl PublicKey
Sourcepub const LENGTH: usize = 32usize
pub const LENGTH: usize = 32usize
The length of an ed25519 PublicKey, in bytes.
pub struct RelayUrl(/* private fields */);Expand description
A URL identifying a relay server.
+pub struct RelayUrl(/* private fields */);relay only.Expand description
A URL identifying a relay server.
It is cheaply clonable, as the underlying type is wrapped into an Arc.
The main type under the hood though is Url, with a few custom tweaks:
-
@@ -325,7 +325,7 @@ For other schemes, it is the same as
Url::port().
Sourcepub fn socket_addrs(
&self,
default_port_number: impl Fn() -> Option<u16>,
-) -> Result<Vec<SocketAddr>, Error>
pub fn socket_addrs( &self, default_port_number: impl Fn() -> Option<u16>, -) -> Result<Vec<SocketAddr>, Error>
Resolve a URL’s host and port number to SocketAddr.
std and (Unix or Windows or Redox or WASI or HermitCore) only.Resolve a URL’s host and port number to SocketAddr.
If the URL has the default port number of a scheme that is unknown to this library,
default_port_number provides an opportunity to provide the actual port number.
In non-example code this should be implemented either simply as || None,
@@ -440,11 +440,11 @@ but the input may have been percent-encoded already.
Serialize with Serde using the internal representation of the Url struct.
serde only.Serialize with Serde using the internal representation of the Url struct.
The corresponding deserialize_internal method sacrifices some invariant-checking
for speed, compared to the Deserialize trait impl.
This method is only available if the serde Cargo feature is enabled.
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
pub fn to_file_path(&self) -> Result<PathBuf, ()>
Assuming the URL is in the file scheme or similar,
+
Sourcepub fn to_file_path(&self) -> Result<PathBuf, ()>
Available on crate feature std and (Unix or Windows or Redox or WASI or HermitCore) only.
pub fn to_file_path(&self) -> Result<PathBuf, ()>
std and (Unix or Windows or Redox or WASI or HermitCore) only.Assuming the URL is in the file scheme or similar,
convert its path to an absolute std::path::Path.
Note: This does not actually check the URL’s scheme,
and may give nonsensical results for other schemes.
diff --git a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
index 336fd7c33f..e531fb1b24 100644
--- a/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
+++ b/pr/3514/docs/iroh_base/struct.RelayUrlParseError.html
@@ -1,4 +1,4 @@
-
pub struct RelayUrlParseError { /* private fields */ }Expand description
Can occur when parsing a string into a RelayUrl.
pub struct RelayUrlParseError { /* private fields */ }relay only.Expand description
Can occur when parsing a string into a RelayUrl.
Trait Implementations§
Source§impl Debug for RelayUrlParseError
impl Debug for RelayUrlParseError
Source§impl Display for RelayUrlParseError
impl Display for RelayUrlParseError
Source§impl Error for RelayUrlParseError
impl Error for RelayUrlParseError
Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
Source§impl ErrorCompat for RelayUrlParseError
impl ErrorCompat for RelayUrlParseError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
pub struct SecretKey { /* private fields */ }Expand description
A secret key.
+pub struct SecretKey { /* private fields */ }key only.Expand description
A secret key.
Implementations§
Source§impl SecretKey
impl SecretKey
Sourcepub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
pub fn generate<R: CryptoRng + ?Sized>(csprng: &mut R) -> Self
Generate a new SecretKey with a randomness generator.
Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }Expand description
Ed25519 signature.
+Struct Signature
#[repr(C)]pub struct Signature { /* private fields */ }key only.Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519 signature, and does not necessarily represent well-formed field or curve elements.
@@ -16,8 +16,8 @@ elements at the time a signature is verified.Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
impl AssociatedAlgorithmIdentifier for Signature
§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
+
fn deserialize<D>( +
Trait Implementations§
§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
impl AssociatedAlgorithmIdentifier for Signature
pkcs8 only.§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.§impl<'de> Deserialize<'de> for Signature
impl<'de> Deserialize<'de> for Signature
§fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Signature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl SignatureBitStringEncoding for Signature
impl SignatureBitStringEncoding for Signature
§fn to_bitstring(&self) -> Result<BitString, Error>
fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.impl Copy for Signature
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> Any for Twhere
+ S: Serializer,
impl<T> Any for Twhere
+ S: Serializer,
§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
impl SignatureBitStringEncoding for Signature
alloc and pkcs8 only.§fn to_bitstring(&self) -> Result<BitString, Error>
fn to_bitstring(&self) -> Result<BitString, Error>
BitString encoding for this signature.§impl SignatureEncoding for Signature
impl SignatureEncoding for Signature
impl Copy for Signature
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
impl<T> CloneToUninit for Twhere
diff --git a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
index 1c7a2695cd..ca0840e973 100644
--- a/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
+++ b/pr/3514/docs/iroh_base/ticket/enum.ParseError.html
@@ -19,7 +19,7 @@
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
-}Expand description
An error deserializing an iroh ticket.
+}Available on crate feature ticket only.Expand description
An error deserializing an iroh ticket.
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.§Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
§span_trace: SpanTrace§Postcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html
index ded49ccefe..cecb480b88 100644
--- a/pr/3514/docs/iroh_base/ticket/index.html
+++ b/pr/3514/docs/iroh_base/ticket/index.html
@@ -1,4 +1,4 @@
-iroh_base::ticket - Rust Expand description
Tickets is a serializable object combining information required for an operation.
+
iroh_base::ticket - Rust
Expand description
An error deserializing an iroh ticket.
+}ticket only.Expand description
An error deserializing an iroh ticket.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Kind
Found a ticket with the wrong prefix, indicating the wrong kind.
Fields
span_trace: SpanTracePostcard
This looks like a ticket, but postcard deserialization failed.
diff --git a/pr/3514/docs/iroh_base/ticket/index.html b/pr/3514/docs/iroh_base/ticket/index.html index ded49ccefe..cecb480b88 100644 --- a/pr/3514/docs/iroh_base/ticket/index.html +++ b/pr/3514/docs/iroh_base/ticket/index.html @@ -1,4 +1,4 @@ -Expand description
Tickets is a serializable object combining information required for an operation. +