diff --git a/pr/3514/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3514/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html index 83ff5d17e4..d4c0233792 100644 --- a/pr/3514/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html +++ b/pr/3514/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html @@ -1,2 +1,2 @@ -N0_DNS_NODE_ORIGIN_PROD in iroh::discovery::dns - Rust

Constant N0_DNS_NODE_ORIGIN_PROD

Source
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::discovery::dns - Rust

Constant N0_DNS_NODE_ORIGIN_PROD

Source
pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for production.

\ No newline at end of file diff --git a/pr/3514/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3514/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html index 526b59fbab..b178c30a78 100644 --- a/pr/3514/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html +++ b/pr/3514/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html @@ -1,2 +1,2 @@ -N0_DNS_NODE_ORIGIN_STAGING in iroh::discovery::dns - Rust

Constant N0_DNS_NODE_ORIGIN_STAGING

Source
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::discovery::dns - Rust

Constant N0_DNS_NODE_ORIGIN_STAGING

Source
pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for testing.

\ No newline at end of file diff --git a/pr/3514/docs/iroh/discovery/dns/index.html b/pr/3514/docs/iroh/discovery/dns/index.html index f1668c9279..5cf72aa608 100644 --- a/pr/3514/docs/iroh/discovery/dns/index.html +++ b/pr/3514/docs/iroh/discovery/dns/index.html @@ -1,2 +1,2 @@ -iroh::discovery::dns - Rust

Module dns

Source
Expand description

DNS node discovery for iroh

+iroh::discovery::dns - Rust

Module dns

Source
Available on non-wasm_browser only.
Expand description

DNS node discovery for iroh

Structs§

DnsDiscovery
DNS node discovery
DnsDiscoveryBuilder
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.
\ No newline at end of file diff --git a/pr/3514/docs/iroh/discovery/dns/struct.DnsDiscovery.html b/pr/3514/docs/iroh/discovery/dns/struct.DnsDiscovery.html index 2657370a26..aa2b143a5e 100644 --- a/pr/3514/docs/iroh/discovery/dns/struct.DnsDiscovery.html +++ b/pr/3514/docs/iroh/discovery/dns/struct.DnsDiscovery.html @@ -1,10 +1,10 @@ -DnsDiscovery in iroh::discovery::dns - Rust

Struct DnsDiscovery

Source
pub struct DnsDiscovery { /* private fields */ }
Expand description

DNS node discovery

+DnsDiscovery in iroh::discovery::dns - Rust

Struct DnsDiscovery

Source
pub struct DnsDiscovery { /* private fields */ }
Available on non-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 the NodeId encoded in z-base-32 format
  • +
  • <z32-node-id> is the NodeId encoded in [z-base-32] format
  • <origin-domain> is the node origin domain as set in DnsDiscovery::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 @@ -DnsDiscoveryBuilder in iroh::discovery::dns - Rust

Struct DnsDiscoveryBuilder

Source
pub struct DnsDiscoveryBuilder { /* private fields */ }
Expand description

Builder for DnsDiscovery.

+DnsDiscoveryBuilder in iroh::discovery::dns - Rust

Struct DnsDiscoveryBuilder

Source
pub struct DnsDiscoveryBuilder { /* private fields */ }
Available on non-wasm_browser only.
Expand description

Implementations§

Source§

impl DnsDiscoveryBuilder

Source

pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self

Sets the DNS resolver to use.

Source

pub fn build(self) -> DnsDiscovery

Builds a DnsDiscovery with the passed DnsResolver.

diff --git a/pr/3514/docs/iroh/discovery/index.html b/pr/3514/docs/iroh/discovery/index.html index ce347d1a40..5a6c09024b 100644 --- a/pr/3514/docs/iroh/discovery/index.html +++ b/pr/3514/docs/iroh/discovery/index.html @@ -73,4 +73,4 @@ implement await?;
-

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§

ConcurrentDiscovery
A discovery service that combines multiple discovery sources.
DiscoveryContext
Context about the Endpoint for discovery services.
DiscoveryItem
Node discovery results from Discovery services.
NodeData
Data about a node that may be published to and resolved from discovery services.
NodeInfo
Information about a node that may be published to and resolved from discovery services.
UserData
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

Enums§

DiscoveryError
Discovery errors
IntoDiscoveryError
IntoDiscovery errors
ParseError

Traits§

Discovery
Node discovery for super::Endpoint.
IntoDiscovery
Trait for structs that can be converted into Discovery.
\ No newline at end of file +

Modules§

dnsNon-wasm_browser
DNS node discovery for iroh
mdnsdiscovery-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§

ConcurrentDiscovery
A discovery service that combines multiple discovery sources.
DiscoveryContext
Context about the Endpoint for discovery services.
DiscoveryItem
Node discovery results from Discovery services.
NodeData
Data about a node that may be published to and resolved from discovery services.
NodeInfo
Information about a node that may be published to and resolved from discovery services.
UserData
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

Enums§

DiscoveryError
Discovery errors
IntoDiscoveryError
IntoDiscovery errors
ParseError

Traits§

Discovery
Node discovery for super::Endpoint.
IntoDiscovery
Trait for structs that can be converted into Discovery.
\ No newline at end of file diff --git a/pr/3514/docs/iroh/discovery/mdns/constant.NAME.html b/pr/3514/docs/iroh/discovery/mdns/constant.NAME.html index 419ce1d973..1b12aecad3 100644 --- a/pr/3514/docs/iroh/discovery/mdns/constant.NAME.html +++ b/pr/3514/docs/iroh/discovery/mdns/constant.NAME.html @@ -1,4 +1,4 @@ -NAME in iroh::discovery::mdns - Rust

Constant NAME

Source
pub const NAME: &str = "mdns";
Expand description

Name of this discovery service.

+NAME in iroh::discovery::mdns - Rust

Constant NAME

Source
pub const NAME: &str = "mdns";
Available on crate feature 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.

\ No newline at end of file diff --git a/pr/3514/docs/iroh/discovery/mdns/enum.DiscoveryEvent.html b/pr/3514/docs/iroh/discovery/mdns/enum.DiscoveryEvent.html index 082ecf3bbd..b717f0a412 100644 --- a/pr/3514/docs/iroh/discovery/mdns/enum.DiscoveryEvent.html +++ b/pr/3514/docs/iroh/discovery/mdns/enum.DiscoveryEvent.html @@ -6,7 +6,7 @@ Expired { node_id: NodeId, }, -}
Expand description

An event emitted from the MdnsDiscovery service.

+}
Available on crate feature 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

§node_info: NodeInfo

The node info for the node, as discovered.

§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 @@ -iroh::discovery::mdns - Rust

Module mdns

Source
Expand description

A discovery service that uses an mdns-like service to discover local nodes.

+iroh::discovery::mdns - Rust

Module mdns

Source
Available on crate feature 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.

diff --git a/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscovery.html b/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscovery.html index f8d6690d48..b9d5796c94 100644 --- a/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscovery.html +++ b/pr/3514/docs/iroh/discovery/mdns/struct.MdnsDiscovery.html @@ -1,4 +1,4 @@ -MdnsDiscovery in iroh::discovery::mdns - Rust

Struct MdnsDiscovery

Source
pub struct MdnsDiscovery { /* private fields */ }
Expand description

Discovery using swarm-discovery, a variation on mdns

+MdnsDiscovery in iroh::discovery::mdns - Rust

Struct MdnsDiscovery

Source
pub struct MdnsDiscovery { /* private fields */ }
Available on crate feature discovery-local-network only.
Expand description

Discovery using swarm-discovery, a variation on mdns

Implementations§

Source§

impl MdnsDiscovery

Source

pub fn builder() -> MdnsDiscoveryBuilder

Returns a MdnsDiscoveryBuilder that implements IntoDiscovery.

Source

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

Struct MdnsDiscoveryBuilder

Source
pub struct MdnsDiscoveryBuilder { /* private fields */ }
Expand description

Builder for MdnsDiscovery.

+MdnsDiscoveryBuilder in iroh::discovery::mdns - Rust

Struct MdnsDiscoveryBuilder

Source
pub struct MdnsDiscoveryBuilder { /* private fields */ }
Available on crate feature discovery-local-network only.
Expand description

Builder for MdnsDiscovery.

Implementations§

Source§

impl MdnsDiscoveryBuilder

Source

pub fn advertise(self, advertise: bool) -> Self

Sets whether this node should advertise its presence.

Default is true.

Source

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 @@ -iroh::discovery::pkarr::dht - Rust

Module dht

Source
Expand description

Pkarr based node discovery for iroh, supporting both relay servers and the DHT.

+iroh::discovery::pkarr::dht - Rust

Module dht

Source
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

Struct Builder

Source
pub struct Builder { /* private fields */ }
Expand description

Builder for DhtDiscovery.

+Builder in iroh::discovery::pkarr::dht - Rust

Struct Builder

Source
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

Source

pub fn client(self, client: PkarrClient) -> Self

Explicitly sets the pkarr client to use.

Source

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 @@ -DhtDiscovery in iroh::discovery::pkarr::dht - Rust

Struct DhtDiscovery

Source
pub struct DhtDiscovery(/* private fields */);
Expand description

Pkarr Mainline DHT and relay server node discovery.

+DhtDiscovery in iroh::discovery::pkarr::dht - Rust

Struct DhtDiscovery

Source
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§

PkarrPublisher
Publisher of node discovery information to a pkarr relay.
PkarrPublisherBuilder
Builder for PkarrPublisher.
PkarrRelayClient
A pkarr client to publish [pkarr::SignedPacket]s to a pkarr relay.
PkarrResolver
Resolver of node discovery information from a pkarr relay.
PkarrResolverBuilder
Builder for PkarrResolver.

Enums§

PkarrError

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§

dhtdiscovery-pkarr-dht
Pkarr based node discovery for iroh, supporting both relay servers and the DHT.

Structs§

PkarrPublisher
Publisher of node discovery information to a pkarr relay.
PkarrPublisherBuilder
Builder for PkarrPublisher.
PkarrRelayClient
A pkarr client to publish [pkarr::SignedPacket]s to a pkarr relay.
PkarrResolver
Resolver of node discovery information from a pkarr relay.
PkarrResolverBuilder
Builder for PkarrResolver.

Enums§

PkarrError

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.

Source

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.

-
Source

pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self

Sets the DNS resolver to use for resolving the pkarr relay URL.

+
Source

pub 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.

Source

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

Source§

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

Formats the value using the given formatter. Read more
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 @@

Source

pub fn with_dns_resolver( pkarr_relay_url: Url, dns_resolver: DnsResolver, -) -> Self

Creates a new client while passing a DNS resolver to use.

+) -> Self

Available on non-wasm_browser only.

Creates a new client while passing a DNS resolver to use.

Source

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

Struct PkarrResolverBuilder

Source
pub struct PkarrResolverBuilder { /* private fields */ }
Expand description

Implementations§

Source§

impl PkarrResolverBuilder

Source

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

Source

pub 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.

Source

pub fn build(self) -> PkarrResolver

Creates a PkarrResolver from this builder.

Trait Implementations§

Source§

impl Debug for PkarrResolverBuilder

Source§

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

Formats the value using the given formatter. Read more
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

Struct DiscoveryContext

Source
pub struct DiscoveryContext<'a> { /* private fields */ }
Expand description

Context about the Endpoint for discovery services.

Implementations§

Source§

impl DiscoveryContext<'_>

Source

pub fn node_id(&self) -> NodeId

Returns the NodeId of the endpoint.

Source

pub fn secret_key(&self) -> &SecretKey

Returns the SecretKey of the endpoint.

-
Source

pub fn dns_resolver(&self) -> &DnsResolver

Returns the DnsResolver used by the endpoint.

+
Source

pub fn dns_resolver(&self) -> &DnsResolver

Available on non-wasm_browser only.

Returns the DnsResolver used by the endpoint.

Trait Implementations§

Source§

impl<'a> Debug for DiscoveryContext<'a>

Source§

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

Formats the value using the given formatter. Read more

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where 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 @@

Source

pub 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.

Source

pub 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§

Source§

impl<T: Discovery> Discovery for Arc<T>

Source§

fn publish(&self, data: &NodeData)

Source§

fn resolve( &self, node_id: NodeId, -) -> Option<BoxStream<Result<DiscoveryItem, DiscoveryError>>>

Implementors§

\ 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§

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

Constant N0_DNS_NODE_ORIGIN_PROD

Source
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

Constant N0_DNS_NODE_ORIGIN_PROD

Source
pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for production.

\ 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

Constant N0_DNS_NODE_ORIGIN_STAGING

Source
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

Constant N0_DNS_NODE_ORIGIN_STAGING

Source
pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for testing.

\ 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

Module dns

Source
Expand description

This module exports a DNS resolver, which is also the default resolver used in the +iroh::dns - Rust

Module dns

Source
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

Struct DnsResolver

Source
pub struct DnsResolver(/* private fields */);
Expand description

The DNS resolver used throughout iroh.

+DnsResolver in iroh::dns - Rust

Struct DnsResolver

Source
pub struct DnsResolver(/* private fields */);
Available on non-wasm_browser only.
Expand description

The DNS resolver used throughout iroh.

Implementations§

Source§

impl DnsResolver

Source

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 @@ PathSelection in iroh::endpoint - Rust

Enum PathSelection

Source
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.
    AcceptBi
    Future produced by [Connection::accept_bi]
    AcceptUni
    Future produced by [Connection::accept_uni]
    AckFrequencyConfig
    Parameters for controlling the peer’s acknowledgement frequency
    ApplicationClose
    Reason given by an application for closing the connection
    Builder
    Builder for Endpoint.
    Chunk
    A chunk of data from the receive stream
    ClosedStream
    Error indicating that a stream has not been opened or has already been finished or reset
    ConnectOptions
    Options for the Endpoint::connect_with_opts function.
    Connecting
    In-progress connection attempt future
    Connection
    A QUIC connection.
    ConnectionClose
    Reason given by the transport for closing the connection
    ConnectionStats
    Connection statistics
    CryptoError
    Generic crypto errors
    DirectAddr
    A direct address on which an iroh-node might be contactable.
    DirectAddrInfo
    Information about a direct address.
    Endpoint
    Controls an iroh node, establishing connections with other nodes.
    ExportKeyingMaterialError
    Error returned by [Session::export_keying_material].
    FrameStats
    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.
    IncomingFuture
    Adaptor to let Incoming be awaited like a Connecting.
    MtuDiscoveryConfig
    Parameters governing MTU discovery.
    OpenBi
    Future produced by [Connection::open_bi]
    OpenUni
    Future produced by [Connection::open_uni]
    PathStats
    Statistics related to a transmission path
    ReadDatagram
    Future produced by [Connection::read_datagram]
    RecvStream
    A stream that can only be used to receive data
    RemoteNodeIdError
    RetryError
    Error for attempting to retry an [Incoming] which already bears a token from a previous retry
    SendStream
    A stream that can only be used to send data
    ServerConfig
    Parameters governing incoming connections
    StreamId
    Identifier for a stream within a particular connection
    TransportConfig
    Parameters governing the core QUIC state machine
    TransportError
    Transport-level errors occur when a peer violates the protocol specification
    TransportErrorCode
    Transport-level error code
    UdpStats
    Statistics about UDP datagrams transmitted or received on a connection
    UnsupportedVersion
    Error indicating that the specified QUIC version is not supported
    VarInt
    An integer less than 2^62
    WeakConnectionHandle
    A handle to some connection internals, use with care.
    Written
    Indicates how many bytes and chunks had been transferred in a write operation
    ZeroRttAccepted
    Future that completes when a connection is fully established.

    Enums§

    AddNodeAddrError
    AlpnError
    BindError
    ConnectError
    ConnectWithOptsError
    ConnectionError
    Reasons why a connection might be lost
    ConnectionType
    The type of connection we have to the endpoint.
    ControlMsg
    The type of control message we have received.
    DirectAddrType
    The type of direct address.
    GetMappingAddressError
    PathSelection
    Defines the mode of path selection for all traffic flowing through +handshake.
    IncomingFuture
    Adaptor to let Incoming be awaited like a Connecting.
    MtuDiscoveryConfig
    Parameters governing MTU discovery.
    OpenBi
    Future produced by [Connection::open_bi]
    OpenUni
    Future produced by [Connection::open_uni]
    PathStats
    Statistics related to a transmission path
    ReadDatagram
    Future produced by [Connection::read_datagram]
    RecvStream
    A stream that can only be used to receive data
    RemoteNodeIdError
    RetryError
    Error for attempting to retry an [Incoming] which already bears a token from a previous retry
    SendStream
    A stream that can only be used to send data
    ServerConfig
    Parameters governing incoming connections
    StreamId
    Identifier for a stream within a particular connection
    TransportConfig
    Parameters governing the core QUIC state machine
    TransportError
    Transport-level errors occur when a peer violates the protocol specification
    TransportErrorCode
    Transport-level error code
    UdpStats
    Statistics about UDP datagrams transmitted or received on a connection
    UnsupportedVersion
    Error indicating that the specified QUIC version is not supported
    VarInt
    An integer less than 2^62
    WeakConnectionHandle
    A handle to some connection internals, use with care.
    Written
    Indicates how many bytes and chunks had been transferred in a write operation
    ZeroRttAccepted
    Future that completes when a connection is fully established.

    Enums§

    AddNodeAddrError
    AlpnError
    BindError
    ConnectError
    ConnectWithOptsError
    ConnectionError
    Reasons why a connection might be lost
    ConnectionType
    The type of connection we have to the endpoint.
    ControlMsg
    The type of control message we have received.
    DirectAddrType
    The type of direct address.
    GetMappingAddressError
    PathSelectiontest-utils
    Defines the mode of path selection for all traffic flowing through the endpoint.
    ReadError
    Errors that arise from reading from a stream.
    ReadExactError
    Errors that arise from reading from a stream.
    ReadToEndError
    Errors from RecvStream::read_to_end
    RelayMode
    Configuration of the relay servers for an Endpoint.
    ResetError
    Errors that arise while waiting for a stream to be reset
    SendDatagramError
    Errors that can arise when sending a datagram
    Source
    The origin or source through which an address associated with a remote node was discovered.
    StoppedError
    Errors that arise while monitoring for a send stream stop from the peer
    WriteError
    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
    ControllerFactory
    Constructs controllers on demand
    CryptoServerConfig
    Server-side configuration for the crypto protocol
    HandshakeTokenKey
    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>,
    Returns the result of self or other future, preferring self if both are ready. Read more
    §

    fn race<F>(self, other: F) -> Race<Self, F>
    where Self: Sized, - F: Future<Output = Self::Output>,

    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the future and changes its type to dyn Future + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
    where - Self: Sized + 'a,

    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where + F: Future<Output = Self::Output>,

    Available on crate features std and race only.
    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the future and changes its type to dyn Future + Send + 'a. 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.
    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

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

    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
    §

    fn shared(self) -> Shared<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>
    where Self: Sized, - Self::Output: Clone,

    Create a cloneable handle to this future where all handles will resolve + Self::Output: Clone,
    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>>
    where - Self: Sized + 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>
    where + Self: Sized + Send + 'a,

    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,

    §

    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>,
    Returns the result of self or other future, preferring self if both are ready. Read more
    §

    fn race<F>(self, other: F) -> Race<Self, F>
    where Self: Sized, - F: Future<Output = Self::Output>,

    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the future and changes its type to dyn Future + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
    where - Self: Sized + 'a,

    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where + F: Future<Output = Self::Output>,

    Available on crate features std and race only.
    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the future and changes its type to dyn Future + Send + 'a. 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.
    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

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

    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
    §

    fn shared(self) -> Shared<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>
    where Self: Sized, - Self::Output: Clone,

    Create a cloneable handle to this future where all handles will resolve + Self::Output: Clone,
    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>>
    where - Self: Sized + 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>
    where + Self: Sized + Send + 'a,

    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,

    §

    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,
    §

    type Ok = T

    §

    type Err = E

    §

    impl<Fut> TryFutureExt for Fut
    where 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>
    where F: FnOnce(Self::Ok) -> T, Self: Sized,

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

    Returns the result of self or other future, preferring self if both are ready. Read more
    §

    fn race<F>(self, other: F) -> Race<Self, F>
    where Self: Sized, - F: Future<Output = Self::Output>,

    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the future and changes its type to dyn Future + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
    where - Self: Sized + 'a,

    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where + F: Future<Output = Self::Output>,

    Available on crate features std and race only.
    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the future and changes its type to dyn Future + Send + 'a. 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.
    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

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

    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
    §

    fn shared(self) -> Shared<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>
    where Self: Sized, - Self::Output: Clone,

    Create a cloneable handle to this future where all handles will resolve + Self::Output: Clone,
    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>>
    where - Self: Sized + 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>
    where + Self: Sized + Send + 'a,

    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,

    §

    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,
    §

    type Ok = T

    §

    type Err = E

    §

    impl<Fut> TryFutureExt for Fut
    where 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>
    where F: FnOnce(Self::Ok) -> T, Self: Sized,

    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.

    -

    Source

    pub fn discovery_dht(self) -> Self

    Configures the endpoint to also use the mainline DHT with default settings.

    +
    Source

    pub 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.

    -
    Source

    pub fn discovery_local_network(self) -> Self

    Configures the endpoint to also use local network discovery.

    +
    Source

    pub 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.

    -
    Source

    pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self

    Optionally sets a custom DNS resolver to use for this endpoint.

    +
    Source

    pub 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.

    -
    Source

    pub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self

    Skip verification of SSL certificates from relay servers

    +
    Source

    pub 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.

    -
    Source

    pub fn path_selection(self, path_selection: PathSelection) -> Self

    This implies we only use the relay to communicate +

    Source

    pub 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.

    Source

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

    Returns the result of self or other future, preferring self if both are ready. Read more
    §

    fn race<F>(self, other: F) -> Race<Self, F>
    where Self: Sized, - F: Future<Output = Self::Output>,

    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the future and changes its type to dyn Future + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
    where - Self: Sized + 'a,

    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where + F: Future<Output = Self::Output>,

    Available on crate features std and race only.
    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the future and changes its type to dyn Future + Send + 'a. 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.
    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

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

    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
    §

    fn shared(self) -> Shared<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>
    where Self: Sized, - Self::Output: Clone,

    Create a cloneable handle to this future where all handles will resolve + Self::Output: Clone,
    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>>
    where - Self: Sized + 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>
    where + Self: Sized + Send + 'a,

    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,

    §

    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,
    §

    type Ok = T

    §

    type Err = E

    §

    impl<Fut> TryFutureExt for Fut
    where 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>
    where F: FnOnce(Self::Ok) -> T, Self: Sized,

    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.

    -

    Source

    pub fn watch_node_addr(&self) -> impl Watcher<Value = NodeAddr> + use<>

    Returns a Watcher for the current NodeAddr for this endpoint.

    +
    Source

    pub 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.

    Source

    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.

    -
    Source

    pub fn dns_resolver(&self) -> &DnsResolver

    Returns the DNS resolver used in this Endpoint.

    +
    Source

    pub fn dns_resolver(&self) -> &DnsResolver

    Available on non-wasm_browser only.

    Returns the DNS resolver used in this Endpoint.

    See Builder::dns_resolver.

    Source

    pub fn discovery(&self) -> &ConcurrentDiscovery

    Returns the discovery mechanism, if configured.

    See Builder::discovery.

    -
    Source

    pub fn metrics(&self) -> &EndpointMetrics

    Returns metrics collected for this endpoint.

    +
    Source

    pub 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>,
    Returns the result of self or other future, preferring self if both are ready. Read more
    §

    fn race<F>(self, other: F) -> Race<Self, F>
    where Self: Sized, - F: Future<Output = Self::Output>,

    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the future and changes its type to dyn Future + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
    where - Self: Sized + 'a,

    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where + F: Future<Output = Self::Output>,

    Available on crate features std and race only.
    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the future and changes its type to dyn Future + Send + 'a. 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.
    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

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

    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
    §

    fn shared(self) -> Shared<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>
    where Self: Sized, - Self::Output: Clone,

    Create a cloneable handle to this future where all handles will resolve + Self::Output: Clone,
    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>>
    where - Self: Sized + 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>
    where + Self: Sized + Send + 'a,

    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,

    §

    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,
    §

    type Ok = T

    §

    type Err = E

    §

    impl<Fut> TryFutureExt for Fut
    where 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>
    where F: FnOnce(Self::Ok) -> T, Self: Sized,

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

    Returns the result of self or other future, preferring self if both are ready. Read more
    §

    fn race<F>(self, other: F) -> Race<Self, F>
    where Self: Sized, - F: Future<Output = Self::Output>,

    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the future and changes its type to dyn Future + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
    where - Self: Sized + 'a,

    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where + F: Future<Output = Self::Output>,

    Available on crate features std and race only.
    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the future and changes its type to dyn Future + Send + 'a. 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.
    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

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

    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
    §

    fn shared(self) -> Shared<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>
    where Self: Sized, - Self::Output: Clone,

    Create a cloneable handle to this future where all handles will resolve + Self::Output: Clone,
    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>>
    where - Self: Sized + 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>
    where + Self: Sized + Send + 'a,

    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,

    §

    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,
    §

    type Ok = T

    §

    type Err = E

    §

    impl<Fut> TryFutureExt for Fut
    where 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>
    where F: FnOnce(Self::Ok) -> T, Self: Sized,

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

    Returns the result of self or other future, preferring self if both are ready. Read more
    §

    fn race<F>(self, other: F) -> Race<Self, F>
    where Self: Sized, - F: Future<Output = Self::Output>,

    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the future and changes its type to dyn Future + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
    where - Self: Sized + 'a,

    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where + F: Future<Output = Self::Output>,

    Available on crate features std and race only.
    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the future and changes its type to dyn Future + Send + 'a. 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.
    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

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

    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
    §

    fn shared(self) -> Shared<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>
    where Self: Sized, - Self::Output: Clone,

    Create a cloneable handle to this future where all handles will resolve + Self::Output: Clone,
    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>>
    where - Self: Sized + 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>
    where + Self: Sized + Send + 'a,

    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,

    §

    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,
    §

    type Ok = T

    §

    type Err = E

    §

    impl<Fut> TryFutureExt for Fut
    where 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>
    where F: FnOnce(Self::Ok) -> T, Self: Sized,

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

    Returns the result of self or other future, preferring self if both are ready. Read more
    §

    fn race<F>(self, other: F) -> Race<Self, F>
    where Self: Sized, - F: Future<Output = Self::Output>,

    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the future and changes its type to dyn Future + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
    where - Self: Sized + 'a,

    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where + F: Future<Output = Self::Output>,

    Available on crate features std and race only.
    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the future and changes its type to dyn Future + Send + 'a. 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.
    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

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

    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
    §

    fn shared(self) -> Shared<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>
    where Self: Sized, - Self::Output: Clone,

    Create a cloneable handle to this future where all handles will resolve + Self::Output: Clone,
    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>>
    where - Self: Sized + 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>
    where + Self: Sized + Send + 'a,

    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,

    §

    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,
    §

    type Ok = T

    §

    type Err = E

    §

    impl<Fut> TryFutureExt for Fut
    where 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>
    where F: FnOnce(Self::Ok) -> T, Self: Sized,

    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 more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for ServerConfig

    §

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

    Formats the value using the given formatter. Read more

    Auto 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§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where 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>,

    Returns the result of self or other future, preferring self if both are ready. Read more
    §

    fn race<F>(self, other: F) -> Race<Self, F>
    where Self: Sized, - F: Future<Output = Self::Output>,

    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the future and changes its type to dyn Future + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
    where - Self: Sized + 'a,

    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where + F: Future<Output = Self::Output>,

    Available on crate features std and race only.
    Returns the result of self or other future, with no preference if both are ready. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches panics while polling the future. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the future and changes its type to dyn Future + Send + 'a. 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.
    Boxes the future and changes its type to dyn Future + 'a. Read more
    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

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

    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
    §

    fn shared(self) -> Shared<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>
    where Self: Sized, - Self::Output: Clone,

    Create a cloneable handle to this future where all handles will resolve + Self::Output: Clone,
    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>>
    where - Self: Sized + 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>
    where + Self: Sized + Send + 'a,

    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,

    §

    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§

    pub use endpoint::Endpoint;
    pub use endpoint::RelayMode;

    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§

    NodeAddr
    Network-level addressing information for an iroh node.
    PublicKey
    A public key.
    RelayMap
    Configuration of all the relay servers that can be used.
    RelayNode
    Information on a specific relay server.
    RelayUrl
    A URL identifying a relay server.
    RelayUrlParseError
    Can occur when parsing a string into a RelayUrl.
    SecretKey
    A secret key.

    Enums§

    KeyParsingError
    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§

    pub use endpoint::Endpoint;
    pub use endpoint::RelayMode;

    Modules§

    defaults
    Default values used in iroh
    discovery
    Node address discovery.
    dnsNon-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_utilstest-utils
    Internal utilities to support testing.

    Structs§

    NodeAddr
    Network-level addressing information for an iroh node.
    PublicKey
    A public key.
    RelayMap
    Configuration of all the relay servers that can be used.
    RelayNode
    Information on a specific relay server.
    RelayUrl
    A URL identifying a relay server.
    RelayUrlParseError
    Can occur when parsing a string into a RelayUrl.
    SecretKey
    A secret key.

    Enums§

    KeyParsingError
    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

    Module metrics

    Source
    Expand description

    Co-locating all of the iroh metrics structs

    -

    Re-exports§

    pub use crate::net_report::Metrics as NetReportMetrics;

    Structs§

    EndpointMetrics
    Metrics collected by an crate::endpoint::Endpoint.
    MagicsockMetrics
    Enum of metrics for the module
    PortmapMetrics
    Enum of metrics for the module
    RelayMetrics
    Metrics tracked for the relay server
    \ No newline at end of file +

    Re-exports§

    pub use crate::net_report::Metrics as NetReportMetrics;

    Structs§

    EndpointMetrics
    Metrics collected by an crate::endpoint::Endpoint.
    MagicsockMetrics
    Enum of metrics for the module
    PortmapMetricsNon-wasm_browser
    Enum of metrics for the module
    RelayMetricstest-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 more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for EndpointMetrics

    Source§

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

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

    impl Default for EndpointMetrics

    Source§

    fn default() -> EndpointMetrics

    Returns the “default value” for a type. Read more
    Source§

    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 more
    Source§

    impl MetricsGroupSet for EndpointMetrics

    Source§

    fn name(&self) -> &'static str

    Returns the name of this metrics group set.
    Source§

    fn groups_cloned(&self) -> impl Iterator<Item = Arc<dyn MetricsGroup>>

    Returns an iterator over owned clones of the [MetricsGroup] in this struct.
    Source§

    fn groups(&self) -> impl Iterator<Item = &dyn MetricsGroup>

    Returns an iterator over references to the [MetricsGroup] in this struct.
    §

    fn iter(&self) -> impl Iterator<Item = (&'static str, MetricItem<'_>)>

    Returns an iterator over all metrics in this metrics group set. Read more
    Source§

    impl Serialize for EndpointMetrics

    Source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    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 T
    where 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: Counter

    Number of probing tasks started.

    §local_port_updates: Counter

    Number of updates to the local port.

    §mapping_attempts: Counter

    Number 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: Counter

    Bytes sent from a FrameType::SendPacket

    §bytes_recv: Counter

    Bytes received from a FrameType::SendPacket

    §send_packets_sent: Counter

    FrameType::SendPacket sent, that are not disco messages

    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 Clone for Probe

    Source§

    fn clone(&self) -> Probe

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Probe

    Source§

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

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

    impl Display for Probe

    Source§

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

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

    impl Ord for Probe

    Source§

    fn cmp(&self, other: &Probe) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where 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
    QuicConfig
    Pieces needed to do QUIC address discovery.
    RelayLatencies
    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
    OptionsNon-wasm_browser
    Options for running probes
    QuicConfig
    Pieces needed to do QUIC address discovery.
    RelayLatencies
    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

    Struct Options

    Source
    pub struct Options { /* private fields */ }
    Expand description

    Options for running probes

    +Options in iroh::net_report - Rust

    Struct Options

    Source
    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

    Source

    pub fn disabled() -> Self

    Create an Options that disables all probes

    Source

    pub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self

    Enable quic probes

    Source

    pub fn https(self, enable: bool) -> Self

    Enable or disable https probe

    -
    Source

    pub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self

    Skip cert verification

    +
    Source

    pub fn insecure_skip_relay_cert_verify(self, skip: bool) -> Self

    Available on crate feature test-utils only.

    Skip cert verification

    Source

    pub fn as_protocols(&self) -> BTreeSet<Probe>

    Turn the options into set of valid protocols

    Trait Implementations§

    Source§

    impl Clone for Options

    Source§

    fn clone(&self) -> Options

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Options

    Source§

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

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

    impl Default for Options

    Source§

    fn default() -> Self

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where 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

    Struct RelayLatencies

    Source
    pub struct RelayLatencies { /* private fields */ }
    Expand description

    Latencies per relay node.

    -

    Implementations§

    Source§

    impl RelayLatencies

    Source

    pub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_

    Returns an iterator over all the relays and their latencies.

    +

    Implementations§

    Source§

    impl RelayLatencies

    Source

    pub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_

    Available on non-wasm_browser only.

    Returns an iterator over all the relays and their latencies.

    Trait Implementations§

    Source§

    impl Clone for RelayLatencies

    Source§

    fn clone(&self) -> RelayLatencies

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for RelayLatencies

    Source§

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

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

    impl Default for RelayLatencies

    Source§

    fn default() -> RelayLatencies

    Returns the “default value” for a type. Read more
    Source§

    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 more
    Source§

    impl PartialEq for RelayLatencies

    Source§

    fn eq(&self, other: &RelayLatencies) -> 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, and should not be overridden without very good reason.
    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 @@

    Source

    pub 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.

    Source

    pub 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§

    Source

    fn to_z32(&self) -> String

    Encodes a NodeId in z-base-32 encoding.

    -
    Source

    fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

    Parses a NodeId from z-base-32 encoding.

    +

    Required Methods§

    Source

    fn to_z32(&self) -> String

    Encodes a NodeId in [z-base-32] encoding.

    +
    Source

    fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

    Parses a NodeId from [z-base-32] encoding.

    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 Clone for NodeAddr

    Source§

    fn clone(&self) -> NodeAddr

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NodeAddr

    Source§

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

    Formats the value using the given formatter. Read more
    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 more
    Source§

    impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    Source§

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

    Converts to this type from the input type.
    Source§

    impl From<NodeAddr> for NodeData

    Source§

    fn from(node_addr: NodeAddr) -> NodeData

    Converts to this type from the input type.
    Source§

    impl From<NodeAddr> for NodeInfo

    Source§

    fn from(addr: NodeAddr) -> NodeInfo

    Converts to this type from the input type.
    Source§

    impl From<NodeInfo> for NodeAddr

    Source§

    fn from(value: NodeInfo) -> NodeAddr

    Converts to this type from the input type.
    Source§

    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 more
    Source§

    impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    Source§

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

    Converts to this type from the input type.
    Source§

    impl From<NodeAddr> for NodeData

    Source§

    fn from(node_addr: NodeAddr) -> NodeData

    Converts to this type from the input type.
    Source§

    impl From<NodeAddr> for NodeInfo

    Source§

    fn from(addr: NodeAddr) -> NodeInfo

    Converts to this type from the input type.
    Source§

    impl From<NodeInfo> for NodeAddr

    Source§

    fn from(value: NodeInfo) -> NodeAddr

    Converts to this type from the input type.
    Source§

    impl From<NodeTicket> for NodeAddr

    Source§

    fn from(ticket: NodeTicket) -> NodeAddr

    Returns the addressing info from given ticket.

    Source§

    impl From<PublicKey> for NodeAddr

    Source§

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    Source§

    impl Hash for NodeAddr

    Source§

    fn hash<__H>(&self, state: &mut __H)
    where __H: Hasher,

    Feeds this value into the given Hasher. Read more
    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§

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more

    Source§

    impl Hash for PublicKey

    Source§

    fn hash<H>(&self, state: &mut H)
    where H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl NodeIdExt for PublicKey

    Source§

    fn to_z32(&self) -> String

    Encodes a NodeId in z-base-32 encoding.
    Source§

    fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

    Parses a NodeId from z-base-32 encoding.
    Source§

    impl Ord for PublicKey

    Source§

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl NodeIdExt for PublicKey

    Source§

    fn to_z32(&self) -> String

    Encodes a NodeId in [z-base-32] encoding.
    Source§

    fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

    Parses a NodeId from [z-base-32] encoding.
    Source§

    impl Ord for PublicKey

    Source§

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized,

    Restrict a value to a certain interval. Read more
    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().

    Source

    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.

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

    -
    Source

    pub fn to_file_path(&self) -> Result<PathBuf, ()>

    Assuming the URL is in the file scheme or similar, +

    Source

    pub 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

    Function run_relay_server

    Source
    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

    Function run_relay_server

    Source
    pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
    Available on crate feature test-utils only.
    Expand description

    Runs a relay server with QUIC enabled suitable for tests.

    The returned Url is the url of the relay server in the returned RelayMap. When dropped, the returned Server does will stop running.

    \ 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

    Function run_relay_server_with

    Source
    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

    Module test_utils

    Source
    Expand description

    Internal utilities to support testing.

    +iroh::test_utils - Rust

    Module test_utils

    Source
    Available on crate feature test-utils only.
    Expand description

    Internal utilities to support testing.

    Structs§

    CleanupDropGuard
    A drop guard to clean up test infrastructure.
    DnsPkarrServer
    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

    Struct CleanupDropGuard

    Source
    pub struct CleanupDropGuard(/* private fields */);
    Expand description

    A drop guard to clean up test infrastructure.

    +CleanupDropGuard in iroh::test_utils - Rust

    Struct CleanupDropGuard

    Source
    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§

    Source§

    impl Debug for CleanupDropGuard

    Source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where 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: String

    The node origin domain.

    §nameserver: SocketAddr

    The 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.
    Expand description

    Error when deserialising a PublicKey or a SecretKey.

    Variants§

    §

    Decode

    Error when decoding.

    Fields

    §source: DecodeError
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    Key

    Error when decoding the public key.

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    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

    Crate iroh_base

    Source
    Expand description

    Base types and utilities for Iroh

    -

    Modules§

    ticket
    Tickets is a serializable object combining information required for an operation. +

    Modules§

    ticketticket
    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§

    NodeAddr
    Network-level addressing information for an iroh node.
    PublicKey
    A public key.
    RelayUrl
    A URL identifying a relay server.
    RelayUrlParseError
    Can occur when parsing a string into a RelayUrl.
    SecretKey
    A secret key.
    Signature
    Ed25519 signature.

    Enums§

    KeyParsingError
    Error when deserialising a PublicKey or a SecretKey.

    Type Aliases§

    NodeId
    The identifier for a node in the (iroh) network.
    SignatureError
    Errors which may occur while processing signatures and keypairs.

    \ No newline at end of file +provider.

    Structs§

    NodeAddrkey
    Network-level addressing information for an iroh node.
    PublicKeykey
    A public key.
    RelayUrlrelay
    A URL identifying a relay server.
    RelayUrlParseErrorrelay
    Can occur when parsing a string into a RelayUrl.
    SecretKeykey
    A secret key.
    Signaturekey
    Ed25519 signature.

    Enums§

    KeyParsingErrorkey
    Error when deserialising a PublicKey or a SecretKey.

    Type Aliases§

    NodeIdkey
    The identifier for a node in the (iroh) network.
    SignatureErrorkey
    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.

    Source

    pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of this peer.

    Source

    pub fn relay_url(&self) -> Option<&RelayUrl>

    Returns the relay url of this peer.

    Trait Implementations§

    Source§

    impl Clone for NodeAddr

    Source§

    fn clone(&self) -> NodeAddr

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NodeAddr

    Source§

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

    Formats the value using the given formatter. Read more
    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 more
    Source§

    impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    Source§

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NodeAddr> for NodeTicket

    Source§

    fn from(addr: NodeAddr) -> Self

    Creates a ticket from given addressing info.

    -
    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 more
    Source§

    impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    Source§

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NodeAddr> for NodeTicket

    Available on crate feature ticket only.
    Source§

    fn from(addr: NodeAddr) -> Self

    Creates a ticket from given addressing info.

    +
    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 From<PublicKey> for NodeAddr

    Source§

    fn from(node_id: NodeId) -> Self

    Converts to this type from the input type.
    Source§

    impl Hash for NodeAddr

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for NodeAddr

    Source§

    fn cmp(&self, other: &NodeAddr) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where 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

    Struct PublicKey

    Source
    pub struct PublicKey(/* private fields */);
    Expand description

    A public key.

    +PublicKey in iroh_base - Rust

    Struct PublicKey

    Source
    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

    Source

    pub 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

    Struct RelayUrl

    Source
    pub struct RelayUrl(/* private fields */);
    Expand description

    A URL identifying a relay server.

    +RelayUrl in iroh_base - Rust

    Struct RelayUrl

    Source
    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().

    Source

    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.

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

    -
    Source

    pub fn to_file_path(&self) -> Result<PathBuf, ()>

    Assuming the URL is in the file scheme or similar, +

    Source

    pub 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

    Struct RelayUrlParseError

    Source
    pub struct RelayUrlParseError { /* private fields */ }
    Expand description

    Can occur when parsing a string into a RelayUrl.

    +RelayUrlParseError in iroh_base - Rust

    Struct RelayUrlParseError

    Source
    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§

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

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

    impl Display for RelayUrlParseError

    Source§

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

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

    impl Error for RelayUrlParseError
    where Self: Debug + Display,

    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 downcasting
    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl ErrorCompat for RelayUrlParseError

    Source§

    fn backtrace(&self) -> Option<&Backtrace>

    Returns a [Backtrace][] that may be printed.
    §

    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

    Struct SecretKey

    Source
    pub struct SecretKey { /* private fields */ }
    Expand description

    A secret key.

    +SecretKey in iroh_base - Rust

    Struct SecretKey

    Source
    pub struct SecretKey { /* private fields */ }
    Available on crate feature key only.
    Expand description

    A secret key.

    Implementations§

    Source§

    impl SecretKey

    Source

    pub fn public(&self) -> PublicKey

    The public key of this SecretKey.

    Source

    pub 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.

    pub fn r_bytes(&self) -> &[u8; 32]

    Bytes for the R component of a signature.

    pub fn s_bytes(&self) -> &[u8; 32]

    Bytes for the s component of a signature.

    pub fn to_bytes(&self) -> [u8; 64]

    Return the inner byte array.

    -

    pub fn to_vec(&self) -> Vec<u8> ⓘ

    Convert this signature into a byte vector.

    -

    Trait Implementations§

    §

    impl AssociatedAlgorithmIdentifier for Signature

    §

    const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID

    AlgorithmIdentifier for this structure.
    §

    type Params = AnyRef<'static>

    Algorithm parameters.
    §

    impl Clone for Signature

    §

    fn clone(&self) -> Signature

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Signature

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for Signature

    §

    fn deserialize<D>( +

    pub fn to_vec(&self) -> Vec<u8> ⓘ

    Available on crate feature alloc only.

    Convert this signature into a byte vector.

    +

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

    type Params = AnyRef<'static>

    Algorithm parameters.
    §

    impl Clone for Signature

    §

    fn clone(&self) -> Signature

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Signature

    §

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

    Formats the value using the given formatter. Read more
    §

    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 more
    §

    impl Display for Signature

    §

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

    Formats the value using the given formatter. Read more
    §

    impl From<&[u8; 64]> for Signature

    §

    fn from(bytes: &[u8; 64]) -> Signature

    Converts to this type from the input type.
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    §

    impl From<[u8; 64]> for Signature

    §

    fn from(bytes: [u8; 64]) -> Signature

    Converts to this type from the input type.
    §

    impl From<InternalSignature> for Signature

    §

    fn from(sig: InternalSignature) -> Signature

    Converts to this type from the input type.
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    §

    impl FromStr for Signature

    Decode a signature from hexadecimal.

    @@ -28,7 +28,7 @@ and should not be overridden without very good reason.
    Result<<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 SignatureEncoding for Signature

    §

    type Repr = [u8; 64]

    Byte representation of a signature.
    §

    fn to_bytes(&self) -> [u8; 64]

    Encode signature as its byte representation.
    §

    fn to_vec(&self) -> Vec<u8> ⓘ

    Encode signature as a byte vector.
    §

    fn encoded_len(&self) -> usize

    Get the length of this signature when encoded.
    §

    impl TryFrom<&[u8]> for Signature

    §

    type Error = Error

    The type returned in the event of a conversion error.
    §

    fn try_from(bytes: &[u8]) -> Result<Signature, Error>

    Performs the conversion.
    §

    impl UpperHex for Signature

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Copy for Signature

    §

    impl Eq for Signature

    §

    impl StructuralPartialEq for Signature

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where + 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

    §

    type Repr = [u8; 64]

    Byte representation of a signature.
    §

    fn to_bytes(&self) -> [u8; 64]

    Encode signature as its byte representation.
    §

    fn to_vec(&self) -> Vec<u8> ⓘ

    Available on crate feature alloc only.
    Encode signature as a byte vector.
    §

    fn encoded_len(&self) -> usize

    Get the length of this signature when encoded.
    §

    impl TryFrom<&[u8]> for Signature

    §

    type Error = Error

    The type returned in the event of a conversion error.
    §

    fn try_from(bytes: &[u8]) -> Result<Signature, Error>

    Performs the conversion.
    §

    impl UpperHex for Signature

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Copy for Signature

    §

    impl Eq for Signature

    §

    impl StructuralPartialEq for Signature

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where 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

    §expected: &'static str

    The expected prefix.

    §backtrace: Option<Backtrace>
    §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

    Module ticket

    Source
    Expand description

    Tickets is a serializable object combining information required for an operation. +iroh_base::ticket - Rust

    Module ticket

    Source
    Available on crate feature ticket only.
    Expand description

    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.

    diff --git a/pr/3514/docs/iroh_base/ticket/struct.NodeTicket.html b/pr/3514/docs/iroh_base/ticket/struct.NodeTicket.html index 8f82655791..c0b07729bc 100644 --- a/pr/3514/docs/iroh_base/ticket/struct.NodeTicket.html +++ b/pr/3514/docs/iroh_base/ticket/struct.NodeTicket.html @@ -1,8 +1,8 @@ -NodeTicket in iroh_base::ticket - Rust

    Struct NodeTicket

    Source
    pub struct NodeTicket { /* private fields */ }
    Expand description

    A token containing information for establishing a connection to a node.

    +NodeTicket in iroh_base::ticket - Rust

    Struct NodeTicket

    Source
    pub struct NodeTicket { /* private fields */ }
    Available on crate feature ticket only.
    Expand description

    A token containing information for establishing a connection to a node.

    Contains

    • The NodeId of the node to connect to (a 32-byte ed25519 public key).
    • -
    • If used, the ’RelayUrl` of on which the node can be reached.
    • +
    • If used, the [’RelayUrl`] of on which the node can be reached.
    • Any direct addresses on which the node might be reachable.

    This allows establishing a connection to the node in most circumstances where it is @@ -10,12 +10,12 @@ possible to do so.

    This NodeTicket is a single item which can be easily serialized and deserialized and implements the Ticket trait. The Display and FromStr traits can also be used to round-trip the ticket to string.

    -

    Implementations§

    Source§

    impl NodeTicket

    Source

    pub fn new(node: NodeAddr) -> Self

    Creates a new ticket.

    -
    Source

    pub fn node_addr(&self) -> &NodeAddr

    The NodeAddr of the provider for this ticket.

    -

    Trait Implementations§

    Source§

    impl Clone for NodeTicket

    Source§

    fn clone(&self) -> NodeTicket

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NodeTicket

    Source§

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

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

    impl<'de> Deserialize<'de> for NodeTicket

    Source§

    fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

    Deserialize this value from the given Serde deserializer. Read more
    Source§

    impl Display for NodeTicket

    Source§

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

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

    impl From<NodeAddr> for NodeTicket

    Source§

    fn from(addr: NodeAddr) -> Self

    Creates a ticket from given addressing info.

    -
    Source§

    impl From<NodeTicket> for NodeAddr

    Source§

    fn from(ticket: NodeTicket) -> Self

    Returns the addressing info from given ticket.

    -
    Source§

    impl FromStr for NodeTicket

    Source§

    type Err = ParseError

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    Source§

    impl PartialEq for NodeTicket

    Source§

    fn eq(&self, other: &NodeTicket) -> 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, -and should not be overridden without very good reason.
    Source§

    impl Serialize for NodeTicket

    Source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more
    Source§

    impl Ticket for NodeTicket

    Source§

    const KIND: &'static str = "node"

    String prefix describing the kind of iroh ticket. Read more
    Source§

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    Source§

    fn from_bytes(bytes: &[u8]) -> Result<Self, ParseError>

    Deserialize from the base32 string representation bytes.
    Source§

    fn serialize(&self) -> String

    Serialize to string.
    Source§

    fn deserialize(str: &str) -> Result<Self, ParseError>

    Deserialize from a string.
    Source§

    impl Eq for NodeTicket

    Source§

    impl StructuralPartialEq for NodeTicket

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Implementations§

    Source§

    impl NodeTicket

    Source

    pub fn new(node: NodeAddr) -> Self

    Creates a new ticket.

    +
    Source

    pub fn node_addr(&self) -> &NodeAddr

    The NodeAddr of the provider for this ticket.

    +

    Trait Implementations§

    Source§

    impl Clone for NodeTicket

    Source§

    fn clone(&self) -> NodeTicket

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for NodeTicket

    Source§

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

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

    impl<'de> Deserialize<'de> for NodeTicket

    Source§

    fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

    Deserialize this value from the given Serde deserializer. Read more
    Source§

    impl Display for NodeTicket

    Source§

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

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

    impl From<NodeAddr> for NodeTicket

    Source§

    fn from(addr: NodeAddr) -> Self

    Creates a ticket from given addressing info.

    +
    Source§

    impl From<NodeTicket> for NodeAddr

    Source§

    fn from(ticket: NodeTicket) -> Self

    Returns the addressing info from given ticket.

    +
    Source§

    impl FromStr for NodeTicket

    Source§

    type Err = ParseError

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    Source§

    impl PartialEq for NodeTicket

    Source§

    fn eq(&self, other: &NodeTicket) -> 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, +and should not be overridden without very good reason.
    Source§

    impl Serialize for NodeTicket

    Source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more
    Source§

    impl Ticket for NodeTicket

    Source§

    const KIND: &'static str = "node"

    String prefix describing the kind of iroh ticket. Read more
    Source§

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    Source§

    fn from_bytes(bytes: &[u8]) -> Result<Self, ParseError>

    Deserialize from the base32 string representation bytes.
    Source§

    fn serialize(&self) -> String

    Serialize to string.
    Source§

    fn deserialize(str: &str) -> Result<Self, ParseError>

    Deserialize from a string.
    Source§

    impl Eq for NodeTicket

    Source§

    impl StructuralPartialEq for NodeTicket

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/pr/3514/docs/iroh_base/ticket/trait.Ticket.html b/pr/3514/docs/iroh_base/ticket/trait.Ticket.html index f89f56ebdd..a7c6520ebc 100644 --- a/pr/3514/docs/iroh_base/ticket/trait.Ticket.html +++ b/pr/3514/docs/iroh_base/ticket/trait.Ticket.html @@ -8,7 +8,7 @@ // Provided methods fn serialize(&self) -> String { ... } fn deserialize(str: &str) -> Result<Self, ParseError> { ... } -}
    Expand description

    A ticket is a serializable object combining information required for an operation.

    +}
    Available on crate feature ticket only.
    Expand description

    A ticket is a serializable object combining information required for an operation.

    Tickets support serialization to a string using base32 encoding. The kind of ticket will be prepended to the string to make it somewhat self describing.

    Versioning is left to the implementer. Some kinds of tickets might need @@ -21,4 +21,4 @@ to the implementer. We recommend using

    Source

    fn from_bytes(bytes: &[u8]) -> Result<Self, ParseError>

    Deserialize from the base32 string representation bytes.

    Provided Methods§

    Source

    fn serialize(&self) -> String

    Serialize to string.

    Source

    fn deserialize(str: &str) -> Result<Self, ParseError>

    Deserialize from a string.

    -

    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 Ticket for NodeTicket

    Source§

    const KIND: &'static str = "node"

    \ No newline at end of file +

    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 Ticket for NodeTicket

    Source§

    const KIND: &'static str = "node"

    \ No newline at end of file diff --git a/pr/3514/docs/iroh_base/type.NodeId.html b/pr/3514/docs/iroh_base/type.NodeId.html index f6cd86ad02..4ef98c44eb 100644 --- a/pr/3514/docs/iroh_base/type.NodeId.html +++ b/pr/3514/docs/iroh_base/type.NodeId.html @@ -1,4 +1,4 @@ -NodeId in iroh_base - Rust

    Type Alias NodeId

    Source
    pub type NodeId = PublicKey;
    Expand description

    The identifier for a node in the (iroh) network.

    +NodeId in iroh_base - Rust

    Type Alias NodeId

    Source
    pub type NodeId = PublicKey;
    Available on crate feature key only.
    Expand description

    The identifier for a node in the (iroh) network.

    Each node in iroh has a unique identifier created as a cryptographic key. This can be used to globally identify a node. Since it is also a cryptographic key it is also the mechanism by which all traffic is always encrypted for a specific node only.

    diff --git a/pr/3514/docs/iroh_base/type.SignatureError.html b/pr/3514/docs/iroh_base/type.SignatureError.html index 2101f5a540..1ea5d55b00 100644 --- a/pr/3514/docs/iroh_base/type.SignatureError.html +++ b/pr/3514/docs/iroh_base/type.SignatureError.html @@ -1,4 +1,4 @@ -SignatureError in iroh_base - Rust

    Type Alias SignatureError

    pub type SignatureError = Error;
    Expand description

    Errors which may occur while processing signatures and keypairs.

    +SignatureError in iroh_base - Rust

    Type Alias SignatureError

    pub type SignatureError = Error;
    Available on crate feature key only.
    Expand description

    Errors which may occur while processing signatures and keypairs.

    This error may arise due to:

    • diff --git a/pr/3514/docs/iroh_relay/client/enum.ConnectError.html b/pr/3514/docs/iroh_relay/client/enum.ConnectError.html index 73e4b1f99b..4ed1778a6e 100644 --- a/pr/3514/docs/iroh_relay/client/enum.ConnectError.html +++ b/pr/3514/docs/iroh_relay/client/enum.ConnectError.html @@ -50,7 +50,7 @@ }
      Expand description

      Connection errors.

      ConnectError contains DialError, errors that can occur while dialing the relay, as well as errors that occur while creating or maintaining a connection.

      -

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

      InvalidWebsocketUrl

      Fields

      §url: Url
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      InvalidRelayUrl

      Fields

      §url: Url
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Websocket

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Handshake

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Dial

      Fields

      §source: DialError
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      UnexpectedUpgradeStatus

      Fields

      §code: StatusCode
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Upgrade

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      InvalidTlsServername

      Fields

      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      NoLocalAddr

      Fields

      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Tls

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace

      Trait Implementations§

      Source§

      impl Debug for ConnectError

      Source§

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

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

      impl Display for ConnectError

      Source§

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

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

      impl Error for ConnectError
      where +

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

      InvalidWebsocketUrl

      Fields

      §url: Url
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      InvalidRelayUrl

      Fields

      §url: Url
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Websocket

      Fields

      §source: Error
      Available on non-wasm_browser only.
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Handshake

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Dial

      Fields

      §source: DialError
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      UnexpectedUpgradeStatus

      Fields

      §code: StatusCode
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Upgrade

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      InvalidTlsServername

      Fields

      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      NoLocalAddr

      Fields

      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Tls

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace

      Trait Implementations§

      Source§

      impl Debug for ConnectError

      Source§

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

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

      impl Display for ConnectError

      Source§

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

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

      impl Error for ConnectError
      where Self: Debug + Display,

      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 downcasting
      Source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      Returns the lower-level source of this error, if any. Read more
      Source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type-based access to context intended for error reports. Read more
      Source§

      impl ErrorCompat for ConnectError

      Source§

      fn backtrace(&self) -> Option<&Backtrace>

      Returns a [Backtrace][] that may be printed.
      §

      fn iter_chain(&self) -> ChainCompat<'_, '_>
      where Self: AsErrorSource,

      Returns an iterator for traversing the chain of errors, starting with the current error diff --git a/pr/3514/docs/iroh_relay/client/enum.DialError.html b/pr/3514/docs/iroh_relay/client/enum.DialError.html index 8ced796198..2ed148196a 100644 --- a/pr/3514/docs/iroh_relay/client/enum.DialError.html +++ b/pr/3514/docs/iroh_relay/client/enum.DialError.html @@ -48,7 +48,7 @@ span_trace: SpanTrace, }, }
      Expand description

      Errors that can occur while dialing the relay server.

      -

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

      InvalidTargetPort

      Fields

      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Dns

      Fields

      §source: DnsError
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Timeout

      Fields

      §source: Elapsed
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Io

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      InvalidUrl

      Fields

      §url: Url
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ProxyConnectInvalidStatus

      Fields

      §status: StatusCode
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ProxyInvalidUrl

      Fields

      §proxy_url: Url
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ProxyConnect

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ProxyInvalidTlsServername

      Fields

      §proxy_hostname: String
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ProxyInvalidTargetPort

      Fields

      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace

      Trait Implementations§

      Source§

      impl Debug for DialError

      Source§

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

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

      impl Display for DialError

      Source§

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

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

      impl Error for DialError
      where +

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

      InvalidTargetPort

      Fields

      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Dns

      Available on non-wasm_browser only.

      Fields

      §source: DnsError
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Timeout

      Fields

      §source: Elapsed
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      Io

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      InvalidUrl

      Fields

      §url: Url
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ProxyConnectInvalidStatus

      Fields

      §status: StatusCode
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ProxyInvalidUrl

      Fields

      §proxy_url: Url
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ProxyConnect

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ProxyInvalidTlsServername

      Fields

      §proxy_hostname: String
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ProxyInvalidTargetPort

      Fields

      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace

      Trait Implementations§

      Source§

      impl Debug for DialError

      Source§

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

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

      impl Display for DialError

      Source§

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

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

      impl Error for DialError
      where Self: Debug + Display,

      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 downcasting
      Source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      Returns the lower-level source of this error, if any. Read more
      Source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type-based access to context intended for error reports. Read more
      Source§

      impl ErrorCompat for DialError

      Source§

      fn backtrace(&self) -> Option<&Backtrace>

      Returns a [Backtrace][] that may be printed.
      §

      fn iter_chain(&self) -> ChainCompat<'_, '_>
      where Self: AsErrorSource,

      Returns an iterator for traversing the chain of errors, starting with the current error diff --git a/pr/3514/docs/iroh_relay/client/enum.RecvError.html b/pr/3514/docs/iroh_relay/client/enum.RecvError.html index a96a2125fb..229efd972a 100644 --- a/pr/3514/docs/iroh_relay/client/enum.RecvError.html +++ b/pr/3514/docs/iroh_relay/client/enum.RecvError.html @@ -10,7 +10,7 @@ span_trace: SpanTrace, }, }
      Expand description

      Errors when receiving messages from the relay server.

      -

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

      Protocol

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      StreamError

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace

      Trait Implementations§

      Source§

      impl Debug for RecvError

      Source§

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

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

      impl Display for RecvError

      Source§

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

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

      impl Error for RecvError
      where +

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

      Protocol

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      StreamError

      Fields

      §source: Error
      Available on non-wasm_browser only.
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace

      Trait Implementations§

      Source§

      impl Debug for RecvError

      Source§

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

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

      impl Display for RecvError

      Source§

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

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

      impl Error for RecvError
      where Self: Debug + Display,

      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 downcasting
      Source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      Returns the lower-level source of this error, if any. Read more
      Source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type-based access to context intended for error reports. Read more
      Source§

      impl ErrorCompat for RecvError

      Source§

      fn backtrace(&self) -> Option<&Backtrace>

      Returns a [Backtrace][] that may be printed.
      §

      fn iter_chain(&self) -> ChainCompat<'_, '_>
      where Self: AsErrorSource,

      Returns an iterator for traversing the chain of errors, starting with the current error diff --git a/pr/3514/docs/iroh_relay/client/enum.SendError.html b/pr/3514/docs/iroh_relay/client/enum.SendError.html index 4729482d4d..243a59f4d1 100644 --- a/pr/3514/docs/iroh_relay/client/enum.SendError.html +++ b/pr/3514/docs/iroh_relay/client/enum.SendError.html @@ -14,7 +14,7 @@ span_trace: SpanTrace, }, }
      Expand description

      Error for sending messages to the relay server.

      -

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

      StreamError

      Fields

      §source: Error
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ExceedsMaxPacketSize

      Fields

      §size: usize
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      EmptyPacket

      Fields

      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace

      Trait Implementations§

      Source§

      impl Debug for SendError

      Source§

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

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

      impl Display for SendError

      Source§

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

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

      impl Error for SendError
      where +

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

      StreamError

      Fields

      §source: Error
      Available on non-wasm_browser only.
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      ExceedsMaxPacketSize

      Fields

      §size: usize
      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace
      §

      EmptyPacket

      Fields

      §backtrace: Option<Backtrace>
      §span_trace: SpanTrace

      Trait Implementations§

      Source§

      impl Debug for SendError

      Source§

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

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

      impl Display for SendError

      Source§

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

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

      impl Error for SendError
      where Self: Debug + Display,

      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 downcasting
      Source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      Returns the lower-level source of this error, if any. Read more
      Source§

      fn provide<'a>(&'a self, request: &mut Request<'a>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type-based access to context intended for error reports. Read more
      Source§

      impl ErrorCompat for SendError

      Source§

      fn backtrace(&self) -> Option<&Backtrace>

      Returns a [Backtrace][] that may be printed.
      §

      fn iter_chain(&self) -> ChainCompat<'_, '_>
      where Self: AsErrorSource,

      Returns an iterator for traversing the chain of errors, starting with the current error diff --git a/pr/3514/docs/iroh_relay/client/fn.make_dangerous_client_config.html b/pr/3514/docs/iroh_relay/client/fn.make_dangerous_client_config.html index 662b9bde58..6baa9a3de8 100644 --- a/pr/3514/docs/iroh_relay/client/fn.make_dangerous_client_config.html +++ b/pr/3514/docs/iroh_relay/client/fn.make_dangerous_client_config.html @@ -1,3 +1,3 @@ -make_dangerous_client_config in iroh_relay::client - Rust

      Function make_dangerous_client_config

      Source
      pub fn make_dangerous_client_config() -> ClientConfig
      Expand description

      Creates a client config that trusts any servers without verifying their TLS certificate.

      +make_dangerous_client_config in iroh_relay::client - Rust

      Function make_dangerous_client_config

      Source
      pub fn make_dangerous_client_config() -> ClientConfig
      Available on crate feature test-utils only.
      Expand description

      Creates a client config that trusts any servers without verifying their TLS certificate.

      Should be used for testing local relay setups only.

      \ No newline at end of file diff --git a/pr/3514/docs/iroh_relay/client/index.html b/pr/3514/docs/iroh_relay/client/index.html index b35ce0983c..49a3ad23e3 100644 --- a/pr/3514/docs/iroh_relay/client/index.html +++ b/pr/3514/docs/iroh_relay/client/index.html @@ -1,3 +1,3 @@ iroh_relay::client - Rust

      Module client

      Source
      Expand description

      Exposes Client, which allows to establish connections to a relay server.

      Based on tailscale/derp/derphttp/derphttp_client.go

      -

      Structs§

      Client
      A relay client.
      ClientBuilder
      Build a Client.
      ClientSink
      The send half of a relay client.
      ClientStream
      The receive half of a relay client.

      Enums§

      ConnectError
      Connection errors.
      DialError
      Errors that can occur while dialing the relay server.
      RecvError
      Errors when receiving messages from the relay server.
      SendError
      Error for sending messages to the relay server.

      Functions§

      make_dangerous_client_config
      Creates a client config that trusts any servers without verifying their TLS certificate.
      \ No newline at end of file +

      Structs§

      Client
      A relay client.
      ClientBuilder
      Build a Client.
      ClientSink
      The send half of a relay client.
      ClientStream
      The receive half of a relay client.

      Enums§

      ConnectError
      Connection errors.
      DialError
      Errors that can occur while dialing the relay server.
      RecvError
      Errors when receiving messages from the relay server.
      SendError
      Error for sending messages to the relay server.

      Functions§

      make_dangerous_client_configtest-utils
      Creates a client config that trusts any servers without verifying their TLS certificate.
      \ No newline at end of file diff --git a/pr/3514/docs/iroh_relay/client/struct.Client.html b/pr/3514/docs/iroh_relay/client/struct.Client.html index 1cf99970c3..81da80cce1 100644 --- a/pr/3514/docs/iroh_relay/client/struct.Client.html +++ b/pr/3514/docs/iroh_relay/client/struct.Client.html @@ -75,7 +75,7 @@ available. Read more
      Sized,

    Transforms the error returned by the sink.
    §

    fn sink_err_into<E>(self) -> SinkErrInto<Self, Item, E>
    where Self: Sized, Self::Error: Into<E>,

    Map this sink’s error to a different error type using the Into trait. Read more
    §

    fn buffer(self, capacity: usize) -> Buffer<Self, Item>
    where - Self: Sized,

    Adds a fixed-size buffer to the current sink. Read more
    §

    fn close(&mut self) -> Close<'_, Self, Item>
    where + Self: Sized,

    Available on crate feature alloc only.
    Adds a fixed-size buffer to the current sink. Read more
    §

    fn close(&mut self) -> Close<'_, Self, Item>
    where Self: Unpin,

    Close the sink.
    §

    fn fanout<Si>(self, other: Si) -> Fanout<Self, Si>
    where Self: Sized, Item: Clone, @@ -192,9 +192,9 @@ sink types.

    Sized, S: Stream<Item = Self::Item>,
    Merges with other stream, preferring items from self whenever both streams are ready. Read more
    §

    fn race<S>(self, other: S) -> Race<Self, S>
    where Self: Sized, - S: Stream<Item = Self::Item>,

    Merges with other stream, with no preference for either stream when both are ready. Read more
    §

    fn drain(&mut self) -> Drain<'_, Self>

    Yields all immediately available values from a stream. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the stream and changes its type to dyn Stream + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
    where - Self: Sized + 'a,

    Boxes the stream and changes its type to dyn Stream + 'a. Read more
    §

    impl<T> StreamExt for T
    where + S: Stream<Item = Self::Item>,

    Available on crate features std and race only.
    Merges with other stream, with no preference for either stream when both are ready. Read more
    §

    fn drain(&mut self) -> Drain<'_, Self>

    Yields all immediately available values from a stream. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the stream and changes its type to dyn Stream + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
    where + Self: Sized + 'a,

    Available on crate feature alloc only.
    Boxes the stream and changes its type to dyn Stream + 'a. Read more
    §

    impl<T> StreamExt for T
    where T: Stream + ?Sized,

    §

    fn next(&mut self) -> Next<'_, Self>
    where Self: Unpin,

    Creates a future that resolves to the next item in the stream. Read more
    §

    fn into_future(self) -> StreamFuture<Self>
    where Self: Sized + Unpin,

    Converts this stream into a future of (next_item, tail_of_stream). @@ -244,7 +244,7 @@ collecting all the values into one final result. Read more
    Into<Option<usize>>, ) -> FlattenUnorderedWithFlowController<Self, ()>
    where Self::Item: Stream + Unpin, - Self: Sized,
    Flattens a stream of streams into just one continuous stream. Polls + Self: Sized,
    Available on crate feature alloc only.
    Flattens a stream of streams into just one continuous stream. Polls inner streams produced by the base stream concurrently. Read more
    §

    fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
    where F: FnMut(Self::Item) -> U, U: Stream, @@ -255,7 +255,7 @@ inner streams produced by the base stream concurrently. Read more
    where U: Stream + Unpin, F: FnMut(Self::Item) -> U, - Self: Sized,

    Maps a stream like [StreamExt::map] but flattens nested Streams + Self: Sized,
    Available on crate feature alloc only.
    Maps a stream like [StreamExt::map] but flattens nested Streams and polls them concurrently, yielding items in any order, as they made available. Read more
    §

    fn scan<S, B, Fut, F>(self, initial_state: S, f: F) -> Scan<Self, S, Fut, F>
    where F: FnMut(&mut S, Self::Item) -> Fut, @@ -282,7 +282,7 @@ closure for each element on the stream. Read more

    where F: FnMut(Self::Item) -> Fut, Fut: Future<Output = ()>, - Self: Sized,
    Runs this stream to completion, executing the provided asynchronous + Self: Sized,
    Available on crate feature alloc only.
    Runs this stream to completion, executing the provided asynchronous closure for each element on the stream concurrently as elements become available. Read more
    §

    fn take(self, n: usize) -> Take<Self>
    where Self: Sized,

    Creates a new stream of at most n items of the underlying stream. Read more
    §

    fn skip(self, n: usize) -> Skip<Self>
    where @@ -290,24 +290,24 @@ available. Read more

    Sized,
    Fuse a stream such that poll_next will never again be called once it has finished. This method can be used to turn any Stream into a FusedStream. Read more
    §

    fn by_ref(&mut self) -> &mut Self

    Borrows a stream, rather than consuming it. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches unwinding panics while polling the stream. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Wrap the stream in a Box, pinning it. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
    where - Self: Sized + 'a,

    Wrap the stream in a Box, pinning it. Read more
    §

    fn buffered(self, n: usize) -> Buffered<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the stream. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Wrap the stream in a Box, pinning it. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
    where + Self: Sized + 'a,

    Available on crate feature alloc only.
    Wrap the stream in a Box, pinning it. Read more
    §

    fn buffered(self, n: usize) -> Buffered<Self>
    where Self::Item: Future, - Self: Sized,

    An adaptor for creating a buffered list of pending futures. Read more
    §

    fn buffer_unordered(self, n: usize) -> BufferUnordered<Self>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for creating a buffered list of pending futures. Read more
    §

    fn buffer_unordered(self, n: usize) -> BufferUnordered<Self>
    where Self::Item: Future, - Self: Sized,

    An adaptor for creating a buffered list of pending futures (unordered). Read more
    §

    fn zip<St>(self, other: St) -> Zip<Self, St>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for creating a buffered list of pending futures (unordered). Read more
    §

    fn zip<St>(self, other: St) -> Zip<Self, St>
    where St: Stream, Self: Sized,

    An adapter for zipping two streams together. Read more
    §

    fn chain<St>(self, other: St) -> Chain<Self, St>
    where St: Stream<Item = Self::Item>, Self: Sized,

    Adapter for chaining two streams. Read more
    §

    fn peekable(self) -> Peekable<Self>
    where Self: Sized,

    Creates a new stream which exposes a peek method. Read more
    §

    fn chunks(self, capacity: usize) -> Chunks<Self>
    where - Self: Sized,

    An adaptor for chunking up items of the stream inside a vector. Read more
    §

    fn ready_chunks(self, capacity: usize) -> ReadyChunks<Self>
    where - Self: Sized,

    An adaptor for chunking up ready items of the stream inside a vector. Read more
    §

    fn forward<S>(self, sink: S) -> Forward<Self, S>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for chunking up items of the stream inside a vector. Read more
    §

    fn ready_chunks(self, capacity: usize) -> ReadyChunks<Self>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for chunking up ready items of the stream inside a vector. Read more
    §

    fn forward<S>(self, sink: S) -> Forward<Self, S>
    where S: Sink<Self::Ok, Error = Self::Error>, - Self: Sized + TryStream,

    A future that completes after the given stream has been fully processed + Self: Sized + TryStream,
    Available on crate feature sink only.
    A future that completes after the given stream has been fully processed into the sink and the sink has been flushed and closed. Read more
    §

    fn split<Item>(self) -> (SplitSink<Self, Item>, SplitStream<Self>)
    where - Self: Sized + Sink<Item>,

    Splits this Stream + Sink object into separate Sink and Stream + Self: Sized + Sink<Item>,
    Available on crate features sink and alloc only.
    Splits this Stream + Sink object into separate Sink and Stream objects. Read more
    §

    fn inspect<F>(self, f: F) -> Inspect<Self, F>
    where F: FnMut(&Self::Item), Self: Sized,

    Do something with each item of this stream, afterwards passing it on. Read more
    §

    fn left_stream<B>(self) -> Either<Self, B>
    where @@ -374,14 +374,14 @@ resolves to true. Read more

    where F: FnMut(Self::Ok) -> Fut, Fut: Future<Output = Result<(), Self::Error>>, - Self: Sized,
    Attempts to run this stream to completion, executing the provided asynchronous + Self: Sized,
    Available on crate feature alloc only.
    Attempts to run this stream to completion, executing the provided asynchronous closure for each element on the stream concurrently as elements become available, exiting as soon as an error occurs. Read more
    §

    fn try_collect<C>(self) -> TryCollect<Self, C>
    where C: Default + Extend<Self::Ok>, Self: Sized,

    Attempt to transform a stream into a collection, returning a future representing the result of that computation. Read more
    §

    fn try_chunks(self, capacity: usize) -> TryChunks<Self>
    where - Self: Sized,

    An adaptor for chunking up successful items of the stream inside a vector. Read more
    §

    fn try_ready_chunks(self, capacity: usize) -> TryReadyChunks<Self>
    where - Self: Sized,

    An adaptor for chunking up successful, ready items of the stream inside a vector. Read more
    §

    fn try_filter<Fut, F>(self, f: F) -> TryFilter<Self, Fut, F>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for chunking up successful items of the stream inside a vector. Read more
    §

    fn try_ready_chunks(self, capacity: usize) -> TryReadyChunks<Self>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for chunking up successful, ready items of the stream inside a vector. Read more
    §

    fn try_filter<Fut, F>(self, f: F) -> TryFilter<Self, Fut, F>
    where Fut: Future<Output = bool>, F: FnMut(&Self::Ok) -> Fut, Self: Sized,

    Attempt to filter the values produced by this stream according to the @@ -396,7 +396,7 @@ provided asynchronous closure. Read more
    where Self::Ok: TryStream + Unpin, <Self::Ok as TryStream>::Error: From<Self::Error>, - Self: Sized,
    Flattens a stream of streams into just one continuous stream. Produced streams + Self: Sized,
    Available on crate feature alloc only.
    Flattens a stream of streams into just one continuous stream. Produced streams will be polled concurrently and any errors will be passed through without looking at them. If the underlying base stream returns an error, it will be immediately propagated. Read more
    §

    fn try_flatten(self) -> TryFlatten<Self>
    where Self::Ok: TryStream, @@ -410,16 +410,16 @@ stream, collecting all the values into one final result. Read more
    < Self::Ok: Extend<<Self::Ok as IntoIterator>::Item> + IntoIterator + Default,

    Attempt to concatenate all items of a stream into a single extendable destination, returning a future representing the end result. Read more
    §

    fn try_buffer_unordered(self, n: usize) -> TryBufferUnordered<Self>
    where Self::Ok: TryFuture<Error = Self::Error>, - Self: Sized,

    Attempt to execute several futures from a stream concurrently (unordered). Read more
    §

    fn try_buffered(self, n: usize) -> TryBuffered<Self>
    where + Self: Sized,

    Available on crate feature alloc only.
    Attempt to execute several futures from a stream concurrently (unordered). Read more
    §

    fn try_buffered(self, n: usize) -> TryBuffered<Self>
    where Self::Ok: TryFuture<Error = Self::Error>, - Self: Sized,

    Attempt to execute several futures from a stream concurrently. Read more
    §

    fn try_poll_next_unpin( + Self: Sized,

    Available on crate feature alloc only.
    Attempt to execute several futures from a stream concurrently. Read more
    §

    fn try_poll_next_unpin( &mut self, cx: &mut Context<'_>, ) -> Poll<Option<Result<Self::Ok, Self::Error>>>
    where Self: Unpin,

    A convenience method for calling [TryStream::try_poll_next] on Unpin stream types.
    §

    fn into_async_read(self) -> IntoAsyncRead<Self>
    where Self: Sized + TryStreamExt<Error = Error>, - Self::Ok: AsRef<[u8]>,

    Adapter that converts this stream into an AsyncBufRead. Read more
    §

    fn try_all<Fut, F>(self, f: F) -> TryAll<Self, Fut, F>
    where + Self::Ok: AsRef<[u8]>,

    Available on crate features io and std only.
    Adapter that converts this stream into an AsyncBufRead. Read more
    §

    fn try_all<Fut, F>(self, f: F) -> TryAll<Self, Fut, F>
    where Self: Sized, F: FnMut(Self::Ok) -> Fut, Fut: Future<Output = bool>,

    Attempt to execute a predicate over an asynchronous stream and evaluate if all items diff --git a/pr/3514/docs/iroh_relay/client/struct.ClientBuilder.html b/pr/3514/docs/iroh_relay/client/struct.ClientBuilder.html index 6668008096..4a70a693ad 100644 --- a/pr/3514/docs/iroh_relay/client/struct.ClientBuilder.html +++ b/pr/3514/docs/iroh_relay/client/struct.ClientBuilder.html @@ -11,11 +11,11 @@ It provides the hint as to whether in an IPv4-vs-IPv6 race that IPv4 should be held back a bit to give IPv6 a better-than-50/50 chance of winning. We only return true when we believe IPv6 will work anyway, so we don’t artificially delay the connection speed.

    -
    Source

    pub fn insecure_skip_cert_verify(self, skip: bool) -> Self

    Skip the verification of the relay server’s SSL certificates.

    +
    Source

    pub fn insecure_skip_cert_verify(self, skip: bool) -> Self

    Available on crate feature test-utils only.

    Skip the verification of the relay server’s SSL certificates.

    May only be used in tests.

    Source

    pub fn proxy_url(self, url: Url) -> Self

    Set an explicit proxy url to proxy all HTTP(S) traffic through.

    Source

    pub fn key_cache_capacity(self, capacity: usize) -> Self

    Set the capacity of the cache for public keys.

    -
    Source

    pub async fn connect(&self) -> Result<Client, ConnectError>

    Establishes a new connection to the relay server.

    +
    Source

    pub async fn connect(&self) -> Result<Client, ConnectError>

    Available on non-wasm_browser only.

    Establishes a new connection to the relay server.

    Trait Implementations§

    Source§

    impl Clone for ClientBuilder

    Source§

    fn clone(&self) -> ClientBuilder

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ClientBuilder

    Source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for ClientBuilder

    §

    impl !RefUnwindSafe for ClientBuilder

    §

    impl Send for ClientBuilder

    §

    impl Sync for ClientBuilder

    §

    impl Unpin for ClientBuilder

    §

    impl !UnwindSafe for ClientBuilder

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

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

    §

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

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/3514/docs/iroh_relay/client/struct.ClientSink.html b/pr/3514/docs/iroh_relay/client/struct.ClientSink.html index 15eadd0b74..7d3bd3c4d0 100644 --- a/pr/3514/docs/iroh_relay/client/struct.ClientSink.html +++ b/pr/3514/docs/iroh_relay/client/struct.ClientSink.html @@ -50,7 +50,7 @@ Each call to this function must be preceded by a successful call to Self: Sized,

    Transforms the error returned by the sink.
    §

    fn sink_err_into<E>(self) -> SinkErrInto<Self, Item, E>
    where Self: Sized, Self::Error: Into<E>,

    Map this sink’s error to a different error type using the Into trait. Read more
    §

    fn buffer(self, capacity: usize) -> Buffer<Self, Item>
    where - Self: Sized,

    Adds a fixed-size buffer to the current sink. Read more
    §

    fn close(&mut self) -> Close<'_, Self, Item>
    where + Self: Sized,

    Available on crate feature alloc only.
    Adds a fixed-size buffer to the current sink. Read more
    §

    fn close(&mut self) -> Close<'_, Self, Item>
    where Self: Unpin,

    Close the sink.
    §

    fn fanout<Si>(self, other: Si) -> Fanout<Self, Si>
    where Self: Sized, Item: Clone, diff --git a/pr/3514/docs/iroh_relay/client/struct.ClientStream.html b/pr/3514/docs/iroh_relay/client/struct.ClientStream.html index 9dd69fdb43..62b2cf9840 100644 --- a/pr/3514/docs/iroh_relay/client/struct.ClientStream.html +++ b/pr/3514/docs/iroh_relay/client/struct.ClientStream.html @@ -130,9 +130,9 @@ available. Read more

    Sized, S: Stream<Item = Self::Item>,
    Merges with other stream, preferring items from self whenever both streams are ready. Read more
    §

    fn race<S>(self, other: S) -> Race<Self, S>
    where Self: Sized, - S: Stream<Item = Self::Item>,

    Merges with other stream, with no preference for either stream when both are ready. Read more
    §

    fn drain(&mut self) -> Drain<'_, Self>

    Yields all immediately available values from a stream. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Boxes the stream and changes its type to dyn Stream + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
    where - Self: Sized + 'a,

    Boxes the stream and changes its type to dyn Stream + 'a. Read more
    §

    impl<T> StreamExt for T
    where + S: Stream<Item = Self::Item>,

    Available on crate features std and race only.
    Merges with other stream, with no preference for either stream when both are ready. Read more
    §

    fn drain(&mut self) -> Drain<'_, Self>

    Yields all immediately available values from a stream. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Boxes the stream and changes its type to dyn Stream + Send + 'a. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
    where + Self: Sized + 'a,

    Available on crate feature alloc only.
    Boxes the stream and changes its type to dyn Stream + 'a. Read more
    §

    impl<T> StreamExt for T
    where T: Stream + ?Sized,

    §

    fn next(&mut self) -> Next<'_, Self>
    where Self: Unpin,

    Creates a future that resolves to the next item in the stream. Read more
    §

    fn into_future(self) -> StreamFuture<Self>
    where Self: Sized + Unpin,

    Converts this stream into a future of (next_item, tail_of_stream). @@ -182,7 +182,7 @@ collecting all the values into one final result. Read more
    Into<Option<usize>>, ) -> FlattenUnorderedWithFlowController<Self, ()>
    where Self::Item: Stream + Unpin, - Self: Sized,
    Flattens a stream of streams into just one continuous stream. Polls + Self: Sized,
    Available on crate feature alloc only.
    Flattens a stream of streams into just one continuous stream. Polls inner streams produced by the base stream concurrently. Read more
    §

    fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
    where F: FnMut(Self::Item) -> U, U: Stream, @@ -193,7 +193,7 @@ inner streams produced by the base stream concurrently. Read more
    where U: Stream + Unpin, F: FnMut(Self::Item) -> U, - Self: Sized,

    Maps a stream like [StreamExt::map] but flattens nested Streams + Self: Sized,
    Available on crate feature alloc only.
    Maps a stream like [StreamExt::map] but flattens nested Streams and polls them concurrently, yielding items in any order, as they made available. Read more
    §

    fn scan<S, B, Fut, F>(self, initial_state: S, f: F) -> Scan<Self, S, Fut, F>
    where F: FnMut(&mut S, Self::Item) -> Fut, @@ -220,7 +220,7 @@ closure for each element on the stream. Read more

    where F: FnMut(Self::Item) -> Fut, Fut: Future<Output = ()>, - Self: Sized,
    Runs this stream to completion, executing the provided asynchronous + Self: Sized,
    Available on crate feature alloc only.
    Runs this stream to completion, executing the provided asynchronous closure for each element on the stream concurrently as elements become available. Read more
    §

    fn take(self, n: usize) -> Take<Self>
    where Self: Sized,

    Creates a new stream of at most n items of the underlying stream. Read more
    §

    fn skip(self, n: usize) -> Skip<Self>
    where @@ -228,24 +228,24 @@ available. Read more

    Sized,
    Fuse a stream such that poll_next will never again be called once it has finished. This method can be used to turn any Stream into a FusedStream. Read more
    §

    fn by_ref(&mut self) -> &mut Self

    Borrows a stream, rather than consuming it. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where - Self: Sized + UnwindSafe,

    Catches unwinding panics while polling the stream. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
    where - Self: Sized + Send + 'a,

    Wrap the stream in a Box, pinning it. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
    where - Self: Sized + 'a,

    Wrap the stream in a Box, pinning it. Read more
    §

    fn buffered(self, n: usize) -> Buffered<Self>
    where + Self: Sized + UnwindSafe,

    Available on crate feature std only.
    Catches unwinding panics while polling the stream. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Available on crate feature alloc only.
    Wrap the stream in a Box, pinning it. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
    where + Self: Sized + 'a,

    Available on crate feature alloc only.
    Wrap the stream in a Box, pinning it. Read more
    §

    fn buffered(self, n: usize) -> Buffered<Self>
    where Self::Item: Future, - Self: Sized,

    An adaptor for creating a buffered list of pending futures. Read more
    §

    fn buffer_unordered(self, n: usize) -> BufferUnordered<Self>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for creating a buffered list of pending futures. Read more
    §

    fn buffer_unordered(self, n: usize) -> BufferUnordered<Self>
    where Self::Item: Future, - Self: Sized,

    An adaptor for creating a buffered list of pending futures (unordered). Read more
    §

    fn zip<St>(self, other: St) -> Zip<Self, St>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for creating a buffered list of pending futures (unordered). Read more
    §

    fn zip<St>(self, other: St) -> Zip<Self, St>
    where St: Stream, Self: Sized,

    An adapter for zipping two streams together. Read more
    §

    fn chain<St>(self, other: St) -> Chain<Self, St>
    where St: Stream<Item = Self::Item>, Self: Sized,

    Adapter for chaining two streams. Read more
    §

    fn peekable(self) -> Peekable<Self>
    where Self: Sized,

    Creates a new stream which exposes a peek method. Read more
    §

    fn chunks(self, capacity: usize) -> Chunks<Self>
    where - Self: Sized,

    An adaptor for chunking up items of the stream inside a vector. Read more
    §

    fn ready_chunks(self, capacity: usize) -> ReadyChunks<Self>
    where - Self: Sized,

    An adaptor for chunking up ready items of the stream inside a vector. Read more
    §

    fn forward<S>(self, sink: S) -> Forward<Self, S>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for chunking up items of the stream inside a vector. Read more
    §

    fn ready_chunks(self, capacity: usize) -> ReadyChunks<Self>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for chunking up ready items of the stream inside a vector. Read more
    §

    fn forward<S>(self, sink: S) -> Forward<Self, S>
    where S: Sink<Self::Ok, Error = Self::Error>, - Self: Sized + TryStream,

    A future that completes after the given stream has been fully processed + Self: Sized + TryStream,
    Available on crate feature sink only.
    A future that completes after the given stream has been fully processed into the sink and the sink has been flushed and closed. Read more
    §

    fn split<Item>(self) -> (SplitSink<Self, Item>, SplitStream<Self>)
    where - Self: Sized + Sink<Item>,

    Splits this Stream + Sink object into separate Sink and Stream + Self: Sized + Sink<Item>,
    Available on crate features sink and alloc only.
    Splits this Stream + Sink object into separate Sink and Stream objects. Read more
    §

    fn inspect<F>(self, f: F) -> Inspect<Self, F>
    where F: FnMut(&Self::Item), Self: Sized,

    Do something with each item of this stream, afterwards passing it on. Read more
    §

    fn left_stream<B>(self) -> Either<Self, B>
    where @@ -312,14 +312,14 @@ resolves to true. Read more

    where F: FnMut(Self::Ok) -> Fut, Fut: Future<Output = Result<(), Self::Error>>, - Self: Sized,
    Attempts to run this stream to completion, executing the provided asynchronous + Self: Sized,
    Available on crate feature alloc only.
    Attempts to run this stream to completion, executing the provided asynchronous closure for each element on the stream concurrently as elements become available, exiting as soon as an error occurs. Read more
    §

    fn try_collect<C>(self) -> TryCollect<Self, C>
    where C: Default + Extend<Self::Ok>, Self: Sized,

    Attempt to transform a stream into a collection, returning a future representing the result of that computation. Read more
    §

    fn try_chunks(self, capacity: usize) -> TryChunks<Self>
    where - Self: Sized,

    An adaptor for chunking up successful items of the stream inside a vector. Read more
    §

    fn try_ready_chunks(self, capacity: usize) -> TryReadyChunks<Self>
    where - Self: Sized,

    An adaptor for chunking up successful, ready items of the stream inside a vector. Read more
    §

    fn try_filter<Fut, F>(self, f: F) -> TryFilter<Self, Fut, F>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for chunking up successful items of the stream inside a vector. Read more
    §

    fn try_ready_chunks(self, capacity: usize) -> TryReadyChunks<Self>
    where + Self: Sized,

    Available on crate feature alloc only.
    An adaptor for chunking up successful, ready items of the stream inside a vector. Read more
    §

    fn try_filter<Fut, F>(self, f: F) -> TryFilter<Self, Fut, F>
    where Fut: Future<Output = bool>, F: FnMut(&Self::Ok) -> Fut, Self: Sized,

    Attempt to filter the values produced by this stream according to the @@ -334,7 +334,7 @@ provided asynchronous closure. Read more
    where Self::Ok: TryStream + Unpin, <Self::Ok as TryStream>::Error: From<Self::Error>, - Self: Sized,
    Flattens a stream of streams into just one continuous stream. Produced streams + Self: Sized,
    Available on crate feature alloc only.
    Flattens a stream of streams into just one continuous stream. Produced streams will be polled concurrently and any errors will be passed through without looking at them. If the underlying base stream returns an error, it will be immediately propagated. Read more
    §

    fn try_flatten(self) -> TryFlatten<Self>
    where Self::Ok: TryStream, @@ -348,16 +348,16 @@ stream, collecting all the values into one final result. Read more
    < Self::Ok: Extend<<Self::Ok as IntoIterator>::Item> + IntoIterator + Default,

    Attempt to concatenate all items of a stream into a single extendable destination, returning a future representing the end result. Read more
    §

    fn try_buffer_unordered(self, n: usize) -> TryBufferUnordered<Self>
    where Self::Ok: TryFuture<Error = Self::Error>, - Self: Sized,

    Attempt to execute several futures from a stream concurrently (unordered). Read more
    §

    fn try_buffered(self, n: usize) -> TryBuffered<Self>
    where + Self: Sized,

    Available on crate feature alloc only.
    Attempt to execute several futures from a stream concurrently (unordered). Read more
    §

    fn try_buffered(self, n: usize) -> TryBuffered<Self>
    where Self::Ok: TryFuture<Error = Self::Error>, - Self: Sized,

    Attempt to execute several futures from a stream concurrently. Read more
    §

    fn try_poll_next_unpin( + Self: Sized,

    Available on crate feature alloc only.
    Attempt to execute several futures from a stream concurrently. Read more
    §

    fn try_poll_next_unpin( &mut self, cx: &mut Context<'_>, ) -> Poll<Option<Result<Self::Ok, Self::Error>>>
    where Self: Unpin,

    A convenience method for calling [TryStream::try_poll_next] on Unpin stream types.
    §

    fn into_async_read(self) -> IntoAsyncRead<Self>
    where Self: Sized + TryStreamExt<Error = Error>, - Self::Ok: AsRef<[u8]>,

    Adapter that converts this stream into an AsyncBufRead. Read more
    §

    fn try_all<Fut, F>(self, f: F) -> TryAll<Self, Fut, F>
    where + Self::Ok: AsRef<[u8]>,

    Available on crate features io and std only.
    Adapter that converts this stream into an AsyncBufRead. Read more
    §

    fn try_all<Fut, F>(self, f: F) -> TryAll<Self, Fut, F>
    where Self: Sized, F: FnMut(Self::Ok) -> Fut, Fut: Future<Output = bool>,

    Attempt to execute a predicate over an asynchronous stream and evaluate if all items diff --git a/pr/3514/docs/iroh_relay/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3514/docs/iroh_relay/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html index 89f99401ca..389bdb18c5 100644 --- a/pr/3514/docs/iroh_relay/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html +++ b/pr/3514/docs/iroh_relay/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html @@ -1,2 +1,2 @@ -N0_DNS_NODE_ORIGIN_PROD in iroh_relay::dns - Rust

    Constant N0_DNS_NODE_ORIGIN_PROD

    Source
    pub const N0_DNS_NODE_ORIGIN_PROD: &str = "dns.iroh.link";
    Expand description

    The n0 testing DNS node origin, for production.

    +N0_DNS_NODE_ORIGIN_PROD in iroh_relay::dns - Rust

    Constant N0_DNS_NODE_ORIGIN_PROD

    Source
    pub const N0_DNS_NODE_ORIGIN_PROD: &str = "dns.iroh.link";
    Available on non-wasm_browser only.
    Expand description

    The n0 testing DNS node origin, for production.

    \ No newline at end of file diff --git a/pr/3514/docs/iroh_relay/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3514/docs/iroh_relay/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html index f91b21ed03..0a73d95ce5 100644 --- a/pr/3514/docs/iroh_relay/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html +++ b/pr/3514/docs/iroh_relay/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html @@ -1,2 +1,2 @@ -N0_DNS_NODE_ORIGIN_STAGING in iroh_relay::dns - Rust

    Constant N0_DNS_NODE_ORIGIN_STAGING

    Source
    pub const N0_DNS_NODE_ORIGIN_STAGING: &str = "staging-dns.iroh.link";
    Expand description

    The n0 testing DNS node origin, for testing.

    +N0_DNS_NODE_ORIGIN_STAGING in iroh_relay::dns - Rust

    Constant N0_DNS_NODE_ORIGIN_STAGING

    Source
    pub const N0_DNS_NODE_ORIGIN_STAGING: &str = "staging-dns.iroh.link";
    Available on non-wasm_browser only.
    Expand description

    The n0 testing DNS node origin, for testing.

    \ No newline at end of file diff --git a/pr/3514/docs/iroh_relay/dns/enum.DnsError.html b/pr/3514/docs/iroh_relay/dns/enum.DnsError.html index 3e638f6923..8af9f74667 100644 --- a/pr/3514/docs/iroh_relay/dns/enum.DnsError.html +++ b/pr/3514/docs/iroh_relay/dns/enum.DnsError.html @@ -27,7 +27,7 @@ backtrace: Option<Backtrace>, span_trace: SpanTrace, }, -}
    Expand description

    Potential errors related to dns.

    +}
    Available on non-wasm_browser only.
    Expand description

    Potential errors related to dns.

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

    Timeout

    Fields

    §source: Elapsed
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    NoResponse

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    ResolveBoth

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    MissingHost

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    Resolve

    Fields

    §source: ResolveError
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    InvalidResponse

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace

    Trait Implementations§

    Source§

    impl Debug for DnsError

    Source§

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

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

    impl Display for DnsError

    Source§

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

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

    impl Error for DnsError
    where Self: Debug + Display,

    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 downcasting
    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl ErrorCompat for DnsError

    Source§

    fn backtrace(&self) -> Option<&Backtrace>

    Returns a [Backtrace][] that may be printed.
    §

    fn iter_chain(&self) -> ChainCompat<'_, '_>
    where Self: AsErrorSource,

    Returns an iterator for traversing the chain of errors, diff --git a/pr/3514/docs/iroh_relay/dns/enum.DnsProtocol.html b/pr/3514/docs/iroh_relay/dns/enum.DnsProtocol.html index b6c8d39054..d9d22db323 100644 --- a/pr/3514/docs/iroh_relay/dns/enum.DnsProtocol.html +++ b/pr/3514/docs/iroh_relay/dns/enum.DnsProtocol.html @@ -3,7 +3,7 @@ Tcp, Tls, Https, -}
    Expand description

    Protocols over which DNS records can be resolved.

    +}
    Available on non-wasm_browser only.
    Expand description

    Protocols over which DNS records can be resolved.

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

    Udp

    DNS over UDP

    This is the classic DNS protocol and supported by most DNS servers.

    §

    Tcp

    DNS over TCP

    diff --git a/pr/3514/docs/iroh_relay/dns/enum.LookupError.html b/pr/3514/docs/iroh_relay/dns/enum.LookupError.html index 56504fec5f..0abfe32ab6 100644 --- a/pr/3514/docs/iroh_relay/dns/enum.LookupError.html +++ b/pr/3514/docs/iroh_relay/dns/enum.LookupError.html @@ -9,7 +9,7 @@ backtrace: Option<Backtrace>, span_trace: SpanTrace, }, -}

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

    ParseError

    Fields

    §source: Box<ParseError>
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    LookupFailed

    Fields

    §source: Box<DnsError>
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace

    Trait Implementations§

    Source§

    impl Debug for LookupError

    Source§

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

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

    impl Display for LookupError

    Source§

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

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

    impl Error for LookupError
    where +}
    Available on non-wasm_browser only.

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

    ParseError

    Fields

    §source: Box<ParseError>
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    LookupFailed

    Fields

    §source: Box<DnsError>
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace

    Trait Implementations§

    Source§

    impl Debug for LookupError

    Source§

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

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

    impl Display for LookupError

    Source§

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

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

    impl Error for LookupError
    where Self: Debug + Display,

    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 downcasting
    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl ErrorCompat for LookupError

    Source§

    fn backtrace(&self) -> Option<&Backtrace>

    Returns a [Backtrace][] that may be printed.
    §

    fn iter_chain(&self) -> ChainCompat<'_, '_>
    where Self: AsErrorSource,

    Returns an iterator for traversing the chain of errors, starting with the current error diff --git a/pr/3514/docs/iroh_relay/dns/index.html b/pr/3514/docs/iroh_relay/dns/index.html index df5449a57c..809c57caf2 100644 --- a/pr/3514/docs/iroh_relay/dns/index.html +++ b/pr/3514/docs/iroh_relay/dns/index.html @@ -1,2 +1,2 @@ -iroh_relay::dns - Rust

    Module dns

    Source
    Expand description

    DNS resolver

    +iroh_relay::dns - Rust

    Module dns

    Source
    Available on non-wasm_browser only.
    Expand description

    DNS resolver

    Structs§

    Builder
    Builder for DnsResolver.
    DnsResolver
    The DNS resolver used throughout iroh.
    StaggeredError
    Error returned when an input value is too long for crate::node_info::UserData.
    TxtRecordData
    Record data for a TXT record.

    Enums§

    DnsError
    Potential errors related to dns.
    DnsProtocol
    Protocols over which DNS records can be resolved.
    LookupError

    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.

    Traits§

    Resolver
    Trait for DNS resolvers used in iroh.

    Type Aliases§

    BoxIter
    Boxed iterator alias.
    \ No newline at end of file diff --git a/pr/3514/docs/iroh_relay/dns/struct.Builder.html b/pr/3514/docs/iroh_relay/dns/struct.Builder.html index f37fd5cb55..48baa13df7 100644 --- a/pr/3514/docs/iroh_relay/dns/struct.Builder.html +++ b/pr/3514/docs/iroh_relay/dns/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in iroh_relay::dns - Rust

    Struct Builder

    Source
    pub struct Builder { /* private fields */ }
    Expand description

    Builder for DnsResolver.

    +Builder in iroh_relay::dns - Rust

    Struct Builder

    Source
    pub struct Builder { /* private fields */ }
    Available on non-wasm_browser only.
    Expand description

    Builder for DnsResolver.

    Implementations§

    Source§

    impl Builder

    Source

    pub fn with_system_defaults(self) -> Self

    Makes the builder respect the host system’s DNS configuration.

    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_relay/dns/struct.DnsResolver.html b/pr/3514/docs/iroh_relay/dns/struct.DnsResolver.html index 8e38849407..86bd6c71c7 100644 --- a/pr/3514/docs/iroh_relay/dns/struct.DnsResolver.html +++ b/pr/3514/docs/iroh_relay/dns/struct.DnsResolver.html @@ -1,4 +1,4 @@ -DnsResolver in iroh_relay::dns - Rust

    Struct DnsResolver

    Source
    pub struct DnsResolver(/* private fields */);
    Expand description

    The DNS resolver used throughout iroh.

    +DnsResolver in iroh_relay::dns - Rust

    Struct DnsResolver

    Source
    pub struct DnsResolver(/* private fields */);
    Available on non-wasm_browser only.
    Expand description

    The DNS resolver used throughout iroh.

    Implementations§

    Source§

    impl DnsResolver

    Source

    pub fn new() -> Self

    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_relay/dns/struct.StaggeredError.html b/pr/3514/docs/iroh_relay/dns/struct.StaggeredError.html index 48644cfa17..459b714d7e 100644 --- a/pr/3514/docs/iroh_relay/dns/struct.StaggeredError.html +++ b/pr/3514/docs/iroh_relay/dns/struct.StaggeredError.html @@ -1,4 +1,4 @@ -StaggeredError in iroh_relay::dns - Rust

    Struct StaggeredError

    Source
    pub struct StaggeredError<E: Debug + Display> { /* private fields */ }
    Expand description

    Error returned when an input value is too long for crate::node_info::UserData.

    +StaggeredError in iroh_relay::dns - Rust

    Struct StaggeredError

    Source
    pub struct StaggeredError<E: Debug + Display> { /* private fields */ }
    Available on non-wasm_browser only.
    Expand description

    Error returned when an input value is too long for crate::node_info::UserData.

    Trait Implementations§

    Source§

    impl<E: Debug + Debug + Display> Debug for StaggeredError<E>

    Source§

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

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

    impl<E: Debug + Display> Display for StaggeredError<E>

    Source§

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

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

    impl<E: Debug + Display> Error for StaggeredError<E>
    where Self: Debug + Display,

    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 downcasting
    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl<E: Debug + Display> ErrorCompat for StaggeredError<E>

    Source§

    fn backtrace(&self) -> Option<&Backtrace>

    Returns a [Backtrace][] that may be printed.
    §

    fn iter_chain(&self) -> ChainCompat<'_, '_>
    where Self: AsErrorSource,

    Returns an iterator for traversing the chain of errors, diff --git a/pr/3514/docs/iroh_relay/dns/struct.TxtRecordData.html b/pr/3514/docs/iroh_relay/dns/struct.TxtRecordData.html index 6425260fc9..5b2457333f 100644 --- a/pr/3514/docs/iroh_relay/dns/struct.TxtRecordData.html +++ b/pr/3514/docs/iroh_relay/dns/struct.TxtRecordData.html @@ -1,4 +1,4 @@ -TxtRecordData in iroh_relay::dns - Rust

    Struct TxtRecordData

    Source
    pub struct TxtRecordData(/* private fields */);
    Expand description

    Record data for a TXT record.

    +TxtRecordData in iroh_relay::dns - Rust

    Struct TxtRecordData

    Source
    pub struct TxtRecordData(/* private fields */);
    Available on non-wasm_browser only.
    Expand description

    Record data for a TXT record.

    This contains a list of character strings, as defined in RFC 1035 Section 3.3.14.

    TxtRecordData implements fmt::Display, so you can call ToString::to_string to convert the record data into a string. This will parse each character string with diff --git a/pr/3514/docs/iroh_relay/dns/trait.Resolver.html b/pr/3514/docs/iroh_relay/dns/trait.Resolver.html index 7d3208d729..4801c98601 100644 --- a/pr/3514/docs/iroh_relay/dns/trait.Resolver.html +++ b/pr/3514/docs/iroh_relay/dns/trait.Resolver.html @@ -18,7 +18,7 @@ ) -> BoxFuture<Result<BoxIter<TxtRecordData>, DnsError>>; fn clear_cache(&self); fn reset(&mut self); -}

    Expand description

    Trait for DNS resolvers used in iroh.

    +}
    Available on non-wasm_browser only.
    Expand description

    Trait for DNS resolvers used in iroh.

    Required Methods§

    Source

    fn lookup_ipv4( &self, host: String, diff --git a/pr/3514/docs/iroh_relay/dns/type.BoxIter.html b/pr/3514/docs/iroh_relay/dns/type.BoxIter.html index e1caacc149..0e87ea3b21 100644 --- a/pr/3514/docs/iroh_relay/dns/type.BoxIter.html +++ b/pr/3514/docs/iroh_relay/dns/type.BoxIter.html @@ -1,2 +1,2 @@ -BoxIter in iroh_relay::dns - Rust

    Type Alias BoxIter

    Source
    pub type BoxIter<T> = Box<dyn Iterator<Item = T> + Send + 'static>;
    Expand description

    Boxed iterator alias.

    +BoxIter in iroh_relay::dns - Rust

    Type Alias BoxIter

    Source
    pub type BoxIter<T> = Box<dyn Iterator<Item = T> + Send + 'static>;
    Available on non-wasm_browser only.
    Expand description

    Boxed iterator alias.

    Aliased Type§

    struct BoxIter<T>(/* private fields */);
    \ No newline at end of file diff --git a/pr/3514/docs/iroh_relay/index.html b/pr/3514/docs/iroh_relay/index.html index f6691910dc..dabd7d4e09 100644 --- a/pr/3514/docs/iroh_relay/index.html +++ b/pr/3514/docs/iroh_relay/index.html @@ -25,6 +25,6 @@ Tailscale.

    QAD support and expose metrics.

    -

    Re-exports§

    pub use protos::relay::MAX_PACKET_SIZE;

    Modules§

    client
    Exposes Client, which allows to establish connections to a relay server.
    defaults
    Default values used in the relay.
    dns
    DNS resolver
    http
    HTTP-specific constants for the relay server and client.
    node_info
    Support for handling DNS resource records for dialing by NodeId.
    protos
    Protocols used by the iroh-relay
    quic
    Create a QUIC server that accepts connections -for QUIC address discovery.
    server
    A fully-fledged iroh-relay server over HTTP or HTTPS.

    Structs§

    PingTracker
    Tracks pings on a single relay connection.
    RelayMap
    Configuration of all the relay servers that can be used.
    RelayNode
    Information on a specific relay server.
    RelayQuicConfig
    Configuration for speaking to the QUIC endpoint on the relay +

    Re-exports§

    pub use protos::relay::MAX_PACKET_SIZE;

    Modules§

    client
    Exposes Client, which allows to establish connections to a relay server.
    defaults
    Default values used in the relay.
    dnsNon-wasm_browser
    DNS resolver
    http
    HTTP-specific constants for the relay server and client.
    node_info
    Support for handling DNS resource records for dialing by NodeId.
    protos
    Protocols used by the iroh-relay
    quic
    Create a QUIC server that accepts connections +for QUIC address discovery.
    serverserver
    A fully-fledged iroh-relay server over HTTP or HTTPS.

    Structs§

    PingTracker
    Tracks pings on a single relay connection.
    RelayMap
    Configuration of all the relay servers that can be used.
    RelayNode
    Information on a specific relay server.
    RelayQuicConfig
    Configuration for speaking to the QUIC endpoint on the relay server to do QUIC address discovery.
    \ No newline at end of file diff --git a/pr/3514/docs/iroh_relay/node_info/struct.NodeInfo.html b/pr/3514/docs/iroh_relay/node_info/struct.NodeInfo.html index 1e9ee581c8..a5fc869bf9 100644 --- a/pr/3514/docs/iroh_relay/node_info/struct.NodeInfo.html +++ b/pr/3514/docs/iroh_relay/node_info/struct.NodeInfo.html @@ -18,7 +18,7 @@
    Source

    pub fn from_txt_lookup( domain_name: String, lookup: impl Iterator<Item = TxtRecordData>, -) -> Result<Self, ParseError>

    Parses a NodeInfo from DNS TXT lookup.

    +) -> Result<Self, ParseError>

    Available on non-wasm_browser only.

    Parses a NodeInfo from DNS TXT lookup.

    Source

    pub fn from_pkarr_signed_packet( packet: &SignedPacket, ) -> Result<Self, ParseError>

    Parses a NodeInfo from a [pkarr::SignedPacket].

    diff --git a/pr/3514/docs/iroh_relay/node_info/trait.NodeIdExt.html b/pr/3514/docs/iroh_relay/node_info/trait.NodeIdExt.html index 1f7662ed53..b3dee129e6 100644 --- a/pr/3514/docs/iroh_relay/node_info/trait.NodeIdExt.html +++ b/pr/3514/docs/iroh_relay/node_info/trait.NodeIdExt.html @@ -4,6 +4,6 @@ fn from_z32(s: &str) -> Result<NodeId, 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§

    Source

    fn to_z32(&self) -> String

    Encodes a NodeId in z-base-32 encoding.

    -
    Source

    fn from_z32(s: &str) -> Result<NodeId, DecodingError>

    Parses a NodeId from z-base-32 encoding.

    +

    Required Methods§

    Source

    fn to_z32(&self) -> String

    Encodes a NodeId in [z-base-32] encoding.

    +
    Source

    fn from_z32(s: &str) -> Result<NodeId, DecodingError>

    Parses a NodeId from [z-base-32] encoding.

    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.

    Implementations on Foreign Types§

    Source§

    impl NodeIdExt for NodeId

    Implementors§

    \ No newline at end of file diff --git a/pr/3514/docs/iroh_relay/protos/handshake/enum.Error.html b/pr/3514/docs/iroh_relay/protos/handshake/enum.Error.html index 58972e7cfe..3e29e3e326 100644 --- a/pr/3514/docs/iroh_relay/protos/handshake/enum.Error.html +++ b/pr/3514/docs/iroh_relay/protos/handshake/enum.Error.html @@ -35,7 +35,7 @@ backtrace: Option<Backtrace>, span_trace: SpanTrace, }, -}

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

    Websocket

    Fields

    §source: Error
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    UnexpectedEnd

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    FrameTypeError

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    ServerDeniedAuth

    Fields

    §reason: String
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    UnexpectedFrameType

    Fields

    §frame_type: FrameType
    §expected_types: Vec<FrameType>
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    DeserializationError

    Fields

    §frame_type: FrameType
    §source: Error
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    ClientAuthHeaderInvalid

    Failed to deserialize client auth header

    +}

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

    Websocket

    Fields

    §source: Error
    Available on non-wasm_browser only.
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    UnexpectedEnd

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    FrameTypeError

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    ServerDeniedAuth

    Fields

    §reason: String
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    UnexpectedFrameType

    Fields

    §frame_type: FrameType
    §expected_types: Vec<FrameType>
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    DeserializationError

    Fields

    §frame_type: FrameType
    §source: Error
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    ClientAuthHeaderInvalid

    Available on crate feature server only.

    Failed to deserialize client auth header

    Fields

    §value: HeaderValue
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace

    Trait Implementations§

    Source§

    impl Debug for Error

    Source§

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

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

    impl Display for Error

    Source§

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

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

    impl Error for Error
    where Self: Debug + Display,

    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 downcasting
    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl ErrorCompat for Error

    Source§

    fn backtrace(&self) -> Option<&Backtrace>

    Returns a [Backtrace][] that may be printed.
    §

    fn iter_chain(&self) -> ChainCompat<'_, '_>
    where Self: AsErrorSource,

    Returns an iterator for traversing the chain of errors, diff --git a/pr/3514/docs/iroh_relay/server/constant.DEFAULT_CERT_RELOAD_INTERVAL.html b/pr/3514/docs/iroh_relay/server/constant.DEFAULT_CERT_RELOAD_INTERVAL.html index 4a4547fe61..482a296a4f 100644 --- a/pr/3514/docs/iroh_relay/server/constant.DEFAULT_CERT_RELOAD_INTERVAL.html +++ b/pr/3514/docs/iroh_relay/server/constant.DEFAULT_CERT_RELOAD_INTERVAL.html @@ -1,2 +1,2 @@ -DEFAULT_CERT_RELOAD_INTERVAL in iroh_relay::server - Rust

    Constant DEFAULT_CERT_RELOAD_INTERVAL

    Source
    pub const DEFAULT_CERT_RELOAD_INTERVAL: Duration;
    Expand description

    The default certificate reload interval.

    +DEFAULT_CERT_RELOAD_INTERVAL in iroh_relay::server - Rust

    Constant DEFAULT_CERT_RELOAD_INTERVAL

    Source
    pub const DEFAULT_CERT_RELOAD_INTERVAL: Duration;
    Available on crate feature server only.
    Expand description

    The default certificate reload interval.

    \ No newline at end of file diff --git a/pr/3514/docs/iroh_relay/server/enum.Access.html b/pr/3514/docs/iroh_relay/server/enum.Access.html index 765badad3e..a8a0ff02ff 100644 --- a/pr/3514/docs/iroh_relay/server/enum.Access.html +++ b/pr/3514/docs/iroh_relay/server/enum.Access.html @@ -1,7 +1,7 @@ Access in iroh_relay::server - Rust

    Enum Access

    Source
    pub enum Access {
         Allow,
         Deny,
    -}
    Expand description

    Access restriction for a node.

    +}
    Available on crate feature server only.
    Expand description

    Access restriction for a node.

    Variants§

    §

    Allow

    Access is allowed.

    §

    Deny

    Access is denied.

    Trait Implementations§

    Source§

    impl Clone for Access

    Source§

    fn clone(&self) -> Access

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Access

    Source§

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

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

    impl PartialEq for Access

    Source§

    fn eq(&self, other: &Access) -> 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_relay/server/enum.AccessConfig.html b/pr/3514/docs/iroh_relay/server/enum.AccessConfig.html index e49109d4e7..08aab540c6 100644 --- a/pr/3514/docs/iroh_relay/server/enum.AccessConfig.html +++ b/pr/3514/docs/iroh_relay/server/enum.AccessConfig.html @@ -1,7 +1,7 @@ AccessConfig in iroh_relay::server - Rust

    Enum AccessConfig

    Source
    pub enum AccessConfig {
         Everyone,
         Restricted(Box<dyn Fn(NodeId) -> Boxed<Access> + Send + Sync + 'static>),
    -}
    Expand description

    Controls which nodes are allowed to use the relay.

    +}
    Available on crate feature server only.
    Expand description

    Controls which nodes are allowed to use the relay.

    Variants§

    §

    Everyone

    Everyone

    §

    Restricted(Box<dyn Fn(NodeId) -> Boxed<Access> + Send + Sync + 'static>)

    Only nodes for which the function returns Access::Allow.

    Implementations§

    Source§

    impl AccessConfig

    Source

    pub async fn is_allowed(&self, node: NodeId) -> bool

    Is this node allowed?

    diff --git a/pr/3514/docs/iroh_relay/server/enum.CertConfig.html b/pr/3514/docs/iroh_relay/server/enum.CertConfig.html index 514fc65f93..ab88d141cb 100644 --- a/pr/3514/docs/iroh_relay/server/enum.CertConfig.html +++ b/pr/3514/docs/iroh_relay/server/enum.CertConfig.html @@ -6,7 +6,7 @@ certs: Vec<CertificateDer<'static>>, }, Reloading, -}
    Expand description

    TLS certificate configuration.

    +}
    Available on crate feature server only.
    Expand description

    TLS certificate configuration.

    Variants§

    §

    LetsEncrypt

    Use Let’s Encrypt.

    Fields

    §state: AcmeState<EC, EA>

    State for Let’s Encrypt certificates.

    §

    Manual

    Use a static TLS key and certificate chain.

    diff --git a/pr/3514/docs/iroh_relay/server/enum.SpawnError.html b/pr/3514/docs/iroh_relay/server/enum.SpawnError.html index 7594650928..2e362e3f41 100644 --- a/pr/3514/docs/iroh_relay/server/enum.SpawnError.html +++ b/pr/3514/docs/iroh_relay/server/enum.SpawnError.html @@ -29,7 +29,7 @@ backtrace: Option<Backtrace>, span_trace: SpanTrace, }, -}
    Expand description

    Server spawn errors

    +}
    Available on crate feature server only.
    Expand description

    Server spawn errors

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

    LocalAddr

    Fields

    §source: Error
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    QuicSpawn

    Fields

    §source: QuicSpawnError
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    TlsHeaderParse

    Fields

    §source: InvalidHeaderValue
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    BindTlsListener

    Fields

    §source: Error
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    NoLocalAddr

    Fields

    §source: Error
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    BindTcpListener

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace

    Trait Implementations§

    Source§

    impl Debug for SpawnError

    Source§

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

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

    impl Display for SpawnError

    Source§

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

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

    impl Error for SpawnError
    where Self: Debug + Display,

    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 downcasting
    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl ErrorCompat for SpawnError

    Source§

    fn backtrace(&self) -> Option<&Backtrace>

    Returns a [Backtrace][] that may be printed.
    §

    fn iter_chain(&self) -> ChainCompat<'_, '_>
    where Self: AsErrorSource,

    Returns an iterator for traversing the chain of errors, diff --git a/pr/3514/docs/iroh_relay/server/enum.SupervisorError.html b/pr/3514/docs/iroh_relay/server/enum.SupervisorError.html index 6650e2f185..3624ff7f31 100644 --- a/pr/3514/docs/iroh_relay/server/enum.SupervisorError.html +++ b/pr/3514/docs/iroh_relay/server/enum.SupervisorError.html @@ -21,7 +21,7 @@ backtrace: Option<Backtrace>, span_trace: SpanTrace, }, -}
    Expand description

    Server task errors

    +}
    Available on crate feature server only.
    Expand description

    Server task errors

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

    Metrics

    Fields

    §source: Error
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    AcmeEventStreamFinished

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    JoinError

    Fields

    §source: JoinError
    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    NoRelayServicesEnabled

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace
    §

    TaskCancelled

    Fields

    §backtrace: Option<Backtrace>
    §span_trace: SpanTrace

    Trait Implementations§

    Source§

    impl Debug for SupervisorError

    Source§

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

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

    impl Display for SupervisorError

    Source§

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

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

    impl Error for SupervisorError
    where Self: Debug + Display,

    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 downcasting
    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl ErrorCompat for SupervisorError

    Source§

    fn backtrace(&self) -> Option<&Backtrace>

    Returns a [Backtrace][] that may be printed.
    §

    fn iter_chain(&self) -> ChainCompat<'_, '_>
    where Self: AsErrorSource,

    Returns an iterator for traversing the chain of errors, diff --git a/pr/3514/docs/iroh_relay/server/index.html b/pr/3514/docs/iroh_relay/server/index.html index 88a5e864fa..c9e18448b8 100644 --- a/pr/3514/docs/iroh_relay/server/index.html +++ b/pr/3514/docs/iroh_relay/server/index.html @@ -1,4 +1,4 @@ -iroh_relay::server - Rust

    Module server

    Source
    Expand description

    A fully-fledged iroh-relay server over HTTP or HTTPS.

    +iroh_relay::server - Rust

    Module server

    Source
    Available on crate feature server only.
    Expand description

    A fully-fledged iroh-relay server over HTTP or HTTPS.

    This module provides an API to run a full fledged iroh-relay server. It is primarily used by the iroh-relay binary in this crate. It can be used to run a relay server in other locations however.

    @@ -12,4 +12,4 @@ task. Some tasks additionally have a method to do graceful shutdown.

  • HTTPS /ping: Used for net_report probes.
  • HTTPS /generate_204: Used for net_report probes.
  • -

    Modules§

    testing
    Exposes functions to quickly configure a server suitable for testing.

    Structs§

    ClientRateLimit
    Per-client rate limit configuration.
    Limits
    Rate limits.
    Metrics
    Metrics tracked for the relay server
    QuicConfig
    Configuration for the QUIC server.
    RelayConfig
    Configuration for the Relay HTTP and HTTPS server.
    RelayMetrics
    All metrics tracked in the relay server.
    ReloadingResolver
    A Certificate resolver that reloads the certificate every interval
    Server
    A running Relay + QAD server.
    ServerConfig
    Configuration for the full Relay.
    TlsConfig
    TLS configuration for Relay server.

    Enums§

    Access
    Access restriction for a node.
    AccessConfig
    Controls which nodes are allowed to use the relay.
    CertConfig
    TLS certificate configuration.
    SpawnError
    Server spawn errors
    SupervisorError
    Server task errors

    Constants§

    DEFAULT_CERT_RELOAD_INTERVAL
    The default certificate reload interval.
    \ No newline at end of file +

    Modules§

    testingtest-utils
    Exposes functions to quickly configure a server suitable for testing.

    Structs§

    ClientRateLimit
    Per-client rate limit configuration.
    Limits
    Rate limits.
    Metrics
    Metrics tracked for the relay server
    QuicConfig
    Configuration for the QUIC server.
    RelayConfig
    Configuration for the Relay HTTP and HTTPS server.
    RelayMetrics
    All metrics tracked in the relay server.
    ReloadingResolver
    A Certificate resolver that reloads the certificate every interval
    Server
    A running Relay + QAD server.
    ServerConfig
    Configuration for the full Relay.
    TlsConfig
    TLS configuration for Relay server.

    Enums§

    Access
    Access restriction for a node.
    AccessConfig
    Controls which nodes are allowed to use the relay.
    CertConfig
    TLS certificate configuration.
    SpawnError
    Server spawn errors
    SupervisorError
    Server task errors

    Constants§

    DEFAULT_CERT_RELOAD_INTERVAL
    The default certificate reload interval.
    \ No newline at end of file diff --git a/pr/3514/docs/iroh_relay/server/struct.ClientRateLimit.html b/pr/3514/docs/iroh_relay/server/struct.ClientRateLimit.html index c23987f59f..17e2682f74 100644 --- a/pr/3514/docs/iroh_relay/server/struct.ClientRateLimit.html +++ b/pr/3514/docs/iroh_relay/server/struct.ClientRateLimit.html @@ -1,7 +1,7 @@ ClientRateLimit in iroh_relay::server - Rust

    Struct ClientRateLimit

    Source
    pub struct ClientRateLimit {
         pub bytes_per_second: NonZeroU32,
         pub max_burst_bytes: Option<NonZeroU32>,
    -}
    Expand description

    Per-client rate limit configuration.

    +}
    Available on crate feature server only.
    Expand description

    Per-client rate limit configuration.

    Fields§

    §bytes_per_second: NonZeroU32

    Max number of bytes per second to read from the client connection.

    §max_burst_bytes: Option<NonZeroU32>

    Max number of bytes to read in a single burst.

    Trait Implementations§

    Source§

    impl Clone for ClientRateLimit

    Source§

    fn clone(&self) -> ClientRateLimit

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ClientRateLimit

    Source§

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

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

    impl Copy for ClientRateLimit

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where diff --git a/pr/3514/docs/iroh_relay/server/struct.Limits.html b/pr/3514/docs/iroh_relay/server/struct.Limits.html index 9951a14971..bebbd15255 100644 --- a/pr/3514/docs/iroh_relay/server/struct.Limits.html +++ b/pr/3514/docs/iroh_relay/server/struct.Limits.html @@ -2,7 +2,7 @@ pub accept_conn_limit: Option<f64>, pub accept_conn_burst: Option<usize>, pub client_rx: Option<ClientRateLimit>, -}
    Expand description

    Rate limits.

    +}
    Available on crate feature server only.
    Expand description

    Rate limits.

    Fields§

    §accept_conn_limit: Option<f64>

    Rate limit for accepting new connection. Unlimited if not set.

    §accept_conn_burst: Option<usize>

    Burst limit for accepting new connection. Unlimited if not set.

    §client_rx: Option<ClientRateLimit>

    Rate limits for incoming traffic from a client connection.

    diff --git a/pr/3514/docs/iroh_relay/server/struct.Metrics.html b/pr/3514/docs/iroh_relay/server/struct.Metrics.html index 57d6a978e3..f50c272c53 100644 --- a/pr/3514/docs/iroh_relay/server/struct.Metrics.html +++ b/pr/3514/docs/iroh_relay/server/struct.Metrics.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 server only.
    Expand description

    Metrics tracked for the relay server

    Fields§

    §bytes_sent: Counter

    Bytes sent from a FrameType::SendPacket

    §bytes_recv: Counter

    Bytes received from a FrameType::SendPacket

    §send_packets_sent: Counter

    FrameType::SendPacket sent, that are not disco messages

    diff --git a/pr/3514/docs/iroh_relay/server/struct.QuicConfig.html b/pr/3514/docs/iroh_relay/server/struct.QuicConfig.html index 29b609e378..b4ff2f0d68 100644 --- a/pr/3514/docs/iroh_relay/server/struct.QuicConfig.html +++ b/pr/3514/docs/iroh_relay/server/struct.QuicConfig.html @@ -1,7 +1,7 @@ QuicConfig in iroh_relay::server - Rust

    Struct QuicConfig

    Source
    pub struct QuicConfig {
         pub bind_addr: SocketAddr,
         pub server_config: ServerConfig,
    -}
    Expand description

    Configuration for the QUIC server.

    +}
    Available on crate feature server only.
    Expand description

    Configuration for the QUIC server.

    Fields§

    §bind_addr: SocketAddr

    The socket address on which the QUIC server should bind.

    Normally you’d chose port 7842, see crate::defaults::DEFAULT_RELAY_QUIC_PORT.

    §server_config: ServerConfig

    The TLS server configuration for the QUIC server.

    diff --git a/pr/3514/docs/iroh_relay/server/struct.RelayConfig.html b/pr/3514/docs/iroh_relay/server/struct.RelayConfig.html index b0238841df..f2fb8daa54 100644 --- a/pr/3514/docs/iroh_relay/server/struct.RelayConfig.html +++ b/pr/3514/docs/iroh_relay/server/struct.RelayConfig.html @@ -4,7 +4,7 @@ pub limits: Limits, pub key_cache_capacity: Option<usize>, pub access: AccessConfig, -}
    Expand description

    Configuration for the Relay HTTP and HTTPS server.

    +}
    Available on crate feature server only.
    Expand description

    Configuration for the Relay HTTP and HTTPS server.

    This includes the HTTP services hosted by the Relay server, the Relay /relay HTTP endpoint is only one of the services served.

    Fields§

    §http_bind_addr: SocketAddr

    The socket address on which the Relay HTTP server should bind.

    diff --git a/pr/3514/docs/iroh_relay/server/struct.RelayMetrics.html b/pr/3514/docs/iroh_relay/server/struct.RelayMetrics.html index 73786768dc..5efddb38c1 100644 --- a/pr/3514/docs/iroh_relay/server/struct.RelayMetrics.html +++ b/pr/3514/docs/iroh_relay/server/struct.RelayMetrics.html @@ -1,6 +1,6 @@ RelayMetrics in iroh_relay::server - Rust

    Struct RelayMetrics

    Source
    pub struct RelayMetrics {
         pub server: Arc<Metrics>,
    -}
    Expand description

    All metrics tracked in the relay server.

    +}
    Available on crate feature server only.
    Expand description

    All metrics tracked in the relay server.

    Fields§

    §server: Arc<Metrics>

    Metrics tracked for the relay server.

    Trait Implementations§

    Source§

    impl Clone for RelayMetrics

    Source§

    fn clone(&self) -> RelayMetrics

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for RelayMetrics

    Source§

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

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

    impl Default for RelayMetrics

    Source§

    fn default() -> RelayMetrics

    Returns the “default value” for a type. Read more
    Source§

    impl MetricsGroupSet for RelayMetrics

    Source§

    fn name(&self) -> &'static str

    Returns the name of this metrics group set.
    Source§

    fn groups_cloned(&self) -> impl Iterator<Item = Arc<dyn MetricsGroup>>

    Returns an iterator over owned clones of the [MetricsGroup] in this struct.
    Source§

    fn groups(&self) -> impl Iterator<Item = &dyn MetricsGroup>

    Returns an iterator over references to the [MetricsGroup] in this struct.
    §

    fn iter(&self) -> impl Iterator<Item = (&'static str, MetricItem<'_>)>

    Returns an iterator over all metrics in this metrics group set. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where diff --git a/pr/3514/docs/iroh_relay/server/struct.ReloadingResolver.html b/pr/3514/docs/iroh_relay/server/struct.ReloadingResolver.html index f21880ccf6..98cf85ccf9 100644 --- a/pr/3514/docs/iroh_relay/server/struct.ReloadingResolver.html +++ b/pr/3514/docs/iroh_relay/server/struct.ReloadingResolver.html @@ -1,4 +1,4 @@ -ReloadingResolver in iroh_relay::server - Rust

    Struct ReloadingResolver

    Source
    pub struct ReloadingResolver<Loader: Send + 'static> { /* private fields */ }
    Expand description

    A Certificate resolver that reloads the certificate every interval

    +ReloadingResolver in iroh_relay::server - Rust

    Struct ReloadingResolver

    Source
    pub struct ReloadingResolver<Loader: Send + 'static> { /* private fields */ }
    Available on crate feature server only.
    Expand description

    A Certificate resolver that reloads the certificate every interval

    Implementations§

    Source§

    impl<Loader> ReloadingResolver<Loader>
    where Loader: Send + Loader<Value = CertifiedKey> + 'static,

    Source

    pub async fn init( loader: Loader, diff --git a/pr/3514/docs/iroh_relay/server/struct.Server.html b/pr/3514/docs/iroh_relay/server/struct.Server.html index 65b85948d5..3afcf4b331 100644 --- a/pr/3514/docs/iroh_relay/server/struct.Server.html +++ b/pr/3514/docs/iroh_relay/server/struct.Server.html @@ -1,4 +1,4 @@ -Server in iroh_relay::server - Rust

    Struct Server

    Source
    pub struct Server { /* private fields */ }
    Expand description

    A running Relay + QAD server.

    +Server in iroh_relay::server - Rust

    Struct Server

    Source
    pub struct Server { /* private fields */ }
    Available on crate feature server only.
    Expand description

    A running Relay + QAD server.

    This is a full Relay server, including QAD, Relay and various associated HTTP services.

    Dropping this will stop the server.

    Implementations§

    Source§

    impl Server

    Source

    pub async fn spawn<EC, EA>( @@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.

    Source

    pub fn http_addr(&self) -> Option<SocketAddr>

    The socket address the HTTP server is listening on.

    Source

    pub fn quic_addr(&self) -> Option<SocketAddr>

    The socket address the QUIC server is listening on.

    Source

    pub fn certificates(&self) -> Option<Vec<CertificateDer<'static>>>

    The certificates chain if configured with manual TLS certificates.

    -
    Source

    pub fn https_url(&self) -> Option<RelayUrl>

    Get the server’s https RelayUrl.

    +
    Source

    pub fn https_url(&self) -> Option<RelayUrl>

    Available on crate feature test-utils only.

    Get the server’s https RelayUrl.

    This uses Self::https_addr so it’s mostly useful for local development.

    -
    Source

    pub fn http_url(&self) -> Option<RelayUrl>

    Get the server’s http RelayUrl.

    +
    Source

    pub fn http_url(&self) -> Option<RelayUrl>

    Available on crate feature test-utils only.

    Get the server’s http RelayUrl.

    This uses Self::http_addr so it’s mostly useful for local development.

    Source

    pub fn metrics(&self) -> &RelayMetrics

    Returns the metrics collected in the relay server.

    Trait Implementations§

    Source§

    impl Debug for Server

    Source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Server

    §

    impl RefUnwindSafe for Server

    §

    impl Send for Server

    §

    impl Sync for Server

    §

    impl Unpin for Server

    §

    impl UnwindSafe for Server

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where diff --git a/pr/3514/docs/iroh_relay/server/struct.ServerConfig.html b/pr/3514/docs/iroh_relay/server/struct.ServerConfig.html index 969f7b2704..f660a82aa7 100644 --- a/pr/3514/docs/iroh_relay/server/struct.ServerConfig.html +++ b/pr/3514/docs/iroh_relay/server/struct.ServerConfig.html @@ -2,12 +2,12 @@ pub relay: Option<RelayConfig<EC, EA>>, pub quic: Option<QuicConfig>, pub metrics_addr: Option<SocketAddr>, -}
    Expand description

    Configuration for the full Relay.

    +}
    Available on crate feature server only.
    Expand description

    Configuration for the full Relay.

    Be aware the generic parameters are for when using the Let’s Encrypt TLS configuration. If not used dummy ones need to be provided, e.g. ServerConfig::<(), ()>::default().

    Fields§

    §relay: Option<RelayConfig<EC, EA>>

    Configuration for the Relay server, disabled if None.

    §quic: Option<QuicConfig>

    Configuration for the QUIC server, disabled if None.

    -
    §metrics_addr: Option<SocketAddr>

    Socket to serve metrics on.

    +
    §metrics_addr: Option<SocketAddr>
    Available on crate feature metrics only.

    Socket to serve metrics on.

    Trait Implementations§

    Source§

    impl<EC: Debug, EA: Debug> Debug for ServerConfig<EC, EA>
    where Option<RelayConfig<EC, EA>>: Debug,

    Source§

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

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

    impl<EC: Default + Debug, EA: Default + Debug> Default for ServerConfig<EC, EA>

    Source§

    fn default() -> ServerConfig<EC, EA>

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    §

    impl<EC, EA> Freeze for ServerConfig<EC, EA>

    §

    impl<EC, EA = EC> !RefUnwindSafe for ServerConfig<EC, EA>

    §

    impl<EC, EA> Send for ServerConfig<EC, EA>

    §

    impl<EC, EA = EC> !Sync for ServerConfig<EC, EA>

    §

    impl<EC, EA> Unpin for ServerConfig<EC, EA>

    §

    impl<EC, EA = EC> !UnwindSafe for ServerConfig<EC, EA>

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where diff --git a/pr/3514/docs/iroh_relay/server/struct.TlsConfig.html b/pr/3514/docs/iroh_relay/server/struct.TlsConfig.html index 6b2502fb27..fca4c356d8 100644 --- a/pr/3514/docs/iroh_relay/server/struct.TlsConfig.html +++ b/pr/3514/docs/iroh_relay/server/struct.TlsConfig.html @@ -3,7 +3,7 @@ pub quic_bind_addr: SocketAddr, pub cert: CertConfig<EC, EA>, pub server_config: ServerConfig, -}
    Expand description

    TLS configuration for Relay server.

    +}
    Available on crate feature server only.
    Expand description

    TLS configuration for Relay server.

    Normally the Relay server accepts connections on both HTTPS and HTTP.

    Fields§

    §https_bind_addr: SocketAddr

    The socket address on which to serve the HTTPS server.

    Since the captive portal probe has to run over plain text HTTP and TLS is used for diff --git a/pr/3514/docs/iroh_relay/server/testing/fn.quic_config.html b/pr/3514/docs/iroh_relay/server/testing/fn.quic_config.html index 168c71ee81..691906d838 100644 --- a/pr/3514/docs/iroh_relay/server/testing/fn.quic_config.html +++ b/pr/3514/docs/iroh_relay/server/testing/fn.quic_config.html @@ -1,4 +1,4 @@ -quic_config in iroh_relay::server::testing - Rust

    Function quic_config

    Source
    pub fn quic_config() -> QuicConfig
    Expand description

    Creates a QuicConfig suitable for testing.

    +quic_config in iroh_relay::server::testing - Rust

    Function quic_config

    Source
    pub fn quic_config() -> QuicConfig
    Available on crate features server and test-utils only.
    Expand description

    Creates a QuicConfig suitable for testing.

    • Binds to an OS assigned port on ipv4
    • Uses self_signed_tls_certs_and_config to create tls certificates
    • diff --git a/pr/3514/docs/iroh_relay/server/testing/fn.relay_config.html b/pr/3514/docs/iroh_relay/server/testing/fn.relay_config.html index abc9811244..6e1a5b2d48 100644 --- a/pr/3514/docs/iroh_relay/server/testing/fn.relay_config.html +++ b/pr/3514/docs/iroh_relay/server/testing/fn.relay_config.html @@ -1,4 +1,4 @@ -relay_config in iroh_relay::server::testing - Rust

      Function relay_config

      Source
      pub fn relay_config() -> RelayConfig<()>
      Expand description

      Creates a RelayConfig suitable for testing.

      +relay_config in iroh_relay::server::testing - Rust

      Function relay_config

      Source
      pub fn relay_config() -> RelayConfig<()>
      Available on crate features server and test-utils only.
      Expand description

      Creates a RelayConfig suitable for testing.

      • Binds http to an OS assigned port on ipv4.
      • Uses tls_config to enable TLS.
      • diff --git a/pr/3514/docs/iroh_relay/server/testing/fn.self_signed_tls_certs_and_config.html b/pr/3514/docs/iroh_relay/server/testing/fn.self_signed_tls_certs_and_config.html index 5cf4aac276..5f73f52b19 100644 --- a/pr/3514/docs/iroh_relay/server/testing/fn.self_signed_tls_certs_and_config.html +++ b/pr/3514/docs/iroh_relay/server/testing/fn.self_signed_tls_certs_and_config.html @@ -1,4 +1,4 @@ -self_signed_tls_certs_and_config in iroh_relay::server::testing - Rust

        Function self_signed_tls_certs_and_config

        Source
        pub fn self_signed_tls_certs_and_config() -> (Vec<CertificateDer<'static>>, ServerConfig)
        Expand description

        Creates a [rustls::ServerConfig] and certificates suitable for testing.

        +self_signed_tls_certs_and_config in iroh_relay::server::testing - Rust

        Function self_signed_tls_certs_and_config

        Source
        pub fn self_signed_tls_certs_and_config() -> (Vec<CertificateDer<'static>>, ServerConfig)
        Available on crate features server and test-utils only.
        Expand description

        Creates a [rustls::ServerConfig] and certificates suitable for testing.

        • Uses a self signed certificate valid for the "localhost" and "127.0.0.1" domains.
        diff --git a/pr/3514/docs/iroh_relay/server/testing/fn.server_config.html b/pr/3514/docs/iroh_relay/server/testing/fn.server_config.html index a98fb743a1..2f4aaaa827 100644 --- a/pr/3514/docs/iroh_relay/server/testing/fn.server_config.html +++ b/pr/3514/docs/iroh_relay/server/testing/fn.server_config.html @@ -1,4 +1,4 @@ -server_config in iroh_relay::server::testing - Rust

        Function server_config

        Source
        pub fn server_config() -> ServerConfig<()>
        Expand description

        Creates a ServerConfig suitable for testing.

        +server_config in iroh_relay::server::testing - Rust

        Function server_config

        Source
        pub fn server_config() -> ServerConfig<()>
        Available on crate features server and test-utils only.
        Expand description

        Creates a ServerConfig suitable for testing.

        • Relaying is enabled using relay_config
        • QUIC addr discovery is disabled.
        • diff --git a/pr/3514/docs/iroh_relay/server/testing/fn.tls_config.html b/pr/3514/docs/iroh_relay/server/testing/fn.tls_config.html index 7e45582169..3c20a1f44a 100644 --- a/pr/3514/docs/iroh_relay/server/testing/fn.tls_config.html +++ b/pr/3514/docs/iroh_relay/server/testing/fn.tls_config.html @@ -1,4 +1,4 @@ -tls_config in iroh_relay::server::testing - Rust

          Function tls_config

          Source
          pub fn tls_config() -> TlsConfig<()>
          Expand description

          Creates a TlsConfig suitable for testing.

          +tls_config in iroh_relay::server::testing - Rust

          Function tls_config

          Source
          pub fn tls_config() -> TlsConfig<()>
          Available on crate features server and test-utils only.
          Expand description

          Creates a TlsConfig suitable for testing.

          • Uses a self signed certificate valid for the "localhost" and "127.0.0.1" domains.
          • Configures https to be served on an OS assigned port on ipv4.
          • diff --git a/pr/3514/docs/iroh_relay/server/testing/index.html b/pr/3514/docs/iroh_relay/server/testing/index.html index 26d62aae1d..1cb3943202 100644 --- a/pr/3514/docs/iroh_relay/server/testing/index.html +++ b/pr/3514/docs/iroh_relay/server/testing/index.html @@ -1,2 +1,2 @@ -iroh_relay::server::testing - Rust

            Module testing

            Source
            Expand description

            Exposes functions to quickly configure a server suitable for testing.

            +iroh_relay::server::testing - Rust

            Module testing

            Source
            Available on crate features server and test-utils only.
            Expand description

            Exposes functions to quickly configure a server suitable for testing.

            Functions§

            quic_config
            Creates a QuicConfig suitable for testing.
            relay_config
            Creates a RelayConfig suitable for testing.
            self_signed_tls_certs_and_config
            Creates a [rustls::ServerConfig] and certificates suitable for testing.
            server_config
            Creates a ServerConfig suitable for testing.
            tls_config
            Creates a TlsConfig suitable for testing.
            \ No newline at end of file diff --git a/pr/3514/docs/search.desc/iroh/iroh-desc-0-.js b/pr/3514/docs/search.desc/iroh/iroh-desc-0-.js index 445256dbbb..964870bca1 100644 --- a/pr/3514/docs/search.desc/iroh/iroh-desc-0-.js +++ b/pr/3514/docs/search.desc/iroh/iroh-desc-0-.js @@ -1 +1 @@ -searchState.loadedDescShard("iroh", 0, "Peer-to-peer QUIC connections.\nError when decoding.\nThe encoded information had the wrong length.\nError when decoding the public key.\nError when deserialising a PublicKey or a SecretKey.\nThe length of an ed25519 PublicKey, in bytes.\nNetwork-level addressing information for an iroh node.\nThe identifier for a node in the (iroh) network.\nA public key.\nConfiguration of all the relay servers that can be used.\nInformation on a specific relay server.\nA URL identifying a relay server.\nCan occur when parsing a string into a RelayUrl.\nA secret key.\nThe type of value that can change.\nA handle to a value that’s represented by one or more …\nGet this public key as a byte array.\nIs this a known node?\nDefault values used in iroh\nReturns the direct addresses of this peer.\nSocket addresses where the peer might be reached directly.\nNode address discovery.\nThis module exports a DNS resolver, which is also the …\nCreate an empty relay map.\nThe Endpoint allows establishing connections to other iroh …\nConvert to a hex string limited to the first 5 bytes for a …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the addressing info from given ticket.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a RelayMap from a RelayUrl.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConstruct a PublicKey from a slice of bytes.\nCreate a secret key from its byte representation.\nCreates a RelayMap from an iterator of RelayUrl.\nCreates a new NodeAddr from its parts.\nGenerate a new SecretKey with a randomness generator.\nReturns the current state of the underlying value.\nGet the given node.\nReturns a future completing once the value is set to Some …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether this watcher is still connected to all of its …\nReturns true, if only a NodeId is present.\nAre there any nodes in this map?\nHow many nodes are known?\nMaps this watcher with a function that transforms the …\nCo-locating all of the iroh metrics structs\nChecks the network conditions from the current host.\nCreates a new NodeAddr with no relay_url and no …\nThe node’s identifier.\nSupport for handling DNS resource records for dialing by …\nReturns an Iterator over all known nodes.\nReturns a watcher that updates every time this or the …\nPolls for the next value, or returns Disconnected if one …\nTools for spawning an accept loop that routes incoming …\nReturns the VerifyingKey for this PublicKey.\nThe public key of this SecretKey.\nConfiguration to speak to the QUIC endpoint on the relay …\nReturns the relay url of this peer.\nThe node’s home relay url.\nReturns the SigningKey for this SecretKey.\nSign the given message and return a digital signature\nReturns a stream which will yield the most recent values …\nReturns a stream which will yield the most recent values …\nInternal utilities to support testing.\nConvert this to the bytes representing the secret part. …\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nReturns a future completing with Ok(value) once a new …\nThe RelayUrl where this relay server can be dialed.\nReturns the sorted relay URLs.\nVerify a signature on a message with this secret key’s …\nAdds the given direct addresses.\nAdds a relay url.\nThe default HTTPS port used by the Relay server.\nThe default HTTP port used by the Relay server.\nThe default metrics port used by the Relay server.\nThe default QUIC port used by the Relay server to accept …\nProduction configuration.\nStaging configuration.\nHostname of the default Asia-Pacific relay.\nHostname of the default EU relay.\nHostname of the default NA relay.\nGet the default RelayNode for Asia-Pacific\nGet the default RelayNode for EU.\nGet the default RelayNode for NA.\nGet the default RelayMap.\nHostname of the default EU relay.\nHostname of the default NA relay.\nGet the default RelayNode for EU.\nGet the default RelayNode for NA.\nGet the default RelayMap.\nA discovery service that combines multiple discovery …\nNode discovery for super::Endpoint.\nContext about the Endpoint for discovery services.\nDiscovery errors\nNode discovery results from Discovery services.\nTrait for structs that can be converted into Discovery.\nIntoDiscovery errors\nThe max byte length allowed for user-defined data.\nData about a node that may be published to and resolved …\nInformation about a node that may be published to and …\nUnder the hood this is a UTF-8 String is no longer than …\nAdds a Discovery service.\nAdds direct addresses to the node data.\nRemoves all direct addresses from the node data.\nThe information published about the node.\nReturns the direct addresses of the node.\nDNS node discovery for iroh\nReturns the DnsResolver used by the endpoint.\nCreates an empty ConcurrentDiscovery.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new user error from an arbitrary error type.\nCreates a new user error from an arbitrary error type.\nCreates a new user error from an arbitrary boxed error …\nCreates a new user error from an arbitrary boxed error …\nCreates a new NodeInfo from its parts.\nParses a NodeInfo from a pkarr::SignedPacket.\nCreates a new ConcurrentDiscovery.\nParses a NodeInfo from DNS TXT lookup.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nTurns this discovery builder into a ready-to-use discovery …\nConverts into a NodeAddr without cloning.\nConverts into a NodeAddr without cloning.\nIs there any services configured?\nReturns the optional timestamp when this node info was …\nHow many services are configured\nA discovery service that uses an mdns-like service to …\nCreates a new NodeData with a relay URL and a set of …\nCreates a new NodeInfo with an empty NodeData.\nCreates a new DiscoveryItem from a NodeInfo.\nReturns the NodeId of the endpoint.\nReturns the node id of the discovered node.\nThe NodeId of the node this is about.\nReturns the NodeInfo for the discovered node.\nA discovery service which publishes and resolves node …\nReturns the provenance of this discovery item.\nPublishes the given NodeData to the discovery mechanism.\nReturns the relay URL of the node.\nResolves the DiscoveryItem for the given NodeId.\nReturns the SecretKey of the endpoint.\nSets the relay URL of the node data.\nSets the user-defined data of the node data.\nA static node discovery to manually add node addressing …\nConverts into a NodeAddr by cloning the needed fields.\nConverts into a NodeAddr by cloning the needed fields.\nCreates a pkarr::SignedPacket.\nConverts into a list of {key}={value} strings.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nReturns the optional user-defined data of the node.\nReturns any user-defined data.\nSets the direct addresses and returns the updated node …\nSets the direct addresses and returns the updated node …\nSets the relay URL and returns the updated node data.\nSets the relay URL and returns the updated node info.\nSets the user-defined data and returns the updated node …\nSets the user-defined data and returns the updated node …\nDNS node discovery\nBuilder for DnsDiscovery.\nThe n0 testing DNS node origin, for production.\nThe n0 testing DNS node origin, for testing.\nBuilds a DnsDiscovery with the passed DnsResolver.\nCreates a DnsDiscoveryBuilder that implements IntoDiscovery…\nSets the DNS resolver to use.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCreates a new DNS discovery using the iroh.link domain.\nA peer was discovered or it’s information was updated.\nAn event emitted from the MdnsDiscovery service.\nA peer was expired due to being inactive, unreachable, or …\nDiscovery using swarm-discovery, a variation on mdns\nBuilder for MdnsDiscovery.\nName of this discovery service.\nSets whether this node should advertise its presence.\nBuilds an MdnsDiscovery instance with the configured …\nReturns a MdnsDiscoveryBuilder that implements …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nSets a custom service name.\nSubscribe to discovered nodes\nOptional timestamp when this node address info was last …\nThe id of the node that expired.\nThe node info for the node, as discovered.\nDefault TTL for the records in the pkarr signed packet.\nInterval in which to republish the node info even if …\nThe production pkarr relay run by number 0.\nThe testing pkarr relay run by number 0.\nPublisher of node discovery information to a pkarr relay.\nBuilder for PkarrPublisher.\nA pkarr client to publish pkarr::SignedPackets to a pkarr …\nResolver of node discovery information from a pkarr relay.\nBuilder for PkarrResolver.\nBuilds the PkarrPublisher with the passed secret key for …\nCreates a PkarrResolver from this builder.\nReturns a PkarrPublisherBuilder that publishes node info …\nCreates a new resolver builder using the pkarr relay …\nPkarr based node discovery for iroh, supporting both relay …\nSets the DNS resolver to use for resolving the pkarr relay …\nSets the DNS resolver to use for resolving the pkarr relay …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCreates a pkarr publisher which uses the number 0 pkarr …\nCreates a pkarr resolver builder which uses the number 0 …\nCreates a new client.\nPublishes a SignedPacket.\nSets the interval after which packets are republished even …\nResolves a SignedPacket for the given NodeId.\nToString::to_string, but without panic on OOM.\nSets the TTL (time-to-live) for published packets.\nPublishes the addressing information about this node to a …\nCreates a new client while passing a DNS resolver to use.\nBuilder for DhtDiscovery.\nPkarr Mainline DHT and relay server node discovery.\nBuilds the discovery mechanism.\nCreates a new builder for DhtDiscovery.\nExplicitly sets the pkarr client to use.\nSets whether to publish to the Mainline DHT.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSets whether to include the direct addresses in the DNS …\nCalls U::from(self).\nCalls U::from(self).\nUses the default number 0 pkarr relay URL.\nDisables publishing even if a secret key is set.\nSets the pkarr relay URL to use.\nSets the republish delay for the DHT.\nSets the secret key to use for signing the DNS packets.\nSets the time-to-live value for the DNS packets.\nThe provenance string for this discovery implementation.\nA static node discovery to manually add node addressing …\nAugments node addressing information for the given node ID.\nReturns the argument unchanged.\nCreates a static discovery instance from node addresses.\nReturns node addressing information for the given node ID.\nCalls U::from(self).\nCreates a new static discovery instance.\nRemoves all node addressing information for the given node …\nSets node addressing information for the given node ID.\nThe DNS resolver used throughout iroh.\nThe n0 testing DNS node origin, for production.\nThe n0 testing DNS node origin, for testing.\nCreates a builder to construct a DNS resolver with custom …\nRemoves all entries from the cache.\nCreates a new DnsResolver from a struct that implements …\nReturns the argument unchanged.\nCalls U::from(self).\nPerforms an IPv4 lookup with a timeout.\nResolves IPv4 and IPv6 in parallel with a timeout.\nRaces an IPv4 and IPv6 lookup with a timeout in a …\nPerforms an IPv4 lookup with a timeout in a staggered …\nPerforms an IPv6 lookup with a timeout.\nPerforms an IPv6 lookup with a timeout in a staggered …\nLooks up node info by DNS name.\nLooks up node info by DNS name in a staggered fashion.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by NodeId and origin domain name.\nLooks up a TXT record.\nCreates a new DNS resolver with sensible cross-platform …\nRecreates the inner resolver.\nResolves a hostname from a URL to an IP address.\nCreates a new DNS resolver configured with a single UDP …\nthe endpoint has reached the confidentiality or integrity …\nthe application or application protocol caused the …\nFuture produced by Endpoint::accept.\nFuture produced by Connection::accept_bi\nFuture produced by Connection::accept_uni\nParameters for controlling the peer’s acknowledgement …\nA key for sealing data with AEAD-based algorithms\nUses all available paths\nApplication layer added the address directly.\nReason given by an application for closing the connection\nThe peer closed the connection\nBuilder for Endpoint.\nthe number of connection IDs provided by the peer exceeds …\nthe server refused to accept a new connection\nreceived more data in CRYPTO frames than can be buffered\nWe received a CallMeMaybe.\nA chunk of data from the receive stream\nThe connection could not be created because not enough of …\nError indicating that a stream has not been opened or has …\nThe stream has already been stopped, finished, or reset\nThe stream has already been finished or reset\nOptions for the Endpoint::connect_with_opts function.\nIn-progress connection attempt future\nA QUIC connection.\nReason given by the transport for closing the connection\nThe peer’s QUIC stack aborted the connection …\nReasons why a connection might be lost\nThe connection was lost\nThe connection was lost\nThe connection was lost\nThe connection was lost\nThe connection was lost\nConnection statistics\nThe type of connection we have to the endpoint.\nThe type of control message we have received.\nCommon interface for different congestion controllers\nConstructs controllers on demand\nGeneric crypto errors\nServer-side configuration for the crypto protocol\nUse a custom relay map.\nUse the default relay map, with production relay servers …\nDirect UDP connection\nA direct address on which an iroh-node might be …\nInformation about a direct address.\nThe type of direct address.\nDatagram support is disabled locally\nDisable relay servers completely.\nThe address was discovered by a discovery service.\nEnvironment variable to force the use of staging relays.\nControls an iroh node, establishing connections with other …\nError returned by Session::export_keying_material.\nreceived a STREAM frame or a RESET_STREAM frame containing …\nreceived more data than permitted in advertised data limits\nreceived a frame that was badly formatted\nThe stream finished before all bytes were read\nNumber of frames transmitted of each frame type\nA pseudo random key for HKDF\nthe endpoint encountered an internal error and cannot …\nreceived an invalid Retry Token in a client Initial\nAttempted an ordered read following an unordered read\nAn incoming connection for which the server has not yet …\nAdaptor to let Incoming be awaited like a Connecting.\nkey update error\nA locally bound socket address.\nThe local application closed the connection\nThe largest representable value\nThe largest encoded value length\nBoth a UDP and a relay connection are used.\nParameters governing MTU discovery.\nthe connection is being closed abruptly in the absence of …\nno viable network path exists\nApplication layer with a specific name added the node …\nWe have no verified connection to this PublicKey\nFuture produced by Connection::open_bi\nFuture produced by Connection::open_uni\ndetected an error with protocol compliance that was not …\nDefines the mode of path selection for all traffic flowing …\nStatistics related to a transmission path\nWe received a Ping from the node.\nWe received a Pong from the node.\nAn address assigned by the router using port mapping.\nPublic internet address discovered via QAD.\nHard NAT: QAD’ed IPv4 address + local fixed port.\nAn error occurred during reading\nFuture produced by Connection::read_datagram\nErrors that arise from reading from a stream.\nA read error occurred\nErrors that arise from reading from a stream.\nErrors from RecvStream::read_to_end\nA stream that can only be used to receive data\nRelay connection over relay\nA node communicated with us first via relay.\nConfiguration of the relay servers for an Endpoint.\nForces all traffic to go exclusively through relays\nThe peer abandoned transmitting data on this stream\nThe peer is unable to continue processing this connection, …\nErrors that arise while waiting for a stream to be reset\nError for attempting to retry an Incoming which already …\nreceived a frame for a stream identifier that exceeded …\nreceived a frame for a stream that was not in a state that …\nAddress was loaded from the fs.\nErrors that can arise when sending a datagram\nA stream that can only be used to send data\nParameters governing incoming connections\nThe origin or source through which an address associated …\nUse the staging relay servers from n0.\nThe peer is no longer accepting data on this stream\nErrors that arise while monitoring for a send stream stop …\nIdentifier for a stream within a particular connection\nreceived transport parameters that were badly formatted, …\nCommunication with the peer has lapsed for longer than the …\nThe datagram is larger than the connection can currently …\nThe stream is larger than the user-supplied limit\nParameters governing the core QUIC state machine\nTransport-level errors occur when a peer violates the …\nThe peer violated the QUIC specification as understood by …\nTransport-level error code\nA node communicated with us first via UDP.\nStatistics about UDP datagrams transmitted or received on …\nNot yet determined..\nThe peer does not support receiving datagram frames\nError indicating that the specified QUIC version is not …\nAn integer less than 2^62\nThe peer doesn’t implement any supported version\nA handle to some connection internals, use with care.\nErrors that arise from writing to a stream\nIndicates how many bytes and chunks had been transferred …\nFuture that completes when a connection is fully …\nThis was a 0-RTT stream and the server rejected it\nThis was a 0-RTT stream and the server rejected it\nThis was a 0-RTT stream and the server rejected it\nThis was a 0-RTT stream and the server rejected it\nAccepts an incoming connection on the endpoint.\nAttempts to accept this incoming connection (an error may …\nAccept the next incoming bidirectional stream.\nAccepts the next incoming uni-directional stream.\nAccepts this incoming connection using a custom …\nThe ack-eliciting threshold we will request the peer to use\nSpecifies the ACK frequency config (see AckFrequencyConfig …\nAdds a discovery mechanism for this endpoint.\nInforms this Endpoint about addresses of the iroh node, …\nThe UDP address reported by the remote node.\nThe address.\nDerive AEAD using hkdf\nWhether the implementation is permitted to set the spin …\nExtracts the ALPN protocol from the peer’s handshake …\nExtracts the ALPN protocol from the peer’s handshake …\nSets the ALPN protocols that this endpoint will accept on …\nBinds the magic endpoint.\nSets the IPv4 bind address.\nSets the IPv6 bind address.\nSpecifies the amount of time that MTU discovery should …\nThe number of times a black hole was detected in the path\nReturns the local socket addresses on which the underlying …\nConstruct a fresh Controller\nReturns the builder for an Endpoint, with a production …\nThe contents of the chunk\nThe total amount of bytes which have been transferred …\nThe amount of bytes which had been written\nThe amount of full chunks which had been written\nRemoves all discovery services from the builder.\nDuplicate the controller’s state\nCloses the QUIC endpoint and the magic socket.\nCloses the connection immediately.\nIf the connection is closed, the reason why.\nWait for the connection to be closed for any reason.\nType of error\nHow to construct new congestion::Controllers\nCongestion events on the connection\nCurrent state of the congestion control algorithm, for …\nReturns a Watcher that reports the current connection type …\nConnects to a remote Endpoint.\nStarts a connection attempt with a remote Endpoint.\nCreate QUIC error code from TLS alert code\nTLS configuration used for incoming connections\nMaximum quantity of out-of-order crypto layer data to …\nLargest UDP payload size the path currently supports\nCurrent congestion window of the connection\nMaximum number of incoming application datagram bytes to …\nMaximum number of outgoing application datagram bytes to …\nBytes available in the outgoing datagram buffer.\nThe amount of UDP datagrams observed\nReturns the default relay mode.\nWhich directions data flows in\nOptionally sets a discovery mechanism for this endpoint.\nReturns the discovery mechanism, if configured.\nConfigures the endpoint to also use the mainline DHT with …\nConfigures the endpoint to also use local network …\nConfigures the endpoint to use the default n0 DNS …\nOptionally sets a custom DNS resolver to use for this …\nReturns the DNS resolver used in this Endpoint.\nWhether to use “Generic Segmentation Offload” to …\nClass of error as encoded in the specification\nApplication-specific reason code\nDerives keying material from this connection’s TLS …\nNotify the peer that no more data will ever be written to …\nReturns true if the use of staging relays is forced.\nFrame type that triggered the error\nStatistics about frames received on a connection\nStatistics about frames transmitted on a connection\nType of frame that caused the close\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConstruct a VarInt infallibly\nSucceeds iff x < 2^62\nCreate a VarInt without ensuring it’s in range\nParameters negotiated during the handshake\nParameters negotiated during the handshake.\nGet the identity of this stream\nGet the identity of this stream\nIgnores this incoming connection attempt, not sending any …\nMaximum number of received bytes to buffer for each …\nMaximum number of received bytes to buffer for all Incoming\nDistinguishes streams of the same initiator and …\nCreate the initial set of keys given the client’s …\nThe initial value to be used as the maximum UDP payload …\nThe RTT used before an RTT sample is taken\nInitial congestion window\nWhich side of a connection initiated the stream\nSkip verification of SSL certificates from relay servers\nSpecifies the time to wait after completing MTU discovery …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nConverts this Connecting into a 0-RTT or 0.5-RTT …\nReturns Self for use in down-casting to extract …\nGet the Incoming\nExtract the integer value\nThe amount of I/O operations executed\nCheck if this stream has been opened during 0-RTT.\nReturns true if the Connection associated with this handle …\nCheck if this endpoint is still alive, or already closed.\nPeriod of inactivity before sending a keep-alive packet\nEnables saving the TLS pre-master key for connections.\nElapsed time since this network path was known to exist.\nLast control message received by this node about this …\nElapsed time since the last payload message was received …\nReturns the currently lowest latency for this node.\nThe latency to the remote node over this network path.\nReturns the local IP address which was used when the peer …\nThe amount of bytes lost on this path\nThe amount of packets lost on this path\nThe amount of PLPMTUD probe packets lost on this path …\nThe max_ack_delay we will request the peer to use\nMaximum number of incoming bidirectional streams that may …\nVariant of max_concurrent_bidi_streams affecting …\nComputes the maximum size of datagrams that may be passed …\nMaximum duration of inactivity to accept before timing out …\nMaximum number of Incoming to allow to exist at a time\nSet the maximum number of TLS tickets to cache.\nReturns metrics collected for this endpoint.\nWhether to allow clients to migrate to new addresses\nThe maximum UDP payload size guaranteed to be supported by …\nSpecifies the minimum MTU change to stop the MTU discovery …\nSpecifies the MTU discovery config (see MtuDiscoveryConfig …\nNotifies the system of potential network changes.\nResets path-specific state.\nCreate a default config with a particular handshake token …\nCreate a new StreamId\nInitializes new connection options.\nReturns the current NodeAddr. As long as the endpoint was …\nReturns the node id of this endpoint.\nThe offset in the stream\nPacket deliveries were confirmed\nPackets were deemed lost or marked congested\nPackets are acked in batches, all with the same now …\nThe known MTU for the current network path has been updated\nOne or more packets were just sent\nA convenience method that waits for the endpoint to be …\nMethod for opening a sealed message data\nInitiates a new outgoing bidirectional stream.\nInitiates a new outgoing unidirectional stream.\nMaximum reordering in packet number space before FACK …\nStatistics related to the current transmission path\nThis implies we only use the relay to communicate and do …\nCryptographic identity of the peer.\nNumber of consecutive PTOs after which network is …\nAttempts to read from the stream into buf.\nAttempt to write bytes from buf into the stream.\nThe preferred IPv4 address that will be communicated to …\nThe preferred IPv6 address that will be communicated to …\nGet the priority of the send stream\nSets the proxy url from the environment, in this order:\nSets an explicit proxy url to proxy all HTTP(S) traffic …\nRead data contiguously from the stream.\nRead the next segment of data\nRead the next segments of data\nReceives an application datagram.\nRead an exact number of bytes contiguously from the stream.\nConvenience method to read all remaining data into a buffer\nHuman-readable reason for the close\nHuman-readable reason for the close\nHuman-readable explanation of the reason\nWhether to receive observed address reports from other …\nMaximum number of bytes the peer may transmit across all …\nCompletes when the stream has been reset by the peer or …\nRejects this incoming connection attempt.\nReturns the relay map for this mode.\nSets the relay servers to assist in establishing …\nReturns the peer’s UDP address.\nWhether the socket address that is initiating this …\nReturns the NodeId from the peer’s TLS certificate.\nThe reordering threshold we will request the peer to use\nClose the send stream immediately.\nResponds with a retry packet.\nGenerate the integrity tag for a retry packet\nDuration after a retry token was issued for which it’s …\nCurrent best estimate of this connection’s latency …\nCurrent best estimate of this connection’s latency …\nSaturating integer addition. Computes self + rhs, …\nMethod for sealing message data\nSets a secret key to authenticate with other peers.\nReturns the secret_key of this endpoint.\nTransmits data as an unreliable, unordered application …\nWhether to implement fair queuing for send streams having …\nWhether to send observed address reports to peers.\nMaximum number of bytes to transmit to a peer without …\nThe amount of packets sent on this path\nThe amount of PLPMTUD probe packets sent on this path …\nSets the list of accepted ALPN protocols.\nModifies the number of bidirectional streams that may be …\nModifies the number of unidirectional streams that may be …\nSet the priority of the send stream\nSee quinn_proto::TransportConfig::receive_window.\nSets the initial user-defined data to be published in …\nA HashMap of Sources to Durations.\nA stable identifier for this connection.\nStart a server session with this configuration\nReturns connection statistics.\nStop accepting data\nCompletes when the peer stops the stream or reads the …\nMaximum number of bytes the peer may transmit without …\nObject to get current SystemTime\nMaximum reordering in time space before time based loss …\nPrivate key used to authenticate data included in …\nTransport configuration to use for incoming connections\nSet a custom TransportConfig\nSets a custom quinn::TransportConfig for this endpoint.\nSucceeds iff x < 2^62\nSucceeds iff x < 2^62\nSucceeds iff x < 2^62\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nThe origin of this direct address.\nStatistics about UDP datagrams received on a connection\nStatistics about UDP datagrams transmitted on a connection\nSpecifies the upper bound to the max UDP payload size that …\nSets the initial user-defined data to be published in …\nConfiguration for sending and handling validation tokens\nSet a custom ValidationTokenConfig\nReturns a Watcher for the current NodeAddr for this …\nNumber of ack-eliciting bytes that may be in flight\nSets ALPN identifiers that should be signaled as supported …\nCreate a server config with the given crypto::ServerConfig\nCreate a server config with the given certificate chain to …\nSets the QUIC transport config options for this connection.\nWrite bytes to the stream\nConvenience method to write an entire buffer to the stream\nConvenience method to write an entire list of chunks to …\nConvenience method to write a single chunk in its entirety …\nWrite chunks to the stream\nThe name of the discovery service that discovered the …\nThe name of the application that added the node\nMetrics collected by an crate::endpoint::Endpoint.\nEnum of metrics for the module\nEnum of metrics for the module\nMetrics tracked for the relay server\nNumber of times this server has accepted a connection.\nBytes received from a FrameType::SendPacket\nNumber of bytes received from client connection which have …\nBytes sent from a FrameType::SendPacket\nNumber of connections with a successful handshake that …\nNumber of connections with a successful handshake.\nNumber of client connections which have had any frames …\nFrameType::SendPacket dropped that are disco messages\nFrameType::SendPacket received that are disco messages\nFrameType::SendPacket sent that are disco messages\nNumber of connections we have removed because of an error\nNumber of times the external address obtained via port …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nNumber of FrameType::Pings received\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nNumber of updates to the local port.\nMetrics collected by the endpoint’s socket.\nNumber of mapping tasks started.\nNumber of failed mapping tasks.\nMetrics collected by net reports.\nNumber of nodes we have attempted to contact.\nNumber of nodes we have managed to contact directly.\nThe number of direct connections we have made to peers.\nThe number of direct connections we have lost to peers.\nThe number of connections to peers we have added over …\nThe number of connections to peers we have removed over …\nPackets of other FrameTypes dropped\nPackets of other FrameTypes received\nPackets of other FrameTypes sent\nNumber of consecutive failure resets (path recovered).\nNumber of times a path was marked as outdated due to …\nHistogram of packet loss rates (0.0-1.0) observed on UDP …\nNumber of ping failures recorded across all paths.\nHistogram of path quality scores (0.0-1.0).\nHistogram of RTT variance (in milliseconds) as a …\nNumber of PCP probes that found it available.\nNumber of PCP probes executed.\nMetrics collected by the portmapper service.\nNumber of probing tasks started.\nNumber of QUIC datagrams received.\nNumber of datagrams received using GRO\nFrameType::SendPacket dropped, that are not disco messages\nFrameType::SendPacket received, that are not disco messages\nFrameType::SendPacket sent, that are not disco messages\nNumber of FrameType::Pongs sent\nNumber of unique client keys per day\nNumber of FrameType::Unknown received\nNumber of UPnP probes that found it available.\nNumber of UPnP probes that resulted in a gateway different …\nNumber of UPnP probes executed.\nNumber of failed Upnp probes.\nHTTPS\nEnum of metrics for the module\nOptions for running probes\nThe protocol used to time a node’s latency.\nQUIC Address Discovery Ipv4\nQUIC Address Discovery Ipv6\nPieces needed to do QUIC address discovery.\nLatencies per relay node.\nA net_report report.\nThe maximum amount of time, in seconds, the net_report …\nTurn the options into set of valid protocols\nCaptivePortal is set when we think there’s a captive …\nA client config.\nCreate an Options that disables all probes\nA QUIC Endpoint\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nip:port of global IPv4\n[ip]:port of global IPv6\nDo we have any indication that UDP is working?\nEnable or disable https probe\nSkip cert verification\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nEnable ipv4 QUIC address discovery probes\nEnable ipv6 QUIC address discovery probes\nReturns an iterator over all the relays and their …\nWhether the reported public address differs when probing …\nWhether the reported public address differs when probing …\nWhether the reported public address differs when probing …\nProbe indicating the presence of port mapping protocols on …\nEnable quic probes\nkeyed by relay Url\nNumber of reports executed by net_report, including full …\nNumber of full reports executed by net_report\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nA QAD IPv4 round trip completed.\nA QAD IPv6 round trip completed.\nThe DNS name for the iroh TXT record.\nError returned when an input value is too long for UserData…\nData about a node that may be published to and resolved …\nExtension methods for NodeId to encode to and decode from …\nInformation about a node that may be published to and …\nUnder the hood this is a UTF-8 String is no longer than …\nThe information published about the node.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nParses a NodeId from z-base-32 encoding.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nThe NodeId of the node this is about.\nEncodes a NodeId in z-base-32 encoding.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nWraps an existing protocol, limiting its access, based on …\nA dyn-compatible version of ProtocolHandler that returns …\nHandler for incoming connections.\nThe built router.\nBuilder for creating a Router for accepting protocols.\nHandle an incoming connection.\nSee ProtocolHandler::accept.\nConfigures the router to accept the ProtocolHandler when …\nCreates a new Router using given Endpoint.\nReturns the Endpoint stored in this router.\nReturns the Endpoint of the node.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new user error from an arbitrary error type.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nChecks if the router is already shutdown.\nCreates a new router builder using given Endpoint.\nCreate a new AccessLimit.\nOptional interception point to handle the Connecting state.\nSee ProtocolHandler::on_connecting.\nCalled when the router shuts down.\nSee ProtocolHandler::shutdown.\nShuts down the accept loop cleanly.\nSpawns an accept loop and returns a handle to it …\nToString::to_string, but without panic on OOM.\nA drop guard to clean up test infrastructure.\nHandle and drop guard for test DNS and Pkarr servers.\nCreate a ConcurrentDiscovery with DnsDiscovery and …\nCreate a DnsResolver configured to use the test DNS server.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nThe socket address of the DNS server.\nThe node origin domain.\nWait until a Pkarr announce for a node is published to the …\nThe HTTP URL of the Pkarr server.\nRun DNS and Pkarr servers on localhost.\nRuns a relay server with QUIC enabled suitable for tests.\nRuns a relay server.\nRun DNS and Pkarr servers on localhost with the specified …") \ No newline at end of file +searchState.loadedDescShard("iroh", 0, "Peer-to-peer QUIC connections.\nError when decoding.\nThe encoded information had the wrong length.\nError when decoding the public key.\nError when deserialising a PublicKey or a SecretKey.\nThe length of an ed25519 PublicKey, in bytes.\nNetwork-level addressing information for an iroh node.\nThe identifier for a node in the (iroh) network.\nA public key.\nConfiguration of all the relay servers that can be used.\nInformation on a specific relay server.\nA URL identifying a relay server.\nCan occur when parsing a string into a RelayUrl.\nA secret key.\nThe type of value that can change.\nA handle to a value that’s represented by one or more …\nGet this public key as a byte array.\nIs this a known node?\nDefault values used in iroh\nReturns the direct addresses of this peer.\nSocket addresses where the peer might be reached directly.\nNode address discovery.\nThis module exports a DNS resolver, which is also the …\nCreate an empty relay map.\nThe Endpoint allows establishing connections to other iroh …\nConvert to a hex string limited to the first 5 bytes for a …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the addressing info from given ticket.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a RelayMap from a RelayUrl.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConstruct a PublicKey from a slice of bytes.\nCreate a secret key from its byte representation.\nCreates a RelayMap from an iterator of RelayUrl.\nCreates a new NodeAddr from its parts.\nGenerate a new SecretKey with a randomness generator.\nReturns the current state of the underlying value.\nGet the given node.\nReturns a future completing once the value is set to Some …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether this watcher is still connected to all of its …\nReturns true, if only a NodeId is present.\nAre there any nodes in this map?\nHow many nodes are known?\nMaps this watcher with a function that transforms the …\nCo-locating all of the iroh metrics structs\nChecks the network conditions from the current host.\nCreates a new NodeAddr with no relay_url and no …\nThe node’s identifier.\nSupport for handling DNS resource records for dialing by …\nReturns an Iterator over all known nodes.\nReturns a watcher that updates every time this or the …\nPolls for the next value, or returns Disconnected if one …\nTools for spawning an accept loop that routes incoming …\nReturns the VerifyingKey for this PublicKey.\nThe public key of this SecretKey.\nConfiguration to speak to the QUIC endpoint on the relay …\nReturns the relay url of this peer.\nThe node’s home relay url.\nReturns the SigningKey for this SecretKey.\nSign the given message and return a digital signature\nReturns a stream which will yield the most recent values …\nReturns a stream which will yield the most recent values …\nInternal utilities to support testing.\nConvert this to the bytes representing the secret part. …\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nReturns a future completing with Ok(value) once a new …\nThe RelayUrl where this relay server can be dialed.\nReturns the sorted relay URLs.\nVerify a signature on a message with this secret key’s …\nAdds the given direct addresses.\nAdds a relay url.\nThe default HTTPS port used by the Relay server.\nThe default HTTP port used by the Relay server.\nThe default metrics port used by the Relay server.\nThe default QUIC port used by the Relay server to accept …\nProduction configuration.\nStaging configuration.\nHostname of the default Asia-Pacific relay.\nHostname of the default EU relay.\nHostname of the default NA relay.\nGet the default RelayNode for Asia-Pacific\nGet the default RelayNode for EU.\nGet the default RelayNode for NA.\nGet the default RelayMap.\nHostname of the default EU relay.\nHostname of the default NA relay.\nGet the default RelayNode for EU.\nGet the default RelayNode for NA.\nGet the default RelayMap.\nA discovery service that combines multiple discovery …\nNode discovery for super::Endpoint.\nContext about the Endpoint for discovery services.\nDiscovery errors\nNode discovery results from Discovery services.\nTrait for structs that can be converted into Discovery.\nIntoDiscovery errors\nThe max byte length allowed for user-defined data.\nData about a node that may be published to and resolved …\nInformation about a node that may be published to and …\nUnder the hood this is a UTF-8 String is no longer than …\nAdds a Discovery service.\nAdds direct addresses to the node data.\nRemoves all direct addresses from the node data.\nThe information published about the node.\nReturns the direct addresses of the node.\nDNS node discovery for iroh\nReturns the DnsResolver used by the endpoint.\nCreates an empty ConcurrentDiscovery.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new user error from an arbitrary error type.\nCreates a new user error from an arbitrary error type.\nCreates a new user error from an arbitrary boxed error …\nCreates a new user error from an arbitrary boxed error …\nCreates a new NodeInfo from its parts.\nParses a NodeInfo from a pkarr::SignedPacket.\nCreates a new ConcurrentDiscovery.\nParses a NodeInfo from DNS TXT lookup.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nTurns this discovery builder into a ready-to-use discovery …\nConverts into a NodeAddr without cloning.\nConverts into a NodeAddr without cloning.\nIs there any services configured?\nReturns the optional timestamp when this node info was …\nHow many services are configured\nA discovery service that uses an mdns-like service to …\nCreates a new NodeData with a relay URL and a set of …\nCreates a new NodeInfo with an empty NodeData.\nCreates a new DiscoveryItem from a NodeInfo.\nReturns the NodeId of the endpoint.\nReturns the node id of the discovered node.\nThe NodeId of the node this is about.\nReturns the NodeInfo for the discovered node.\nA discovery service which publishes and resolves node …\nReturns the provenance of this discovery item.\nPublishes the given NodeData to the discovery mechanism.\nReturns the relay URL of the node.\nResolves the DiscoveryItem for the given NodeId.\nReturns the SecretKey of the endpoint.\nSets the relay URL of the node data.\nSets the user-defined data of the node data.\nA static node discovery to manually add node addressing …\nConverts into a NodeAddr by cloning the needed fields.\nConverts into a NodeAddr by cloning the needed fields.\nCreates a pkarr::SignedPacket.\nConverts into a list of {key}={value} strings.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nReturns the optional user-defined data of the node.\nReturns any user-defined data.\nSets the direct addresses and returns the updated node …\nSets the direct addresses and returns the updated node …\nSets the relay URL and returns the updated node data.\nSets the relay URL and returns the updated node info.\nSets the user-defined data and returns the updated node …\nSets the user-defined data and returns the updated node …\nDNS node discovery\nBuilder for DnsDiscovery.\nThe n0 testing DNS node origin, for production.\nThe n0 testing DNS node origin, for testing.\nBuilds a DnsDiscovery with the passed DnsResolver.\nCreates a DnsDiscoveryBuilder that implements IntoDiscovery…\nSets the DNS resolver to use.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCreates a new DNS discovery using the iroh.link domain.\nA peer was discovered or it’s information was updated.\nAn event emitted from the MdnsDiscovery service.\nA peer was expired due to being inactive, unreachable, or …\nDiscovery using swarm-discovery, a variation on mdns\nBuilder for MdnsDiscovery.\nName of this discovery service.\nSets whether this node should advertise its presence.\nBuilds an MdnsDiscovery instance with the configured …\nReturns a MdnsDiscoveryBuilder that implements …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nSets a custom service name.\nSubscribe to discovered nodes\nOptional timestamp when this node address info was last …\nThe id of the node that expired.\nThe node info for the node, as discovered.\nDefault TTL for the records in the pkarr signed packet.\nInterval in which to republish the node info even if …\nThe production pkarr relay run by number 0.\nThe testing pkarr relay run by number 0.\nPublisher of node discovery information to a pkarr relay.\nBuilder for PkarrPublisher.\nA pkarr client to publish pkarr::SignedPackets to a pkarr …\nResolver of node discovery information from a pkarr relay.\nBuilder for PkarrResolver.\nBuilds the PkarrPublisher with the passed secret key for …\nCreates a PkarrResolver from this builder.\nReturns a PkarrPublisherBuilder that publishes node info …\nCreates a new resolver builder using the pkarr relay …\nPkarr based node discovery for iroh, supporting both relay …\nSets the DNS resolver to use for resolving the pkarr relay …\nSets the DNS resolver to use for resolving the pkarr relay …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCreates a pkarr publisher which uses the number 0 pkarr …\nCreates a pkarr resolver builder which uses the number 0 …\nCreates a new client.\nPublishes a SignedPacket.\nSets the interval after which packets are republished even …\nResolves a SignedPacket for the given NodeId.\nToString::to_string, but without panic on OOM.\nSets the TTL (time-to-live) for published packets.\nPublishes the addressing information about this node to a …\nCreates a new client while passing a DNS resolver to use.\nBuilder for DhtDiscovery.\nPkarr Mainline DHT and relay server node discovery.\nBuilds the discovery mechanism.\nCreates a new builder for DhtDiscovery.\nExplicitly sets the pkarr client to use.\nSets whether to publish to the Mainline DHT.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSets whether to include the direct addresses in the DNS …\nCalls U::from(self).\nCalls U::from(self).\nUses the default number 0 pkarr relay URL.\nDisables publishing even if a secret key is set.\nSets the pkarr relay URL to use.\nSets the republish delay for the DHT.\nSets the secret key to use for signing the DNS packets.\nSets the time-to-live value for the DNS packets.\nThe provenance string for this discovery implementation.\nA static node discovery to manually add node addressing …\nAugments node addressing information for the given node ID.\nReturns the argument unchanged.\nCreates a static discovery instance from node addresses.\nReturns node addressing information for the given node ID.\nCalls U::from(self).\nCreates a new static discovery instance.\nRemoves all node addressing information for the given node …\nSets node addressing information for the given node ID.\nThe DNS resolver used throughout iroh.\nThe n0 testing DNS node origin, for production.\nThe n0 testing DNS node origin, for testing.\nCreates a builder to construct a DNS resolver with custom …\nRemoves all entries from the cache.\nCreates a new DnsResolver from a struct that implements …\nReturns the argument unchanged.\nCalls U::from(self).\nPerforms an IPv4 lookup with a timeout.\nResolves IPv4 and IPv6 in parallel with a timeout.\nRaces an IPv4 and IPv6 lookup with a timeout in a …\nPerforms an IPv4 lookup with a timeout in a staggered …\nPerforms an IPv6 lookup with a timeout.\nPerforms an IPv6 lookup with a timeout in a staggered …\nLooks up node info by DNS name.\nLooks up node info by DNS name in a staggered fashion.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by NodeId and origin domain name.\nLooks up a TXT record.\nCreates a new DNS resolver with sensible cross-platform …\nRecreates the inner resolver.\nResolves a hostname from a URL to an IP address.\nCreates a new DNS resolver configured with a single UDP …\nthe endpoint has reached the confidentiality or integrity …\nthe application or application protocol caused the …\nFuture produced by Endpoint::accept.\nFuture produced by Connection::accept_bi\nFuture produced by Connection::accept_uni\nParameters for controlling the peer’s acknowledgement …\nA key for sealing data with AEAD-based algorithms\nUses all available paths\nApplication layer added the address directly.\nReason given by an application for closing the connection\nThe peer closed the connection\nBuilder for Endpoint.\nthe number of connection IDs provided by the peer exceeds …\nthe server refused to accept a new connection\nreceived more data in CRYPTO frames than can be buffered\nWe received a CallMeMaybe.\nA chunk of data from the receive stream\nThe connection could not be created because not enough of …\nError indicating that a stream has not been opened or has …\nThe stream has already been stopped, finished, or reset\nThe stream has already been finished or reset\nOptions for the Endpoint::connect_with_opts function.\nIn-progress connection attempt future\nA QUIC connection.\nReason given by the transport for closing the connection\nThe peer’s QUIC stack aborted the connection …\nReasons why a connection might be lost\nThe connection was lost\nThe connection was lost\nThe connection was lost\nThe connection was lost\nThe connection was lost\nConnection statistics\nThe type of connection we have to the endpoint.\nThe type of control message we have received.\nCommon interface for different congestion controllers\nConstructs controllers on demand\nGeneric crypto errors\nServer-side configuration for the crypto protocol\nUse a custom relay map.\nUse the default relay map, with production relay servers …\nDirect UDP connection\nA direct address on which an iroh-node might be …\nInformation about a direct address.\nThe type of direct address.\nDatagram support is disabled locally\nDisable relay servers completely.\nThe address was discovered by a discovery service.\nEnvironment variable to force the use of staging relays.\nControls an iroh node, establishing connections with other …\nError returned by Session::export_keying_material.\nreceived a STREAM frame or a RESET_STREAM frame containing …\nreceived more data than permitted in advertised data limits\nreceived a frame that was badly formatted\nThe stream finished before all bytes were read\nNumber of frames transmitted of each frame type\nA pseudo random key for HKDF\nthe endpoint encountered an internal error and cannot …\nreceived an invalid Retry Token in a client Initial\nAttempted an ordered read following an unordered read\nAn incoming connection for which the server has not yet …\nAdaptor to let Incoming be awaited like a Connecting.\nkey update error\nA locally bound socket address.\nThe local application closed the connection\nThe largest representable value\nThe largest encoded value length\nBoth a UDP and a relay connection are used.\nParameters governing MTU discovery.\nthe connection is being closed abruptly in the absence of …\nno viable network path exists\nApplication layer with a specific name added the node …\nWe have no verified connection to this PublicKey\nFuture produced by Connection::open_bi\nFuture produced by Connection::open_uni\ndetected an error with protocol compliance that was not …\nDefines the mode of path selection for all traffic flowing …\nStatistics related to a transmission path\nWe received a Ping from the node.\nWe received a Pong from the node.\nAn address assigned by the router using port mapping.\nPublic internet address discovered via QAD.\nHard NAT: QAD’ed IPv4 address + local fixed port.\nAn error occurred during reading\nFuture produced by Connection::read_datagram\nErrors that arise from reading from a stream.\nA read error occurred\nErrors that arise from reading from a stream.\nErrors from RecvStream::read_to_end\nA stream that can only be used to receive data\nRelay connection over relay\nA node communicated with us first via relay.\nConfiguration of the relay servers for an Endpoint.\nForces all traffic to go exclusively through relays\nThe peer abandoned transmitting data on this stream\nThe peer is unable to continue processing this connection, …\nErrors that arise while waiting for a stream to be reset\nError for attempting to retry an Incoming which already …\nreceived a frame for a stream identifier that exceeded …\nreceived a frame for a stream that was not in a state that …\nAddress was loaded from the fs.\nErrors that can arise when sending a datagram\nA stream that can only be used to send data\nParameters governing incoming connections\nThe origin or source through which an address associated …\nUse the staging relay servers from n0.\nThe peer is no longer accepting data on this stream\nErrors that arise while monitoring for a send stream stop …\nIdentifier for a stream within a particular connection\nreceived transport parameters that were badly formatted, …\nCommunication with the peer has lapsed for longer than the …\nThe datagram is larger than the connection can currently …\nThe stream is larger than the user-supplied limit\nParameters governing the core QUIC state machine\nTransport-level errors occur when a peer violates the …\nThe peer violated the QUIC specification as understood by …\nTransport-level error code\nA node communicated with us first via UDP.\nStatistics about UDP datagrams transmitted or received on …\nNot yet determined..\nThe peer does not support receiving datagram frames\nError indicating that the specified QUIC version is not …\nAn integer less than 2^62\nThe peer doesn’t implement any supported version\nA handle to some connection internals, use with care.\nErrors that arise from writing to a stream\nIndicates how many bytes and chunks had been transferred …\nFuture that completes when a connection is fully …\nThis was a 0-RTT stream and the server rejected it\nThis was a 0-RTT stream and the server rejected it\nThis was a 0-RTT stream and the server rejected it\nThis was a 0-RTT stream and the server rejected it\nAccepts an incoming connection on the endpoint.\nAttempts to accept this incoming connection (an error may …\nAccept the next incoming bidirectional stream.\nAccepts the next incoming uni-directional stream.\nAccepts this incoming connection using a custom …\nThe ack-eliciting threshold we will request the peer to use\nSpecifies the ACK frequency config (see AckFrequencyConfig …\nAdds a discovery mechanism for this endpoint.\nInforms this Endpoint about addresses of the iroh node, …\nThe UDP address reported by the remote node.\nThe address.\nDerive AEAD using hkdf\nWhether the implementation is permitted to set the spin …\nExtracts the ALPN protocol from the peer’s handshake …\nExtracts the ALPN protocol from the peer’s handshake …\nSets the ALPN protocols that this endpoint will accept on …\nBinds the magic endpoint.\nSets the IPv4 bind address.\nSets the IPv6 bind address.\nSpecifies the amount of time that MTU discovery should …\nThe number of times a black hole was detected in the path\nReturns the local socket addresses on which the underlying …\nConstruct a fresh Controller\nReturns the builder for an Endpoint, with a production …\nThe contents of the chunk\nThe total amount of bytes which have been transferred …\nThe amount of bytes which had been written\nThe amount of full chunks which had been written\nRemoves all discovery services from the builder.\nDuplicate the controller’s state\nCloses the QUIC endpoint and the magic socket.\nCloses the connection immediately.\nIf the connection is closed, the reason why.\nWait for the connection to be closed for any reason.\nType of error\nHow to construct new congestion::Controllers\nCongestion events on the connection\nCurrent state of the congestion control algorithm, for …\nReturns a Watcher that reports the current connection type …\nConnects to a remote Endpoint.\nStarts a connection attempt with a remote Endpoint.\nCreate QUIC error code from TLS alert code\nTLS configuration used for incoming connections\nMaximum quantity of out-of-order crypto layer data to …\nLargest UDP payload size the path currently supports\nCurrent congestion window of the connection\nMaximum number of incoming application datagram bytes to …\nMaximum number of outgoing application datagram bytes to …\nBytes available in the outgoing datagram buffer.\nThe amount of UDP datagrams observed\nReturns the default relay mode.\nWhich directions data flows in\nOptionally sets a discovery mechanism for this endpoint.\nReturns the discovery mechanism, if configured.\nConfigures the endpoint to also use the mainline DHT with …\nConfigures the endpoint to also use local network …\nConfigures the endpoint to use the default n0 DNS …\nOptionally sets a custom DNS resolver to use for this …\nReturns the DNS resolver used in this Endpoint.\nWhether to use “Generic Segmentation Offload” to …\nClass of error as encoded in the specification\nApplication-specific reason code\nDerives keying material from this connection’s TLS …\nNotify the peer that no more data will ever be written to …\nReturns true if the use of staging relays is forced.\nFrame type that triggered the error\nStatistics about frames received on a connection\nStatistics about frames transmitted on a connection\nType of frame that caused the close\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConstruct a VarInt infallibly\nSucceeds iff x < 2^62\nCreate a VarInt without ensuring it’s in range\nParameters negotiated during the handshake\nParameters negotiated during the handshake.\nGet the identity of this stream\nGet the identity of this stream\nIgnores this incoming connection attempt, not sending any …\nMaximum number of received bytes to buffer for each …\nMaximum number of received bytes to buffer for all Incoming\nDistinguishes streams of the same initiator and …\nCreate the initial set of keys given the client’s …\nThe initial value to be used as the maximum UDP payload …\nThe RTT used before an RTT sample is taken\nInitial congestion window\nWhich side of a connection initiated the stream\nSkip verification of SSL certificates from relay servers\nSpecifies the time to wait after completing MTU discovery …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nConverts this Connecting into a 0-RTT or 0.5-RTT …\nReturns Self for use in down-casting to extract …\nGet the Incoming\nExtract the integer value\nThe amount of I/O operations executed\nCheck if this stream has been opened during 0-RTT.\nReturns true if the Connection associated with this handle …\nCheck if this endpoint is still alive, or already closed.\nPeriod of inactivity before sending a keep-alive packet\nEnables saving the TLS pre-master key for connections.\nElapsed time since this network path was known to exist.\nLast control message received by this node about this …\nElapsed time since the last payload message was received …\nReturns the currently lowest latency for this node.\nThe latency to the remote node over this network path.\nReturns the local IP address which was used when the peer …\nThe amount of bytes lost on this path\nThe amount of packets lost on this path\nThe amount of PLPMTUD probe packets lost on this path …\nThe max_ack_delay we will request the peer to use\nMaximum number of incoming bidirectional streams that may …\nVariant of max_concurrent_bidi_streams affecting …\nComputes the maximum size of datagrams that may be passed …\nMaximum duration of inactivity to accept before timing out …\nMaximum number of Incoming to allow to exist at a time\nSet the maximum number of TLS tickets to cache.\nReturns metrics collected for this endpoint.\nWhether to allow clients to migrate to new addresses\nThe maximum UDP payload size guaranteed to be supported by …\nSpecifies the minimum MTU change to stop the MTU discovery …\nSpecifies the MTU discovery config (see MtuDiscoveryConfig …\nNotifies the system of potential network changes.\nResets path-specific state.\nCreate a default config with a particular handshake token …\nCreate a new StreamId\nInitializes new connection options.\nReturns the current NodeAddr. As long as the endpoint was …\nReturns the node id of this endpoint.\nThe offset in the stream\nPacket deliveries were confirmed\nPackets were deemed lost or marked congested\nPackets are acked in batches, all with the same now …\nThe known MTU for the current network path has been updated\nOne or more packets were just sent\nA convenience method that waits for the endpoint to be …\nMethod for opening a sealed message data\nInitiates a new outgoing bidirectional stream.\nInitiates a new outgoing unidirectional stream.\nMaximum reordering in packet number space before FACK …\nStatistics related to the current transmission path\nThis implies we only use the relay to communicate and do …\nCryptographic identity of the peer.\nNumber of consecutive PTOs after which network is …\nAttempts to read from the stream into buf.\nAttempt to write bytes from buf into the stream.\nThe preferred IPv4 address that will be communicated to …\nThe preferred IPv6 address that will be communicated to …\nGet the priority of the send stream\nSets the proxy url from the environment, in this order:\nSets an explicit proxy url to proxy all HTTP(S) traffic …\nRead data contiguously from the stream.\nRead the next segment of data\nRead the next segments of data\nReceives an application datagram.\nRead an exact number of bytes contiguously from the stream.\nConvenience method to read all remaining data into a buffer\nHuman-readable reason for the close\nHuman-readable reason for the close\nHuman-readable explanation of the reason\nWhether to receive observed address reports from other …\nMaximum number of bytes the peer may transmit across all …\nCompletes when the stream has been reset by the peer or …\nRejects this incoming connection attempt.\nReturns the relay map for this mode.\nSets the relay servers to assist in establishing …\nReturns the peer’s UDP address.\nWhether the socket address that is initiating this …\nReturns the NodeId from the peer’s TLS certificate.\nThe reordering threshold we will request the peer to use\nClose the send stream immediately.\nResponds with a retry packet.\nGenerate the integrity tag for a retry packet\nDuration after a retry token was issued for which it’s …\nCurrent best estimate of this connection’s latency …\nCurrent best estimate of this connection’s latency …\nSaturating integer addition. Computes self + rhs, …\nMethod for sealing message data\nSets a secret key to authenticate with other peers.\nReturns the secret_key of this endpoint.\nTransmits data as an unreliable, unordered application …\nWhether to implement fair queuing for send streams having …\nWhether to send observed address reports to peers.\nMaximum number of bytes to transmit to a peer without …\nThe amount of packets sent on this path\nThe amount of PLPMTUD probe packets sent on this path …\nSets the list of accepted ALPN protocols.\nModifies the number of bidirectional streams that may be …\nModifies the number of unidirectional streams that may be …\nSet the priority of the send stream\nSee quinn_proto::TransportConfig::receive_window.\nSets the initial user-defined data to be published in …\nA HashMap of Sources to Durations.\nA stable identifier for this connection.\nStart a server session with this configuration\nReturns connection statistics.\nStop accepting data\nCompletes when the peer stops the stream or reads the …\nMaximum number of bytes the peer may transmit without …\nObject to get current SystemTime\nMaximum reordering in time space before time based loss …\nPrivate key used to authenticate data included in …\nTransport configuration to use for incoming connections\nSet a custom TransportConfig\nSets a custom quinn::TransportConfig for this endpoint.\nSucceeds iff x < 2^62\nSucceeds iff x < 2^62\nSucceeds iff x < 2^62\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nThe origin of this direct address.\nStatistics about UDP datagrams received on a connection\nStatistics about UDP datagrams transmitted on a connection\nSpecifies the upper bound to the max UDP payload size that …\nSets the initial user-defined data to be published in …\nConfiguration for sending and handling validation tokens\nSet a custom ValidationTokenConfig\nReturns a Watcher for the current NodeAddr for this …\nNumber of ack-eliciting bytes that may be in flight\nSets ALPN identifiers that should be signaled as supported …\nCreate a server config with the given crypto::ServerConfig\nCreate a server config with the given certificate chain to …\nSets the QUIC transport config options for this connection.\nWrite bytes to the stream\nConvenience method to write an entire buffer to the stream\nConvenience method to write an entire list of chunks to …\nConvenience method to write a single chunk in its entirety …\nWrite chunks to the stream\nThe name of the discovery service that discovered the …\nThe name of the application that added the node\nMetrics collected by an crate::endpoint::Endpoint.\nEnum of metrics for the module\nEnum of metrics for the module\nMetrics tracked for the relay server\nNumber of times this server has accepted a connection.\nBytes received from a FrameType::SendPacket\nNumber of bytes received from client connection which have …\nBytes sent from a FrameType::SendPacket\nNumber of connections with a successful handshake that …\nNumber of connections with a successful handshake.\nNumber of client connections which have had any frames …\nFrameType::SendPacket dropped that are disco messages\nFrameType::SendPacket received that are disco messages\nFrameType::SendPacket sent that are disco messages\nNumber of connections we have removed because of an error\nNumber of times the external address obtained via port …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nNumber of FrameType::Pings received\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nNumber of updates to the local port.\nMetrics collected by the endpoint’s socket.\nNumber of mapping tasks started.\nNumber of failed mapping tasks.\nMetrics collected by net reports.\nNumber of nodes we have attempted to contact.\nNumber of nodes we have managed to contact directly.\nThe number of direct connections we have made to peers.\nThe number of direct connections we have lost to peers.\nThe number of connections to peers we have added over …\nThe number of connections to peers we have removed over …\nPackets of other FrameTypes dropped\nPackets of other FrameTypes received\nPackets of other FrameTypes sent\nNumber of consecutive failure resets (path recovered).\nNumber of times a path was marked as outdated due to …\nHistogram of packet loss rates (0.0-1.0) observed on UDP …\nNumber of ping failures recorded across all paths.\nHistogram of path quality scores (0.0-1.0).\nHistogram of RTT variance (in milliseconds) as a …\nNumber of PCP probes that found it available.\nNumber of PCP probes executed.\nMetrics collected by the portmapper service.\nNumber of probing tasks started.\nNumber of QUIC datagrams received.\nNumber of datagrams received using GRO\nFrameType::SendPacket dropped, that are not disco messages\nFrameType::SendPacket received, that are not disco messages\nFrameType::SendPacket sent, that are not disco messages\nNumber of FrameType::Pongs sent\nNumber of unique client keys per day\nNumber of FrameType::Unknown received\nNumber of UPnP probes that found it available.\nNumber of UPnP probes that resulted in a gateway different …\nNumber of UPnP probes executed.\nNumber of failed Upnp probes.\nHTTPS\nEnum of metrics for the module\nOptions for running probes\nThe protocol used to time a node’s latency.\nQUIC Address Discovery Ipv4\nQUIC Address Discovery Ipv6\nPieces needed to do QUIC address discovery.\nLatencies per relay node.\nA net_report report.\nThe maximum amount of time, in seconds, the net_report …\nTurn the options into set of valid protocols\nCaptivePortal is set when we think there’s a captive …\nA client config.\nCreate an Options that disables all probes\nA QUIC Endpoint\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nip:port of global IPv4\n[ip]:port of global IPv6\nDo we have any indication that UDP is working?\nEnable or disable https probe\nSkip cert verification\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nEnable ipv4 QUIC address discovery probes\nEnable ipv6 QUIC address discovery probes\nReturns an iterator over all the relays and their …\nWhether the reported public address differs when probing …\nWhether the reported public address differs when probing …\nWhether the reported public address differs when probing …\nProbe indicating the presence of port mapping protocols on …\nEnable quic probes\nkeyed by relay Url\nNumber of reports executed by net_report, including full …\nNumber of full reports executed by net_report\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nA QAD IPv4 round trip completed.\nA QAD IPv6 round trip completed.\nThe DNS name for the iroh TXT record.\nError returned when an input value is too long for UserData…\nData about a node that may be published to and resolved …\nExtension methods for NodeId to encode to and decode from …\nInformation about a node that may be published to and …\nUnder the hood this is a UTF-8 String is no longer than …\nThe information published about the node.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nParses a NodeId from [z-base-32] encoding.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nThe NodeId of the node this is about.\nEncodes a NodeId in [z-base-32] encoding.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nWraps an existing protocol, limiting its access, based on …\nA dyn-compatible version of ProtocolHandler that returns …\nHandler for incoming connections.\nThe built router.\nBuilder for creating a Router for accepting protocols.\nHandle an incoming connection.\nSee ProtocolHandler::accept.\nConfigures the router to accept the ProtocolHandler when …\nCreates a new Router using given Endpoint.\nReturns the Endpoint stored in this router.\nReturns the Endpoint of the node.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new user error from an arbitrary error type.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nChecks if the router is already shutdown.\nCreates a new router builder using given Endpoint.\nCreate a new AccessLimit.\nOptional interception point to handle the Connecting state.\nSee ProtocolHandler::on_connecting.\nCalled when the router shuts down.\nSee ProtocolHandler::shutdown.\nShuts down the accept loop cleanly.\nSpawns an accept loop and returns a handle to it …\nToString::to_string, but without panic on OOM.\nA drop guard to clean up test infrastructure.\nHandle and drop guard for test DNS and Pkarr servers.\nCreate a ConcurrentDiscovery with DnsDiscovery and …\nCreate a DnsResolver configured to use the test DNS server.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nThe socket address of the DNS server.\nThe node origin domain.\nWait until a Pkarr announce for a node is published to the …\nThe HTTP URL of the Pkarr server.\nRun DNS and Pkarr servers on localhost.\nRuns a relay server with QUIC enabled suitable for tests.\nRuns a relay server.\nRun DNS and Pkarr servers on localhost with the specified …") \ No newline at end of file diff --git a/pr/3514/docs/search.desc/iroh_relay/iroh_relay-desc-0-.js b/pr/3514/docs/search.desc/iroh_relay/iroh_relay-desc-0-.js index c1c9386513..3269c1f654 100644 --- a/pr/3514/docs/search.desc/iroh_relay/iroh_relay-desc-0-.js +++ b/pr/3514/docs/search.desc/iroh_relay/iroh_relay-desc-0-.js @@ -1 +1 @@ -searchState.loadedDescShard("iroh_relay", 0, "Iroh’s relay is a feature within iroh, a peer-to-peer …\nTracks pings on a single relay connection.\nConfiguration of all the relay servers that can be used.\nInformation on a specific relay server.\nConfiguration for speaking to the QUIC endpoint on the …\nExposes Client, which allows to establish connections to a …\nIs this a known node?\nReturns the current timeout set for pings.\nDefault values used in the relay.\nDNS resolver\nCreate an empty relay map.\nReturns the argument unchanged.\nCreates a RelayMap from a RelayUrl.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a RelayMap from an iterator of RelayUrl.\nGet the given node.\nHTTP-specific constants for the relay server and client.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nAre there any nodes in this map?\nHow many nodes are known?\nCreates a new ping tracker, setting the ping timeout for …\nStarts a new ping.\nSupport for handling DNS resource records for dialing by …\nReturns an Iterator over all known nodes.\nUpdates the ping tracker with a received pong.\nThe port on which the connection should be bound to.\nProtocols used by the iroh-relay\nCreate a QUIC server that accepts connections for QUIC …\nConfiguration to speak to the QUIC endpoint on the relay …\nA fully-fledged iroh-relay server over HTTP or HTTPS.\nCancel-safe waiting for a ping timeout.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nThe RelayUrl where this relay server can be dialed.\nReturns the sorted relay URLs.\nA relay client.\nBuild a Client.\nThe send half of a relay client.\nThe receive half of a relay client.\nConnection errors.\nErrors that can occur while dialing the relay server.\nErrors when receiving messages from the relay server.\nError for sending messages to the relay server.\nReturns if we should prefer ipv6 it replaces the …\nEstablishes a new connection to the relay server.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSkip the verification of the relay server’s SSL …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nSet the capacity of the cache for public keys.\nReturns the local address of the client.\nCreates a client config that trusts any servers without …\nCreate a new ClientBuilder\nSet an explicit proxy url to proxy all HTTP(S) traffic …\nSplits the client into a sink and a stream.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nThe default HTTPS port used by the Relay server.\nThe default HTTP port used by the Relay server.\nThe default capacity of the key cache for the relay server.\nThe default metrics port used by the Relay server.\nThe default QUIC port used by the Relay server to accept …\nBoxed iterator alias.\nBuilder for DnsResolver.\nPotential errors related to dns.\nProtocols over which DNS records can be resolved.\nThe DNS resolver used throughout iroh.\nDNS over HTTPS\nThe n0 testing DNS node origin, for production.\nThe n0 testing DNS node origin, for testing.\nTrait for DNS resolvers used in iroh.\nError returned when an input value is too long for …\nDNS over TCP\nDNS over TLS\nRecord data for a TXT record.\nDNS over UDP\nBuilds the DNS resolver.\nCreates a builder to construct a DNS resolver with custom …\nClears the internal cache.\nRemoves all entries from the cache.\nCreates a new DnsResolver from a struct that implements …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns an iterator over the character strings contained …\nLooks up an IPv4 address.\nPerforms an IPv4 lookup with a timeout.\nResolves IPv4 and IPv6 in parallel with a timeout.\nRaces an IPv4 and IPv6 lookup with a timeout in a …\nPerforms an IPv4 lookup with a timeout in a staggered …\nLooks up an IPv6 address.\nPerforms an IPv6 lookup with a timeout.\nPerforms an IPv6 lookup with a timeout in a staggered …\nLooks up node info by DNS name.\nLooks up node info by DNS name in a staggered fashion.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by NodeId and origin domain name.\nLooks up TXT records.\nLooks up a TXT record.\nCreates a new DNS resolver with sensible cross-platform …\nCompletely resets the DNS resolver.\nRecreates the inner resolver.\nResolves a hostname from a URL to an IP address.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nAdds a single nameserver.\nCreates a new DNS resolver configured with a single UDP …\nAdds a list of nameservers.\nMakes the builder respect the host system’s DNS …\nThe HTTP header name for relay client authentication\nThe HTTP path under which the relay accepts relaying …\nThe HTTP path under which the relay allows doing latency …\nThe websocket sub-protocol version that we currently …\nThe DNS name for the iroh TXT record.\nThe max byte length allowed for user-defined data.\nError returned when an input value is too long for UserData…\nData about a node that may be published to and resolved …\nExtension methods for NodeId to encode to and decode from …\nInformation about a node that may be published to and …\nUnder the hood this is a UTF-8 String is no longer than …\nAdds direct addresses to the node data.\nRemoves all direct addresses from the node data.\nThe information published about the node.\nReturns the direct addresses of the node.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new NodeInfo from its parts.\nParses a NodeInfo from a pkarr::SignedPacket.\nParses a NodeInfo from DNS TXT lookup.\nParses a NodeId from z-base-32 encoding.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nConverts into a NodeAddr without cloning.\nCreates a new NodeData with a relay URL and a set of …\nCreates a new NodeInfo with an empty NodeData.\nThe NodeId of the node this is about.\nReturns the relay URL of the node.\nSets the relay URL of the node data.\nSets the user-defined data of the node data.\nConverts into a NodeAddr by cloning the needed fields.\nCreates a pkarr::SignedPacket.\nConverts into a list of {key}={value} strings.\nEncodes a NodeId in z-base-32 encoding.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nReturns the optional user-defined data of the node.\nSets the direct addresses and returns the updated node …\nSets the direct addresses and returns the updated node …\nSets the relay URL and returns the updated node data.\nSets the relay URL and returns the updated node info.\nSets the user-defined data and returns the updated node …\nSets the user-defined data and returns the updated node …\nCommon types between the super::handshake and super::relay …\nThis module exports looks_like_disco_wrapper as the only …\nImplements the handshake protocol that authenticates and …\nThis module implements the send/recv relaying protocol.\nImplements logic for abstracting over a websocket stream …\nThe client frame type for the authentication frame\n32B dest pub key + ECN bytes + one datagram’s content\n32B dest pub key + ECN byte + segment size u16 + datagrams …\nPossible frame types during handshaking\nSent from server to client to tell the client if their …\nSent from server to client to signal that a previous …\nMessages with these frames will be ignored. 8 byte ping …\n8 byte payload, the contents of ping being replied to\n32B src pub key + ECN bytes + one datagram’s content\n32B src pub key + ECN byte + segment size u16 + datagrams …\nSent from server to client for the server to declare that …\nThe server frame type for the challenge response\nThe server frame type for authentication confirmation\nThe server frame type for authentication denial\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nToString::to_string, but without panic on OOM.\nThe 6 byte header of all discovery messages.\nReports whether p looks like it’s a packet containing an …\nFailed to deserialize client auth header\nReturns the argument unchanged.\nCalls U::from(self).\nToString::to_string, but without panic on OOM.\nMessages that clients send to relays.\nOne or multiple datagrams being transferred via the relay.\nRepresents datagrams sent from relays (originally sent to …\nRequest from the client to relay datagrams to given remote …\nProtocol send errors.\nA one-way message from relay to client, declaring the …\nThe maximum size of a packet sent over relay. (This only …\nIndicates that the client identified by the underlying …\nRequest from the relay to reply to the other side with a …\nRequest from the client to the server to reply to the …\nReply to a ClientToRelayMsg::Ping from a client with the …\nReply to a RelayToClientMsg::Ping from a server with the …\nThe messages that a relay sends to clients or the clients …\nA one-way message from relay to client, advertising that …\nThe contents of the datagram(s)\nExplicit congestion notification bits\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nThe segment size if this transmission contains multiple …\nSplits the current datagram into at maximum num_segments …\nToString::to_string, but without panic on OOM.\nReturns this frame’s corresponding frame type.\nThe datagrams and related metadata to relay.\nThe remote node to relay to.\nThe datagrams and related metadata.\nIf set, is a description of why the connection is …\nAn advisory duration that the client should wait before …\nThe NodeId of the original sender.\nAn advisory duration for how long the client should …\nALPN for our quic addr discovery\nQuic client related errors.\nEndpoint close error code\nEndpoint close reason\nHandles the client side of QUIC address discovery.\nCreate a connection usable for qad\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCreate a new QuicClient to handle the client side of QUIC …\nToString::to_string, but without panic on OOM.\nAccess restriction for a node.\nControls which nodes are allowed to use the relay.\nAccess is allowed.\nTLS certificate configuration.\nPer-client rate limit configuration.\nThe default certificate reload interval.\nAccess is denied.\nEveryone\nUse Let’s Encrypt.\nRate limits.\nUse a static TLS key and certificate chain.\nMetrics tracked for the relay server\nConfiguration for the QUIC server.\nConfiguration for the Relay HTTP and HTTPS server.\nAll metrics tracked in the relay server.\nUse a TLS key and certificate chain that can be reloaded.\nA Certificate resolver that reloads the certificate every …\nOnly nodes for which the function returns Access::Allow.\nA running Relay + QAD server.\nConfiguration for the full Relay.\nServer spawn errors\nServer task errors\nTLS configuration for Relay server.\nBurst limit for accepting new connection. Unlimited if not …\nRate limit for accepting new connection. Unlimited if not …\nNumber of times this server has accepted a connection.\nAccess configuration.\nThe socket address on which the QUIC server should bind.\nMax number of bytes per second to read from the client …\nBytes received from a FrameType::SendPacket\nNumber of bytes received from client connection which have …\nBytes sent from a FrameType::SendPacket\nMode for getting a cert.\nThe certificates chain if configured with manual TLS …\nRate limits for incoming traffic from a client connection.\nNumber of client connections which have had any frames …\nFrameType::SendPacket dropped that are disco messages\nFrameType::SendPacket received that are disco messages\nFrameType::SendPacket sent that are disco messages\nNumber of connections we have removed because of an error\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nNumber of FrameType::Pings received\nThe socket address the HTTP server is listening on.\nThe socket address on which the Relay HTTP server should …\nGet the server’s http RelayUrl.\nThe socket address the HTTPS server is listening on.\nThe socket address on which to serve the HTTPS server.\nGet the server’s https RelayUrl.\nPerform the initial load and construct the …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nIs this node allowed?\nKey cache capacity.\nRate limits.\nMax number of bytes to read in a single burst.\nReturns the metrics collected in the relay server.\nSocket to serve metrics on.\nPackets of other FrameTypes dropped\nPackets of other FrameTypes received\nPackets of other FrameTypes sent\nConfiguration for the QUIC server, disabled if None.\nThe socket address the QUIC server is listening on.\nThe socket address on which to server the QUIC server is …\nConfiguration for the Relay server, disabled if None.\nReload the certificate.\nFrameType::SendPacket dropped, that are not disco messages\nFrameType::SendPacket received, that are not disco messages\nFrameType::SendPacket sent, that are not disco messages\nNumber of FrameType::Pongs sent\nMetrics tracked for the relay server.\nThe TLS server configuration for the QUIC server.\nThe server configuration.\nShutdown the resolver.\nRequests graceful shutdown.\nStarts the server.\nReturns the handle for the task.\nExposes functions to quickly configure a server suitable …\nTLS configuration for the HTTPS server.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nNumber of unique client keys per day\nNumber of FrameType::Unknown received\nThe TLS certificate chain.\nState for Let’s Encrypt certificates.\nCreates a QuicConfig suitable for testing.\nCreates a RelayConfig suitable for testing.\nCreates a rustls::ServerConfig and certificates suitable …\nCreates a ServerConfig suitable for testing.\nCreates a TlsConfig suitable for testing.") \ No newline at end of file +searchState.loadedDescShard("iroh_relay", 0, "Iroh’s relay is a feature within iroh, a peer-to-peer …\nTracks pings on a single relay connection.\nConfiguration of all the relay servers that can be used.\nInformation on a specific relay server.\nConfiguration for speaking to the QUIC endpoint on the …\nExposes Client, which allows to establish connections to a …\nIs this a known node?\nReturns the current timeout set for pings.\nDefault values used in the relay.\nDNS resolver\nCreate an empty relay map.\nReturns the argument unchanged.\nCreates a RelayMap from a RelayUrl.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a RelayMap from an iterator of RelayUrl.\nGet the given node.\nHTTP-specific constants for the relay server and client.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nAre there any nodes in this map?\nHow many nodes are known?\nCreates a new ping tracker, setting the ping timeout for …\nStarts a new ping.\nSupport for handling DNS resource records for dialing by …\nReturns an Iterator over all known nodes.\nUpdates the ping tracker with a received pong.\nThe port on which the connection should be bound to.\nProtocols used by the iroh-relay\nCreate a QUIC server that accepts connections for QUIC …\nConfiguration to speak to the QUIC endpoint on the relay …\nA fully-fledged iroh-relay server over HTTP or HTTPS.\nCancel-safe waiting for a ping timeout.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nThe RelayUrl where this relay server can be dialed.\nReturns the sorted relay URLs.\nA relay client.\nBuild a Client.\nThe send half of a relay client.\nThe receive half of a relay client.\nConnection errors.\nErrors that can occur while dialing the relay server.\nErrors when receiving messages from the relay server.\nError for sending messages to the relay server.\nReturns if we should prefer ipv6 it replaces the …\nEstablishes a new connection to the relay server.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSkip the verification of the relay server’s SSL …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nSet the capacity of the cache for public keys.\nReturns the local address of the client.\nCreates a client config that trusts any servers without …\nCreate a new ClientBuilder\nSet an explicit proxy url to proxy all HTTP(S) traffic …\nSplits the client into a sink and a stream.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nThe default HTTPS port used by the Relay server.\nThe default HTTP port used by the Relay server.\nThe default capacity of the key cache for the relay server.\nThe default metrics port used by the Relay server.\nThe default QUIC port used by the Relay server to accept …\nBoxed iterator alias.\nBuilder for DnsResolver.\nPotential errors related to dns.\nProtocols over which DNS records can be resolved.\nThe DNS resolver used throughout iroh.\nDNS over HTTPS\nThe n0 testing DNS node origin, for production.\nThe n0 testing DNS node origin, for testing.\nTrait for DNS resolvers used in iroh.\nError returned when an input value is too long for …\nDNS over TCP\nDNS over TLS\nRecord data for a TXT record.\nDNS over UDP\nBuilds the DNS resolver.\nCreates a builder to construct a DNS resolver with custom …\nClears the internal cache.\nRemoves all entries from the cache.\nCreates a new DnsResolver from a struct that implements …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns an iterator over the character strings contained …\nLooks up an IPv4 address.\nPerforms an IPv4 lookup with a timeout.\nResolves IPv4 and IPv6 in parallel with a timeout.\nRaces an IPv4 and IPv6 lookup with a timeout in a …\nPerforms an IPv4 lookup with a timeout in a staggered …\nLooks up an IPv6 address.\nPerforms an IPv6 lookup with a timeout.\nPerforms an IPv6 lookup with a timeout in a staggered …\nLooks up node info by DNS name.\nLooks up node info by DNS name in a staggered fashion.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by NodeId and origin domain name.\nLooks up TXT records.\nLooks up a TXT record.\nCreates a new DNS resolver with sensible cross-platform …\nCompletely resets the DNS resolver.\nRecreates the inner resolver.\nResolves a hostname from a URL to an IP address.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nAdds a single nameserver.\nCreates a new DNS resolver configured with a single UDP …\nAdds a list of nameservers.\nMakes the builder respect the host system’s DNS …\nThe HTTP header name for relay client authentication\nThe HTTP path under which the relay accepts relaying …\nThe HTTP path under which the relay allows doing latency …\nThe websocket sub-protocol version that we currently …\nThe DNS name for the iroh TXT record.\nThe max byte length allowed for user-defined data.\nError returned when an input value is too long for UserData…\nData about a node that may be published to and resolved …\nExtension methods for NodeId to encode to and decode from …\nInformation about a node that may be published to and …\nUnder the hood this is a UTF-8 String is no longer than …\nAdds direct addresses to the node data.\nRemoves all direct addresses from the node data.\nThe information published about the node.\nReturns the direct addresses of the node.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new NodeInfo from its parts.\nParses a NodeInfo from a pkarr::SignedPacket.\nParses a NodeInfo from DNS TXT lookup.\nParses a NodeId from [z-base-32] encoding.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nConverts into a NodeAddr without cloning.\nCreates a new NodeData with a relay URL and a set of …\nCreates a new NodeInfo with an empty NodeData.\nThe NodeId of the node this is about.\nReturns the relay URL of the node.\nSets the relay URL of the node data.\nSets the user-defined data of the node data.\nConverts into a NodeAddr by cloning the needed fields.\nCreates a pkarr::SignedPacket.\nConverts into a list of {key}={value} strings.\nEncodes a NodeId in [z-base-32] encoding.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nReturns the optional user-defined data of the node.\nSets the direct addresses and returns the updated node …\nSets the direct addresses and returns the updated node …\nSets the relay URL and returns the updated node data.\nSets the relay URL and returns the updated node info.\nSets the user-defined data and returns the updated node …\nSets the user-defined data and returns the updated node …\nCommon types between the super::handshake and super::relay …\nThis module exports looks_like_disco_wrapper as the only …\nImplements the handshake protocol that authenticates and …\nThis module implements the send/recv relaying protocol.\nImplements logic for abstracting over a websocket stream …\nThe client frame type for the authentication frame\n32B dest pub key + ECN bytes + one datagram’s content\n32B dest pub key + ECN byte + segment size u16 + datagrams …\nPossible frame types during handshaking\nSent from server to client to tell the client if their …\nSent from server to client to signal that a previous …\nMessages with these frames will be ignored. 8 byte ping …\n8 byte payload, the contents of ping being replied to\n32B src pub key + ECN bytes + one datagram’s content\n32B src pub key + ECN byte + segment size u16 + datagrams …\nSent from server to client for the server to declare that …\nThe server frame type for the challenge response\nThe server frame type for authentication confirmation\nThe server frame type for authentication denial\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nToString::to_string, but without panic on OOM.\nThe 6 byte header of all discovery messages.\nReports whether p looks like it’s a packet containing an …\nFailed to deserialize client auth header\nReturns the argument unchanged.\nCalls U::from(self).\nToString::to_string, but without panic on OOM.\nMessages that clients send to relays.\nOne or multiple datagrams being transferred via the relay.\nRepresents datagrams sent from relays (originally sent to …\nRequest from the client to relay datagrams to given remote …\nProtocol send errors.\nA one-way message from relay to client, declaring the …\nThe maximum size of a packet sent over relay. (This only …\nIndicates that the client identified by the underlying …\nRequest from the relay to reply to the other side with a …\nRequest from the client to the server to reply to the …\nReply to a ClientToRelayMsg::Ping from a client with the …\nReply to a RelayToClientMsg::Ping from a server with the …\nThe messages that a relay sends to clients or the clients …\nA one-way message from relay to client, advertising that …\nThe contents of the datagram(s)\nExplicit congestion notification bits\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nThe segment size if this transmission contains multiple …\nSplits the current datagram into at maximum num_segments …\nToString::to_string, but without panic on OOM.\nReturns this frame’s corresponding frame type.\nThe datagrams and related metadata to relay.\nThe remote node to relay to.\nThe datagrams and related metadata.\nIf set, is a description of why the connection is …\nAn advisory duration that the client should wait before …\nThe NodeId of the original sender.\nAn advisory duration for how long the client should …\nALPN for our quic addr discovery\nQuic client related errors.\nEndpoint close error code\nEndpoint close reason\nHandles the client side of QUIC address discovery.\nCreate a connection usable for qad\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCreate a new QuicClient to handle the client side of QUIC …\nToString::to_string, but without panic on OOM.\nAccess restriction for a node.\nControls which nodes are allowed to use the relay.\nAccess is allowed.\nTLS certificate configuration.\nPer-client rate limit configuration.\nThe default certificate reload interval.\nAccess is denied.\nEveryone\nUse Let’s Encrypt.\nRate limits.\nUse a static TLS key and certificate chain.\nMetrics tracked for the relay server\nConfiguration for the QUIC server.\nConfiguration for the Relay HTTP and HTTPS server.\nAll metrics tracked in the relay server.\nUse a TLS key and certificate chain that can be reloaded.\nA Certificate resolver that reloads the certificate every …\nOnly nodes for which the function returns Access::Allow.\nA running Relay + QAD server.\nConfiguration for the full Relay.\nServer spawn errors\nServer task errors\nTLS configuration for Relay server.\nBurst limit for accepting new connection. Unlimited if not …\nRate limit for accepting new connection. Unlimited if not …\nNumber of times this server has accepted a connection.\nAccess configuration.\nThe socket address on which the QUIC server should bind.\nMax number of bytes per second to read from the client …\nBytes received from a FrameType::SendPacket\nNumber of bytes received from client connection which have …\nBytes sent from a FrameType::SendPacket\nMode for getting a cert.\nThe certificates chain if configured with manual TLS …\nRate limits for incoming traffic from a client connection.\nNumber of client connections which have had any frames …\nFrameType::SendPacket dropped that are disco messages\nFrameType::SendPacket received that are disco messages\nFrameType::SendPacket sent that are disco messages\nNumber of connections we have removed because of an error\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nNumber of FrameType::Pings received\nThe socket address the HTTP server is listening on.\nThe socket address on which the Relay HTTP server should …\nGet the server’s http RelayUrl.\nThe socket address the HTTPS server is listening on.\nThe socket address on which to serve the HTTPS server.\nGet the server’s https RelayUrl.\nPerform the initial load and construct the …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nIs this node allowed?\nKey cache capacity.\nRate limits.\nMax number of bytes to read in a single burst.\nReturns the metrics collected in the relay server.\nSocket to serve metrics on.\nPackets of other FrameTypes dropped\nPackets of other FrameTypes received\nPackets of other FrameTypes sent\nConfiguration for the QUIC server, disabled if None.\nThe socket address the QUIC server is listening on.\nThe socket address on which to server the QUIC server is …\nConfiguration for the Relay server, disabled if None.\nReload the certificate.\nFrameType::SendPacket dropped, that are not disco messages\nFrameType::SendPacket received, that are not disco messages\nFrameType::SendPacket sent, that are not disco messages\nNumber of FrameType::Pongs sent\nMetrics tracked for the relay server.\nThe TLS server configuration for the QUIC server.\nThe server configuration.\nShutdown the resolver.\nRequests graceful shutdown.\nStarts the server.\nReturns the handle for the task.\nExposes functions to quickly configure a server suitable …\nTLS configuration for the HTTPS server.\nToString::to_string, but without panic on OOM.\nToString::to_string, but without panic on OOM.\nNumber of unique client keys per day\nNumber of FrameType::Unknown received\nThe TLS certificate chain.\nState for Let’s Encrypt certificates.\nCreates a QuicConfig suitable for testing.\nCreates a RelayConfig suitable for testing.\nCreates a rustls::ServerConfig and certificates suitable …\nCreates a ServerConfig suitable for testing.\nCreates a TlsConfig suitable for testing.") \ No newline at end of file diff --git a/pr/3514/docs/src/iroh/discovery/dns.rs.html b/pr/3514/docs/src/iroh/discovery/dns.rs.html index 100e68e749..4d041ec089 100644 --- a/pr/3514/docs/src/iroh/discovery/dns.rs.html +++ b/pr/3514/docs/src/iroh/discovery/dns.rs.html @@ -32,7 +32,7 @@ 32/// The DNS resolver defaults to using the nameservers configured on the host system, but can be changed 33/// with [`crate::endpoint::Builder::dns_resolver`]. 34/// -35/// [`z-base-32`]: https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt +35/// [z-base-32]: https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt 36/// [`Endpoint`]: crate::Endpoint 37#[derive(Debug)] 38pub struct DnsDiscovery { diff --git a/pr/3514/docs/src/iroh/lib.rs.html b/pr/3514/docs/src/iroh/lib.rs.html index de9fee01f0..06d725f85e 100644 --- a/pr/3514/docs/src/iroh/lib.rs.html +++ b/pr/3514/docs/src/iroh/lib.rs.html @@ -250,7 +250,7 @@ 250#![deny(missing_docs, rustdoc::broken_intra_doc_links)] 251#![cfg_attr(wasm_browser, allow(unused))] 252#![cfg_attr(not(test), deny(clippy::unwrap_used))] -253#![cfg_attr(iroh_docsrs, feature(doc_cfg))] +253#![cfg_attr(iroh_docsrs, feature(doc_auto_cfg))] 254 255mod disco; 256mod key; diff --git a/pr/3514/docs/src/iroh/net_report.rs.html b/pr/3514/docs/src/iroh/net_report.rs.html index f21f7b04f3..3c3925c9fc 100644 --- a/pr/3514/docs/src/iroh/net_report.rs.html +++ b/pr/3514/docs/src/iroh/net_report.rs.html @@ -5,7 +5,7 @@ 5//! etc and reachability to the configured relays. 6// Based on <https://github.com/tailscale/tailscale/blob/main/net/netcheck/netcheck.go> 7 -8#![cfg_attr(iroh_docsrs, feature(doc_cfg))] +8#![cfg_attr(iroh_docsrs, feature(doc_auto_cfg))] 9#![deny(missing_docs, rustdoc::broken_intra_doc_links)] 10#![cfg_attr(not(test), deny(clippy::unwrap_used))] 11#![cfg_attr(wasm_browser, allow(unused))] diff --git a/pr/3514/docs/src/iroh_base/lib.rs.html b/pr/3514/docs/src/iroh_base/lib.rs.html index 29dffa969d..7b30e00b21 100644 --- a/pr/3514/docs/src/iroh_base/lib.rs.html +++ b/pr/3514/docs/src/iroh_base/lib.rs.html @@ -1,5 +1,5 @@ lib.rs - source

            iroh_base/
            lib.rs

            1//! Base types and utilities for Iroh
            -2#![cfg_attr(iroh_docsrs, feature(doc_cfg))]
            +2#![cfg_attr(iroh_docsrs, feature(doc_auto_cfg))]
             3#![deny(missing_docs, rustdoc::broken_intra_doc_links)]
             4#![cfg_attr(not(test), deny(clippy::unwrap_used))]
             5
            diff --git a/pr/3514/docs/src/iroh_base/ticket/node.rs.html b/pr/3514/docs/src/iroh_base/ticket/node.rs.html
            index e17eed65de..3c499221ef 100644
            --- a/pr/3514/docs/src/iroh_base/ticket/node.rs.html
            +++ b/pr/3514/docs/src/iroh_base/ticket/node.rs.html
            @@ -27,188 +27,187 @@
             27/// [`NodeId`]: crate::key::NodeId
             28/// [`Display`]: std::fmt::Display
             29/// [`FromStr`]: std::str::FromStr
            -30/// ['RelayUrl`]: crate::relay_url::RelayUrl
            -31#[derive(Debug, Clone, PartialEq, Eq, derive_more::Display)]
            -32#[display("{}", Ticket::serialize(self))]
            -33pub struct NodeTicket {
            -34    node: NodeAddr,
            -35}
            -36
            -37/// Wire format for [`NodeTicket`].
            -38#[derive(Serialize, Deserialize)]
            -39enum TicketWireFormat {
            -40    Variant0(Variant0NodeTicket),
            -41}
            -42
            -43// Legacy
            -44#[derive(Serialize, Deserialize)]
            -45struct Variant0NodeTicket {
            -46    node: Variant0NodeAddr,
            -47}
            -48
            -49impl Ticket for NodeTicket {
            -50    const KIND: &'static str = "node";
            -51
            -52    fn to_bytes(&self) -> Vec<u8> {
            -53        let data = TicketWireFormat::Variant0(Variant0NodeTicket {
            -54            node: Variant0NodeAddr {
            -55                node_id: self.node.node_id,
            -56                info: Variant0AddrInfo {
            -57                    relay_url: self.node.relay_url.clone(),
            -58                    direct_addresses: self.node.direct_addresses.clone(),
            -59                },
            -60            },
            -61        });
            -62        postcard::to_stdvec(&data).expect("postcard serialization failed")
            -63    }
            -64
            -65    fn from_bytes(bytes: &[u8]) -> Result<Self, ParseError> {
            -66        let res: TicketWireFormat = postcard::from_bytes(bytes)?;
            -67        let TicketWireFormat::Variant0(Variant0NodeTicket { node }) = res;
            -68        Ok(Self {
            -69            node: NodeAddr {
            -70                node_id: node.node_id,
            -71                relay_url: node.info.relay_url,
            -72                direct_addresses: node.info.direct_addresses,
            -73            },
            -74        })
            -75    }
            -76}
            -77
            -78impl FromStr for NodeTicket {
            -79    type Err = ParseError;
            -80
            -81    fn from_str(s: &str) -> Result<Self, Self::Err> {
            -82        ticket::Ticket::deserialize(s)
            -83    }
            -84}
            -85
            -86impl NodeTicket {
            -87    /// Creates a new ticket.
            -88    pub fn new(node: NodeAddr) -> Self {
            -89        Self { node }
            -90    }
            -91
            -92    /// The [`NodeAddr`] of the provider for this ticket.
            -93    pub fn node_addr(&self) -> &NodeAddr {
            -94        &self.node
            -95    }
            -96}
            -97
            -98impl From<NodeAddr> for NodeTicket {
            -99    /// Creates a ticket from given addressing info.
            -100    fn from(addr: NodeAddr) -> Self {
            -101        Self { node: addr }
            -102    }
            -103}
            -104
            -105impl From<NodeTicket> for NodeAddr {
            -106    /// Returns the addressing info from given ticket.
            -107    fn from(ticket: NodeTicket) -> Self {
            -108        ticket.node
            -109    }
            -110}
            -111
            -112impl Serialize for NodeTicket {
            -113    fn serialize<S: serde::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> {
            -114        if serializer.is_human_readable() {
            -115            serializer.serialize_str(&self.to_string())
            -116        } else {
            -117            let NodeTicket { node } = self;
            -118            (node).serialize(serializer)
            -119        }
            -120    }
            -121}
            -122
            -123impl<'de> Deserialize<'de> for NodeTicket {
            -124    fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
            -125        if deserializer.is_human_readable() {
            -126            let s = String::deserialize(deserializer)?;
            -127            Self::from_str(&s).map_err(serde::de::Error::custom)
            -128        } else {
            -129            let peer = Deserialize::deserialize(deserializer)?;
            -130            Ok(Self::new(peer))
            -131        }
            -132    }
            -133}
            -134
            -135#[cfg(test)]
            -136mod tests {
            -137    use std::net::{Ipv4Addr, SocketAddr};
            -138
            -139    use data_encoding::HEXLOWER;
            -140    use rand::SeedableRng;
            -141
            -142    use super::*;
            -143    use crate::key::{PublicKey, SecretKey};
            -144
            -145    fn make_ticket() -> NodeTicket {
            -146        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
            -147        let peer = SecretKey::generate(&mut rng).public();
            -148        let addr = SocketAddr::from((Ipv4Addr::LOCALHOST, 1234));
            -149        let relay_url = None;
            -150        NodeTicket {
            -151            node: NodeAddr::from_parts(peer, relay_url, [addr]),
            -152        }
            -153    }
            -154
            -155    #[test]
            -156    fn test_ticket_postcard() {
            -157        let ticket = make_ticket();
            -158        let bytes = postcard::to_stdvec(&ticket).unwrap();
            -159        let ticket2: NodeTicket = postcard::from_bytes(&bytes).unwrap();
            -160        assert_eq!(ticket2, ticket);
            -161    }
            -162
            -163    #[test]
            -164    fn test_ticket_json() {
            -165        let ticket = make_ticket();
            -166        let json = serde_json::to_string(&ticket).unwrap();
            -167        let ticket2: NodeTicket = serde_json::from_str(&json).unwrap();
            -168        assert_eq!(ticket2, ticket);
            -169    }
            -170
            -171    #[test]
            -172    fn test_ticket_base32() {
            -173        let node_id =
            -174            PublicKey::from_str("ae58ff8833241ac82d6ff7611046ed67b5072d142c588d0063e942d9a75502b6")
            -175                .unwrap();
            -176
            -177        let ticket = NodeTicket {
            -178            node: NodeAddr::from_parts(
            -179                node_id,
            -180                Some("http://derp.me./".parse().unwrap()),
            -181                ["127.0.0.1:1024".parse().unwrap()],
            -182            ),
            -183        };
            -184        let base32 = data_encoding::BASE32_NOPAD
            -185            .decode(
            -186                ticket
            -187                    .to_string()
            -188                    .strip_prefix("node")
            -189                    .unwrap()
            -190                    .to_ascii_uppercase()
            -191                    .as_bytes(),
            -192            )
            -193            .unwrap();
            -194        let expected = [
            -195            // variant
            -196            "00",
            -197            // node id, 32 bytes, see above
            -198            "ae58ff8833241ac82d6ff7611046ed67b5072d142c588d0063e942d9a75502b6",
            -199            // relay url present
            -200            "01",
            -201            // relay url, 16 bytes, see above
            -202            "10",
            -203            "687474703a2f2f646572702e6d652e2f",
            -204            // one direct address
            -205            "01",
            -206            // ipv4
            -207            "00",
            -208            // address, see above
            -209            "7f0000018008",
            -210        ];
            -211        let expected = HEXLOWER.decode(expected.concat().as_bytes()).unwrap();
            -212        assert_eq!(base32, expected);
            -213    }
            -214}
            \ No newline at end of file +30
            #[derive(Debug, Clone, PartialEq, Eq, derive_more::Display)] +31#[display("{}", Ticket::serialize(self))] +32pub struct NodeTicket { +33 node: NodeAddr, +34} +35 +36/// Wire format for [`NodeTicket`]. +37#[derive(Serialize, Deserialize)] +38enum TicketWireFormat { +39 Variant0(Variant0NodeTicket), +40} +41 +42// Legacy +43#[derive(Serialize, Deserialize)] +44struct Variant0NodeTicket { +45 node: Variant0NodeAddr, +46} +47 +48impl Ticket for NodeTicket { +49 const KIND: &'static str = "node"; +50 +51 fn to_bytes(&self) -> Vec<u8> { +52 let data = TicketWireFormat::Variant0(Variant0NodeTicket { +53 node: Variant0NodeAddr { +54 node_id: self.node.node_id, +55 info: Variant0AddrInfo { +56 relay_url: self.node.relay_url.clone(), +57 direct_addresses: self.node.direct_addresses.clone(), +58 }, +59 }, +60 }); +61 postcard::to_stdvec(&data).expect("postcard serialization failed") +62 } +63 +64 fn from_bytes(bytes: &[u8]) -> Result<Self, ParseError> { +65 let res: TicketWireFormat = postcard::from_bytes(bytes)?; +66 let TicketWireFormat::Variant0(Variant0NodeTicket { node }) = res; +67 Ok(Self { +68 node: NodeAddr { +69 node_id: node.node_id, +70 relay_url: node.info.relay_url, +71 direct_addresses: node.info.direct_addresses, +72 }, +73 }) +74 } +75} +76 +77impl FromStr for NodeTicket { +78 type Err = ParseError; +79 +80 fn from_str(s: &str) -> Result<Self, Self::Err> { +81 ticket::Ticket::deserialize(s) +82 } +83} +84 +85impl NodeTicket { +86 /// Creates a new ticket. +87 pub fn new(node: NodeAddr) -> Self { +88 Self { node } +89 } +90 +91 /// The [`NodeAddr`] of the provider for this ticket. +92 pub fn node_addr(&self) -> &NodeAddr { +93 &self.node +94 } +95} +96 +97impl From<NodeAddr> for NodeTicket { +98 /// Creates a ticket from given addressing info. +99 fn from(addr: NodeAddr) -> Self { +100 Self { node: addr } +101 } +102} +103 +104impl From<NodeTicket> for NodeAddr { +105 /// Returns the addressing info from given ticket. +106 fn from(ticket: NodeTicket) -> Self { +107 ticket.node +108 } +109} +110 +111impl Serialize for NodeTicket { +112 fn serialize<S: serde::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> { +113 if serializer.is_human_readable() { +114 serializer.serialize_str(&self.to_string()) +115 } else { +116 let NodeTicket { node } = self; +117 (node).serialize(serializer) +118 } +119 } +120} +121 +122impl<'de> Deserialize<'de> for NodeTicket { +123 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { +124 if deserializer.is_human_readable() { +125 let s = String::deserialize(deserializer)?; +126 Self::from_str(&s).map_err(serde::de::Error::custom) +127 } else { +128 let peer = Deserialize::deserialize(deserializer)?; +129 Ok(Self::new(peer)) +130 } +131 } +132} +133 +134#[cfg(test)] +135mod tests { +136 use std::net::{Ipv4Addr, SocketAddr}; +137 +138 use data_encoding::HEXLOWER; +139 use rand::SeedableRng; +140 +141 use super::*; +142 use crate::key::{PublicKey, SecretKey}; +143 +144 fn make_ticket() -> NodeTicket { +145 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +146 let peer = SecretKey::generate(&mut rng).public(); +147 let addr = SocketAddr::from((Ipv4Addr::LOCALHOST, 1234)); +148 let relay_url = None; +149 NodeTicket { +150 node: NodeAddr::from_parts(peer, relay_url, [addr]), +151 } +152 } +153 +154 #[test] +155 fn test_ticket_postcard() { +156 let ticket = make_ticket(); +157 let bytes = postcard::to_stdvec(&ticket).unwrap(); +158 let ticket2: NodeTicket = postcard::from_bytes(&bytes).unwrap(); +159 assert_eq!(ticket2, ticket); +160 } +161 +162 #[test] +163 fn test_ticket_json() { +164 let ticket = make_ticket(); +165 let json = serde_json::to_string(&ticket).unwrap(); +166 let ticket2: NodeTicket = serde_json::from_str(&json).unwrap(); +167 assert_eq!(ticket2, ticket); +168 } +169 +170 #[test] +171 fn test_ticket_base32() { +172 let node_id = +173 PublicKey::from_str("ae58ff8833241ac82d6ff7611046ed67b5072d142c588d0063e942d9a75502b6") +174 .unwrap(); +175 +176 let ticket = NodeTicket { +177 node: NodeAddr::from_parts( +178 node_id, +179 Some("http://derp.me./".parse().unwrap()), +180 ["127.0.0.1:1024".parse().unwrap()], +181 ), +182 }; +183 let base32 = data_encoding::BASE32_NOPAD +184 .decode( +185 ticket +186 .to_string() +187 .strip_prefix("node") +188 .unwrap() +189 .to_ascii_uppercase() +190 .as_bytes(), +191 ) +192 .unwrap(); +193 let expected = [ +194 // variant +195 "00", +196 // node id, 32 bytes, see above +197 "ae58ff8833241ac82d6ff7611046ed67b5072d142c588d0063e942d9a75502b6", +198 // relay url present +199 "01", +200 // relay url, 16 bytes, see above +201 "10", +202 "687474703a2f2f646572702e6d652e2f", +203 // one direct address +204 "01", +205 // ipv4 +206 "00", +207 // address, see above +208 "7f0000018008", +209 ]; +210 let expected = HEXLOWER.decode(expected.concat().as_bytes()).unwrap(); +211 assert_eq!(base32, expected); +212 } +213}
            \ No newline at end of file diff --git a/pr/3514/docs/src/iroh_relay/lib.rs.html b/pr/3514/docs/src/iroh_relay/lib.rs.html index 240ee9a08a..da8458aa03 100644 --- a/pr/3514/docs/src/iroh_relay/lib.rs.html +++ b/pr/3514/docs/src/iroh_relay/lib.rs.html @@ -26,7 +26,7 @@ 26//! QAD support and expose metrics. 27// Based on tailscale/derp/derp.go 28 -29#![cfg_attr(iroh_docsrs, feature(doc_cfg))] +29#![cfg_attr(iroh_docsrs, feature(doc_auto_cfg))] 30#![deny(missing_docs, rustdoc::broken_intra_doc_links)] 31#![cfg_attr(not(test), deny(clippy::unwrap_used))] 32 diff --git a/pr/3514/docs/src/iroh_relay/node_info.rs.html b/pr/3514/docs/src/iroh_relay/node_info.rs.html index f5bcf69fbc..38e8361b1d 100644 --- a/pr/3514/docs/src/iroh_relay/node_info.rs.html +++ b/pr/3514/docs/src/iroh_relay/node_info.rs.html @@ -89,12 +89,12 @@ 89pub trait NodeIdExt { 90 /// Encodes a [`NodeId`] in [`z-base-32`] encoding. 91 /// -92 /// [`z-base-32`]: https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt +92 /// [z-base-32]: https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt 93 fn to_z32(&self) -> String; 94 95 /// Parses a [`NodeId`] from [`z-base-32`] encoding. 96 /// -97 /// [`z-base-32`]: https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt +97 /// [z-base-32]: https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt 98 fn from_z32(s: &str) -> Result<NodeId, DecodingError>; 99} 100 diff --git a/pr/3514/docs/type.impl/alloc/boxed/struct.Box.js b/pr/3514/docs/type.impl/alloc/boxed/struct.Box.js index 0f59f432f4..8b07d518c4 100644 --- a/pr/3514/docs/type.impl/alloc/boxed/struct.Box.js +++ b/pr/3514/docs/type.impl/alloc/boxed/struct.Box.js @@ -1,9 +1,9 @@ (function() { - var type_impls = Object.fromEntries([["iroh_relay",[["
            §

            impl<T> AsBacktrace for Box<T>
            where\n T: AsBacktrace,

            §

            fn as_backtrace(&self) -> Option<&Backtrace>

            Retrieve the optional backtrace
            ","AsBacktrace","iroh_relay::dns::BoxIter"],["
            1.64.0 · Source§

            impl<T> AsFd for Box<T>
            where\n T: AsFd + ?Sized,

            Source§

            fn as_fd(&self) -> BorrowedFd<'_>

            Borrows the file descriptor. Read more
            ","AsFd","iroh_relay::dns::BoxIter"],["
            1.5.0 · Source§

            impl<T, A> AsMut<T> for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn as_mut(&mut self) -> &mut T

            Converts this type into a mutable reference of the (usually inferred) input type.
            ","AsMut","iroh_relay::dns::BoxIter"],["
            1.63.0 · Source§

            impl<T> AsRawFd for Box<T>
            where\n T: AsRawFd,

            Source§

            fn as_raw_fd(&self) -> i32

            Extracts the raw file descriptor. Read more
            ","AsRawFd","iroh_relay::dns::BoxIter"],["
            1.5.0 · Source§

            impl<T, A> AsRef<T> for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn as_ref(&self) -> &T

            Converts this type into a shared reference of the (usually inferred) input type.
            ","AsRef","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncBufRead for Box<T>
            where\n T: AsyncBufRead + Unpin + ?Sized,

            §

            fn poll_fill_buf(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<&[u8], Error>>

            Attempt to return the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
            §

            fn consume(self: Pin<&mut Box<T>>, amt: usize)

            Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to poll_read. Read more
            ","AsyncBufRead","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncBufRead for Box<T>
            where\n T: AsyncBufRead + Unpin + ?Sized,

            §

            fn poll_fill_buf(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<&[u8], Error>>

            Attempts to return the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
            §

            fn consume(self: Pin<&mut Box<T>>, amt: usize)

            Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to poll_read. Read more
            ","AsyncBufRead","iroh_relay::dns::BoxIter"],["
            1.85.0 · Source§

            impl<Args, F, A> AsyncFn<Args> for Box<F, A>
            where\n Args: Tuple,\n F: AsyncFn<Args> + ?Sized,\n A: Allocator,

            Source§

            extern "rust-call" fn async_call(\n &self,\n args: Args,\n) -> <Box<F, A> as AsyncFnMut<Args>>::CallRefFuture<'_>

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Call the AsyncFn, returning a future which may borrow from the called closure.
            ","AsyncFn","iroh_relay::dns::BoxIter"],["
            1.85.0 · Source§

            impl<Args, F, A> AsyncFnMut<Args> for Box<F, A>
            where\n Args: Tuple,\n F: AsyncFnMut<Args> + ?Sized,\n A: Allocator,

            Source§

            type CallRefFuture<'a> = <F as AsyncFnMut<Args>>::CallRefFuture<'a>\nwhere\n Box<F, A>: 'a

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Source§

            extern "rust-call" fn async_call_mut(\n &mut self,\n args: Args,\n) -> <Box<F, A> as AsyncFnMut<Args>>::CallRefFuture<'_>

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Call the AsyncFnMut, returning a future which may borrow from the called closure.
            ","AsyncFnMut","iroh_relay::dns::BoxIter"],["
            1.85.0 · Source§

            impl<Args, F, A> AsyncFnOnce<Args> for Box<F, A>
            where\n Args: Tuple,\n F: AsyncFnOnce<Args> + ?Sized,\n A: Allocator,

            Source§

            type Output = <F as AsyncFnOnce<Args>>::Output

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Output type of the called closure’s future.
            Source§

            type CallOnceFuture = <F as AsyncFnOnce<Args>>::CallOnceFuture

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Future returned by AsyncFnOnce::async_call_once.
            Source§

            extern "rust-call" fn async_call_once(\n self,\n args: Args,\n) -> <Box<F, A> as AsyncFnOnce<Args>>::CallOnceFuture

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Call the AsyncFnOnce, returning a future which may move out of the called closure.
            ","AsyncFnOnce","iroh_relay::dns::BoxIter"],["
            Source§

            impl<S> AsyncIterator for Box<S>
            where\n S: AsyncIterator + Unpin + ?Sized,

            Source§

            type Item = <S as AsyncIterator>::Item

            🔬This is a nightly-only experimental API. (async_iterator)
            The type of items yielded by the async iterator.
            Source§

            fn poll_next(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Option<<Box<S> as AsyncIterator>::Item>>

            🔬This is a nightly-only experimental API. (async_iterator)
            Attempts to pull out the next value of this async iterator, registering the\ncurrent task for wakeup if the value is not yet available, and returning\nNone if the async iterator is exhausted. Read more
            Source§

            fn size_hint(&self) -> (usize, Option<usize>)

            🔬This is a nightly-only experimental API. (async_iterator)
            Returns the bounds on the remaining length of the async iterator. Read more
            ","AsyncIterator","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncRead for Box<T>
            where\n T: AsyncRead + Unpin + ?Sized,

            §

            fn poll_read(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &mut ReadBuf<'_>,\n) -> Poll<Result<(), Error>>

            Attempts to read from the AsyncRead into buf. Read more
            ","AsyncRead","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncRead for Box<T>
            where\n T: AsyncRead + Unpin + ?Sized,

            §

            fn poll_read(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &mut [u8],\n) -> Poll<Result<usize, Error>>

            Attempt to read from the AsyncRead into buf. Read more
            §

            fn poll_read_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &mut [IoSliceMut<'_>],\n) -> Poll<Result<usize, Error>>

            Attempt to read from the AsyncRead into bufs using vectored\nIO operations. Read more
            ","AsyncRead","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncSeek for Box<T>
            where\n T: AsyncSeek + Unpin + ?Sized,

            §

            fn poll_seek(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n pos: SeekFrom,\n) -> Poll<Result<u64, Error>>

            Attempt to seek to an offset, in bytes, in a stream. Read more
            ","AsyncSeek","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncSeek for Box<T>
            where\n T: AsyncSeek + Unpin + ?Sized,

            §

            fn start_seek(self: Pin<&mut Box<T>>, pos: SeekFrom) -> Result<(), Error>

            Attempts to seek to an offset, in bytes, in a stream. Read more
            §

            fn poll_complete(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<u64, Error>>

            Waits for a seek operation to complete. Read more
            ","AsyncSeek","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncWrite for Box<T>
            where\n T: AsyncWrite + Unpin + ?Sized,

            §

            fn poll_write(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &[u8],\n) -> Poll<Result<usize, Error>>

            Attempt to write bytes from buf into the object. Read more
            §

            fn poll_write_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &[IoSlice<'_>],\n) -> Poll<Result<usize, Error>>

            Attempt to write bytes from bufs into the object using vectored\nIO operations. Read more
            §

            fn poll_flush(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Attempt to flush the object, ensuring that any buffered data reach\ntheir destination. Read more
            §

            fn poll_close(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Attempt to close the object. Read more
            ","AsyncWrite","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncWrite for Box<T>
            where\n T: AsyncWrite + Unpin + ?Sized,

            §

            fn poll_write(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &[u8],\n) -> Poll<Result<usize, Error>>

            Attempt to write bytes from buf into the object. Read more
            §

            fn poll_write_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &[IoSlice<'_>],\n) -> Poll<Result<usize, Error>>

            Like poll_write, except that it writes from a slice of buffers. Read more
            §

            fn is_write_vectored(&self) -> bool

            Determines if this writer has an efficient poll_write_vectored\nimplementation. Read more
            §

            fn poll_flush(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Attempts to flush the object, ensuring that any buffered data reach\ntheir destination. Read more
            §

            fn poll_shutdown(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Initiates or attempts to shut down this writer, returning success when\nthe I/O connection has completely shut down. Read more
            ","AsyncWrite","iroh_relay::dns::BoxIter"],["
            §

            impl<T> Body for Box<T>
            where\n T: Body + Unpin + ?Sized,

            §

            type Data = <T as Body>::Data

            Values yielded by the Body.
            §

            type Error = <T as Body>::Error

            The error type this Body might generate.
            §

            fn poll_frame(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Option<Result<Frame<<Box<T> as Body>::Data>, <Box<T> as Body>::Error>>>

            Attempt to pull out the next data buffer of this stream.
            §

            fn is_end_stream(&self) -> bool

            Returns true when the end of stream has been reached. Read more
            §

            fn size_hint(&self) -> SizeHint

            Returns the bounds on the remaining length of the stream. Read more
            ","Body","iroh_relay::dns::BoxIter"],["
            1.1.0 · Source§

            impl<T, A> Borrow<T> for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn borrow(&self) -> &T

            Immutably borrows from an owned value. Read more
            ","Borrow","iroh_relay::dns::BoxIter"],["
            1.1.0 · Source§

            impl<T, A> BorrowMut<T> for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn borrow_mut(&mut self) -> &mut T

            Mutably borrows from an owned value. Read more
            ","BorrowMut","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Box<T>
            where\n T: ?Sized,

            1.4.0 · Source

            pub unsafe fn from_raw(raw: *mut T) -> Box<T>

            Constructs a box from a raw pointer.

            \n

            After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

            \n
            §Safety
            \n

            This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

            \n

            The raw pointer must point to a block of memory allocated by the global allocator.

            \n

            The safety conditions are described in the memory layout section.

            \n
            §Examples
            \n

            Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw:

            \n\n
            let x = Box::new(5);\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
            \n

            Manually create a Box from scratch by using the global allocator:

            \n\n
            use std::alloc::{alloc, Layout};\n\nunsafe {\n    let ptr = alloc(Layout::new::<i32>()) as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw(ptr);\n}
            \n
            Source

            pub unsafe fn from_non_null(ptr: NonNull<T>) -> Box<T>

            🔬This is a nightly-only experimental API. (box_vec_non_null)

            Constructs a box from a NonNull pointer.

            \n

            After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

            \n
            §Safety
            \n

            This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same NonNull pointer.

            \n

            The non-null pointer must point to a block of memory allocated by the global allocator.

            \n

            The safety conditions are described in the memory layout section.

            \n
            §Examples
            \n

            Recreate a Box which was previously converted to a NonNull\npointer using Box::into_non_null:

            \n\n
            #![feature(box_vec_non_null)]\n\nlet x = Box::new(5);\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
            \n

            Manually create a Box from scratch by using the global allocator:

            \n\n
            #![feature(box_vec_non_null)]\n\nuse std::alloc::{alloc, Layout};\nuse std::ptr::NonNull;\n\nunsafe {\n    let non_null = NonNull::new(alloc(Layout::new::<i32>()).cast::<i32>())\n        .expect(\"allocation failed\");\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null(non_null);\n}
            \n
            ",0,"iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Box<T>

            1.0.0 · Source

            pub fn new(x: T) -> Box<T>

            Allocates memory on the heap and then places x into it.

            \n

            This doesn’t actually allocate if T is zero-sized.

            \n
            §Examples
            \n
            let five = Box::new(5);
            \n
            1.82.0 · Source

            pub fn new_uninit() -> Box<MaybeUninit<T>>

            Constructs a new box with uninitialized contents.

            \n
            §Examples
            \n
            let mut five = Box::<u32>::new_uninit();\n// Deferred initialization:\nfive.write(5);\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
            \n
            Source

            pub fn new_zeroed() -> Box<MaybeUninit<T>>

            🔬This is a nightly-only experimental API. (new_zeroed_alloc)

            Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes.

            \n

            See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

            \n
            §Examples
            \n
            #![feature(new_zeroed_alloc)]\n\nlet zero = Box::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
            \n
            1.33.0 · Source

            pub fn pin(x: T) -> Pin<Box<T>>

            Constructs a new Pin<Box<T>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

            \n

            Constructing and pinning of the Box can also be done in two steps: Box::pin(x)\ndoes the same as Box::into_pin(Box::new(x)). Consider using\ninto_pin if you already have a Box<T>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new.

            \n
            Source

            pub fn try_new(x: T) -> Result<Box<T>, AllocError>

            🔬This is a nightly-only experimental API. (allocator_api)

            Allocates memory on the heap then places x into it,\nreturning an error if the allocation fails

            \n

            This doesn’t actually allocate if T is zero-sized.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nlet five = Box::try_new(5)?;
            \n
            Source

            pub fn try_new_uninit() -> Result<Box<MaybeUninit<T>>, AllocError>

            🔬This is a nightly-only experimental API. (allocator_api)

            Constructs a new box with uninitialized contents on the heap,\nreturning an error if the allocation fails

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nlet mut five = Box::<u32>::try_new_uninit()?;\n// Deferred initialization:\nfive.write(5);\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
            \n
            Source

            pub fn try_new_zeroed() -> Result<Box<MaybeUninit<T>>, AllocError>

            🔬This is a nightly-only experimental API. (allocator_api)

            Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes on the heap

            \n

            See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nlet zero = Box::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
            \n
            ",0,"iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, A> Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source

            pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Box<T, A>

            🔬This is a nightly-only experimental API. (allocator_api)

            Constructs a box from a raw pointer in the given allocator.

            \n

            After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

            \n
            §Safety
            \n

            This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

            \n

            The raw pointer must point to a block of memory allocated by alloc.

            \n
            §Examples
            \n

            Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw_with_allocator:

            \n\n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
            \n

            Manually create a Box from scratch by using the system allocator:

            \n\n
            #![feature(allocator_api, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let ptr = System.allocate(Layout::new::<i32>())?.as_mut_ptr() as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw_in(ptr, System);\n}
            \n
            Source

            pub const unsafe fn from_non_null_in(raw: NonNull<T>, alloc: A) -> Box<T, A>

            🔬This is a nightly-only experimental API. (allocator_api)

            Constructs a box from a NonNull pointer in the given allocator.

            \n

            After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

            \n
            §Safety
            \n

            This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

            \n

            The non-null pointer must point to a block of memory allocated by alloc.

            \n
            §Examples
            \n

            Recreate a Box which was previously converted to a NonNull pointer\nusing Box::into_non_null_with_allocator:

            \n\n
            #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
            \n

            Manually create a Box from scratch by using the system allocator:

            \n\n
            #![feature(allocator_api, box_vec_non_null, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let non_null = System.allocate(Layout::new::<i32>())?.cast::<i32>();\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null_in(non_null, System);\n}
            \n
            1.4.0 · Source

            pub fn into_raw(b: Box<T, A>) -> *mut T

            Consumes the Box, returning a wrapped raw pointer.

            \n

            The pointer will be properly aligned and non-null.

            \n

            After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw function, allowing the Box destructor to perform\nthe cleanup.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::into_raw(b) instead of b.into_raw(). This\nis so that there is no conflict with a method on the inner type.

            \n
            §Examples
            \n

            Converting the raw pointer back into a Box with Box::from_raw\nfor automatic cleanup:

            \n\n
            let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
            \n

            Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

            \n\n
            use std::alloc::{dealloc, Layout};\nuse std::ptr;\n\nlet x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    dealloc(ptr as *mut u8, Layout::new::<String>());\n}
            \n

            Note: This is equivalent to the following:

            \n\n
            let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    drop(Box::from_raw(ptr));\n}
            \n
            Source

            pub fn into_non_null(b: Box<T, A>) -> NonNull<T>

            🔬This is a nightly-only experimental API. (box_vec_non_null)

            Consumes the Box, returning a wrapped NonNull pointer.

            \n

            The pointer will be properly aligned.

            \n

            After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null function, allowing the Box destructor to\nperform the cleanup.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::into_non_null(b) instead of b.into_non_null().\nThis is so that there is no conflict with a method on the inner type.

            \n
            §Examples
            \n

            Converting the NonNull pointer back into a Box with Box::from_non_null\nfor automatic cleanup:

            \n\n
            #![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
            \n

            Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

            \n\n
            #![feature(box_vec_non_null)]\n\nuse std::alloc::{dealloc, Layout};\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    non_null.drop_in_place();\n    dealloc(non_null.as_ptr().cast::<u8>(), Layout::new::<String>());\n}
            \n

            Note: This is equivalent to the following:

            \n\n
            #![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    drop(Box::from_non_null(non_null));\n}
            \n
            Source

            pub fn into_raw_with_allocator(b: Box<T, A>) -> (*mut T, A)

            🔬This is a nightly-only experimental API. (allocator_api)

            Consumes the Box, returning a wrapped raw pointer and the allocator.

            \n

            The pointer will be properly aligned and non-null.

            \n

            After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw_in function, allowing the Box destructor to perform\nthe cleanup.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::into_raw_with_allocator(b) instead of b.into_raw_with_allocator(). This\nis so that there is no conflict with a method on the inner type.

            \n
            §Examples
            \n

            Converting the raw pointer back into a Box with Box::from_raw_in\nfor automatic cleanup:

            \n\n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
            \n

            Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

            \n\n
            #![feature(allocator_api)]\n\nuse std::alloc::{Allocator, Layout, System};\nuse std::ptr::{self, NonNull};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    let non_null = NonNull::new_unchecked(ptr);\n    alloc.deallocate(non_null.cast(), Layout::new::<String>());\n}
            \n
            Source

            pub fn into_non_null_with_allocator(b: Box<T, A>) -> (NonNull<T>, A)

            🔬This is a nightly-only experimental API. (allocator_api)

            Consumes the Box, returning a wrapped NonNull pointer and the allocator.

            \n

            The pointer will be properly aligned.

            \n

            After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null_in function, allowing the Box destructor to\nperform the cleanup.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::into_non_null_with_allocator(b) instead of\nb.into_non_null_with_allocator(). This is so that there is no\nconflict with a method on the inner type.

            \n
            §Examples
            \n

            Converting the NonNull pointer back into a Box with\nBox::from_non_null_in for automatic cleanup:

            \n\n
            #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
            \n

            Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

            \n\n
            #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nunsafe {\n    non_null.drop_in_place();\n    alloc.deallocate(non_null.cast::<u8>(), Layout::new::<String>());\n}
            \n
            Source

            pub fn as_mut_ptr(b: &mut Box<T, A>) -> *mut T

            🔬This is a nightly-only experimental API. (box_as_ptr)

            Returns a raw mutable pointer to the Box’s contents.

            \n

            The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

            \n

            This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize references to the memory\nmay still invalidate this pointer.\nSee the example below for how this guarantee can be used.

            \n
            §Examples
            \n

            Due to the aliasing guarantee, the following code is legal:

            \n\n
            #![feature(box_as_ptr)]\n\nunsafe {\n    let mut b = Box::new(0);\n    let ptr1 = Box::as_mut_ptr(&mut b);\n    ptr1.write(1);\n    let ptr2 = Box::as_mut_ptr(&mut b);\n    ptr2.write(2);\n    // Notably, the write to `ptr2` did *not* invalidate `ptr1`:\n    ptr1.write(3);\n}
            \n
            Source

            pub fn as_ptr(b: &Box<T, A>) -> *const T

            🔬This is a nightly-only experimental API. (box_as_ptr)

            Returns a raw pointer to the Box’s contents.

            \n

            The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

            \n

            The caller must also ensure that the memory the pointer (non-transitively) points to\nis never written to (except inside an UnsafeCell) using this pointer or any pointer\nderived from it. If you need to mutate the contents of the Box, use as_mut_ptr.

            \n

            This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize mutable references to the memory,\nas well as writing to this memory, may still invalidate this pointer.\nSee the example below for how this guarantee can be used.

            \n
            §Examples
            \n

            Due to the aliasing guarantee, the following code is legal:

            \n\n
            #![feature(box_as_ptr)]\n\nunsafe {\n    let mut v = Box::new(0);\n    let ptr1 = Box::as_ptr(&v);\n    let ptr2 = Box::as_mut_ptr(&mut v);\n    let _val = ptr2.read();\n    // No write to this memory has happened yet, so `ptr1` is still valid.\n    let _val = ptr1.read();\n    // However, once we do a write...\n    ptr2.write(1);\n    // ... `ptr1` is no longer valid.\n    // This would be UB: let _val = ptr1.read();\n}
            \n
            Source

            pub const fn allocator(b: &Box<T, A>) -> &A

            🔬This is a nightly-only experimental API. (allocator_api)

            Returns a reference to the underlying allocator.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::allocator(&b) instead of b.allocator(). This\nis so that there is no conflict with a method on the inner type.

            \n
            1.26.0 · Source

            pub fn leak<'a>(b: Box<T, A>) -> &'a mut T
            where\n A: 'a,

            Consumes and leaks the Box, returning a mutable reference,\n&'a mut T.

            \n

            Note that the type T must outlive the chosen lifetime 'a. If the type\nhas only static references, or none at all, then this may be chosen to be\n'static.

            \n

            This function is mainly useful for data that lives for the remainder of\nthe program’s life. Dropping the returned reference will cause a memory\nleak. If this is not acceptable, the reference should first be wrapped\nwith the Box::from_raw function producing a Box. This Box can\nthen be dropped which will properly destroy T and release the\nallocated memory.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::leak(b) instead of b.leak(). This\nis so that there is no conflict with a method on the inner type.

            \n
            §Examples
            \n

            Simple usage:

            \n\n
            let x = Box::new(41);\nlet static_ref: &'static mut usize = Box::leak(x);\n*static_ref += 1;\nassert_eq!(*static_ref, 42);
            \n

            Unsized data:

            \n\n
            let x = vec![1, 2, 3].into_boxed_slice();\nlet static_ref = Box::leak(x);\nstatic_ref[0] = 4;\nassert_eq!(*static_ref, [4, 2, 3]);
            \n
            1.63.0 (const: unstable) · Source

            pub fn into_pin(boxed: Box<T, A>) -> Pin<Box<T, A>>
            where\n A: 'static,

            Converts a Box<T> into a Pin<Box<T>>. If T does not implement Unpin, then\n*boxed will be pinned in memory and unable to be moved.

            \n

            This conversion does not allocate on the heap and happens in place.

            \n

            This is also available via From.

            \n

            Constructing and pinning a Box with Box::into_pin(Box::new(x))\ncan also be written more concisely using Box::pin(x).\nThis into_pin method is useful if you already have a Box<T>, or you are\nconstructing a (pinned) Box in a different way than with Box::new.

            \n
            §Notes
            \n

            It’s not recommended that crates add an impl like From<Box<T>> for Pin<T>,\nas it’ll introduce an ambiguity when calling Pin::from.\nA demonstration of such a poor impl is shown below.

            \n\n
            ⓘ
            struct Foo; // A type defined in this crate.\nimpl From<Box<()>> for Pin<Foo> {\n    fn from(_: Box<()>) -> Pin<Foo> {\n        Pin::new(Foo)\n    }\n}\n\nlet foo = Box::new(());\nlet bar = Pin::from(foo);
            \n
            ",0,"iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, A> Box<T, A>
            where\n A: Allocator,

            Source

            pub fn new_in(x: T, alloc: A) -> Box<T, A>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)

            Allocates memory in the given allocator then places x into it.

            \n

            This doesn’t actually allocate if T is zero-sized.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::new_in(5, System);
            \n
            Source

            pub fn try_new_in(x: T, alloc: A) -> Result<Box<T, A>, AllocError>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)

            Allocates memory in the given allocator then places x into it,\nreturning an error if the allocation fails

            \n

            This doesn’t actually allocate if T is zero-sized.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::try_new_in(5, System)?;
            \n
            Source

            pub fn new_uninit_in(alloc: A) -> Box<MaybeUninit<T>, A>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)

            Constructs a new box with uninitialized contents in the provided allocator.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::new_uninit_in(System);\n// Deferred initialization:\nfive.write(5);\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
            \n
            Source

            pub fn try_new_uninit_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)

            Constructs a new box with uninitialized contents in the provided allocator,\nreturning an error if the allocation fails

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::try_new_uninit_in(System)?;\n// Deferred initialization:\nfive.write(5);\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
            \n
            Source

            pub fn new_zeroed_in(alloc: A) -> Box<MaybeUninit<T>, A>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)

            Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator.

            \n

            See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
            \n
            Source

            pub fn try_new_zeroed_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)

            Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator,\nreturning an error if the allocation fails,

            \n

            See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
            \n
            Source

            pub fn pin_in(x: T, alloc: A) -> Pin<Box<T, A>>
            where\n A: 'static + Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)

            Constructs a new Pin<Box<T, A>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

            \n

            Constructing and pinning of the Box can also be done in two steps: Box::pin_in(x, alloc)\ndoes the same as Box::into_pin(Box::new_in(x, alloc)). Consider using\ninto_pin if you already have a Box<T, A>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new_in.

            \n
            Source

            pub fn into_boxed_slice(boxed: Box<T, A>) -> Box<[T], A>

            🔬This is a nightly-only experimental API. (box_into_boxed_slice)

            Converts a Box<T> into a Box<[T]>

            \n

            This conversion does not allocate on the heap and happens in place.

            \n
            Source

            pub fn into_inner(boxed: Box<T, A>) -> T

            🔬This is a nightly-only experimental API. (box_into_inner)

            Consumes the Box, returning the wrapped value.

            \n
            §Examples
            \n
            #![feature(box_into_inner)]\n\nlet c = Box::new(5);\n\nassert_eq!(Box::into_inner(c), 5);
            \n
            ",0,"iroh_relay::dns::BoxIter"],["
            §

            impl<T> Buf for Box<T>
            where\n T: Buf + ?Sized,

            §

            fn remaining(&self) -> usize

            Returns the number of bytes between the current position and the end of\nthe buffer. Read more
            §

            fn chunk(&self) -> &[u8] ⓘ

            Returns a slice starting at the current position and of length between 0\nand Buf::remaining(). Note that this can return a shorter slice (this\nallows non-continuous internal representation). Read more
            §

            fn chunks_vectored<'b>(&'b self, dst: &mut [IoSlice<'b>]) -> usize

            Fills dst with potentially multiple slices starting at self’s\ncurrent position. Read more
            §

            fn advance(&mut self, cnt: usize)

            Advance the internal cursor of the Buf Read more
            §

            fn has_remaining(&self) -> bool

            Returns true if there are any more bytes to consume Read more
            §

            fn copy_to_slice(&mut self, dst: &mut [u8])

            Copies bytes from self into dst. Read more
            §

            fn get_u8(&mut self) -> u8

            Gets an unsigned 8 bit integer from self. Read more
            §

            fn get_i8(&mut self) -> i8

            Gets a signed 8 bit integer from self. Read more
            §

            fn get_u16(&mut self) -> u16

            Gets an unsigned 16 bit integer from self in big-endian byte order. Read more
            §

            fn get_u16_le(&mut self) -> u16

            Gets an unsigned 16 bit integer from self in little-endian byte order. Read more
            §

            fn get_u16_ne(&mut self) -> u16

            Gets an unsigned 16 bit integer from self in native-endian byte order. Read more
            §

            fn get_i16(&mut self) -> i16

            Gets a signed 16 bit integer from self in big-endian byte order. Read more
            §

            fn get_i16_le(&mut self) -> i16

            Gets a signed 16 bit integer from self in little-endian byte order. Read more
            §

            fn get_i16_ne(&mut self) -> i16

            Gets a signed 16 bit integer from self in native-endian byte order. Read more
            §

            fn get_u32(&mut self) -> u32

            Gets an unsigned 32 bit integer from self in the big-endian byte order. Read more
            §

            fn get_u32_le(&mut self) -> u32

            Gets an unsigned 32 bit integer from self in the little-endian byte order. Read more
            §

            fn get_u32_ne(&mut self) -> u32

            Gets an unsigned 32 bit integer from self in native-endian byte order. Read more
            §

            fn get_i32(&mut self) -> i32

            Gets a signed 32 bit integer from self in big-endian byte order. Read more
            §

            fn get_i32_le(&mut self) -> i32

            Gets a signed 32 bit integer from self in little-endian byte order. Read more
            §

            fn get_i32_ne(&mut self) -> i32

            Gets a signed 32 bit integer from self in native-endian byte order. Read more
            §

            fn get_u64(&mut self) -> u64

            Gets an unsigned 64 bit integer from self in big-endian byte order. Read more
            §

            fn get_u64_le(&mut self) -> u64

            Gets an unsigned 64 bit integer from self in little-endian byte order. Read more
            §

            fn get_u64_ne(&mut self) -> u64

            Gets an unsigned 64 bit integer from self in native-endian byte order. Read more
            §

            fn get_i64(&mut self) -> i64

            Gets a signed 64 bit integer from self in big-endian byte order. Read more
            §

            fn get_i64_le(&mut self) -> i64

            Gets a signed 64 bit integer from self in little-endian byte order. Read more
            §

            fn get_i64_ne(&mut self) -> i64

            Gets a signed 64 bit integer from self in native-endian byte order. Read more
            §

            fn get_u128(&mut self) -> u128

            Gets an unsigned 128 bit integer from self in big-endian byte order. Read more
            §

            fn get_u128_le(&mut self) -> u128

            Gets an unsigned 128 bit integer from self in little-endian byte order. Read more
            §

            fn get_u128_ne(&mut self) -> u128

            Gets an unsigned 128 bit integer from self in native-endian byte order. Read more
            §

            fn get_i128(&mut self) -> i128

            Gets a signed 128 bit integer from self in big-endian byte order. Read more
            §

            fn get_i128_le(&mut self) -> i128

            Gets a signed 128 bit integer from self in little-endian byte order. Read more
            §

            fn get_i128_ne(&mut self) -> i128

            Gets a signed 128 bit integer from self in native-endian byte order. Read more
            §

            fn get_uint(&mut self, nbytes: usize) -> u64

            Gets an unsigned n-byte integer from self in big-endian byte order. Read more
            §

            fn get_uint_le(&mut self, nbytes: usize) -> u64

            Gets an unsigned n-byte integer from self in little-endian byte order. Read more
            §

            fn get_uint_ne(&mut self, nbytes: usize) -> u64

            Gets an unsigned n-byte integer from self in native-endian byte order. Read more
            §

            fn get_int(&mut self, nbytes: usize) -> i64

            Gets a signed n-byte integer from self in big-endian byte order. Read more
            §

            fn get_int_le(&mut self, nbytes: usize) -> i64

            Gets a signed n-byte integer from self in little-endian byte order. Read more
            §

            fn get_int_ne(&mut self, nbytes: usize) -> i64

            Gets a signed n-byte integer from self in native-endian byte order. Read more
            §

            fn get_f32(&mut self) -> f32

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in big-endian byte order. Read more
            §

            fn get_f32_le(&mut self) -> f32

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in little-endian byte order. Read more
            §

            fn get_f32_ne(&mut self) -> f32

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in native-endian byte order. Read more
            §

            fn get_f64(&mut self) -> f64

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in big-endian byte order. Read more
            §

            fn get_f64_le(&mut self) -> f64

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in little-endian byte order. Read more
            §

            fn get_f64_ne(&mut self) -> f64

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in native-endian byte order. Read more
            §

            fn try_copy_to_slice(&mut self, dst: &mut [u8]) -> Result<(), TryGetError>

            Copies bytes from self into dst. Read more
            §

            fn try_get_u8(&mut self) -> Result<u8, TryGetError>

            Gets an unsigned 8 bit integer from self. Read more
            §

            fn try_get_i8(&mut self) -> Result<i8, TryGetError>

            Gets a signed 8 bit integer from self. Read more
            §

            fn try_get_u16(&mut self) -> Result<u16, TryGetError>

            Gets an unsigned 16 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_u16_le(&mut self) -> Result<u16, TryGetError>

            Gets an unsigned 16 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_u16_ne(&mut self) -> Result<u16, TryGetError>

            Gets an unsigned 16 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_i16(&mut self) -> Result<i16, TryGetError>

            Gets a signed 16 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_i16_le(&mut self) -> Result<i16, TryGetError>

            Gets an signed 16 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_i16_ne(&mut self) -> Result<i16, TryGetError>

            Gets a signed 16 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_u32(&mut self) -> Result<u32, TryGetError>

            Gets an unsigned 32 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_u32_le(&mut self) -> Result<u32, TryGetError>

            Gets an unsigned 32 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_u32_ne(&mut self) -> Result<u32, TryGetError>

            Gets an unsigned 32 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_i32(&mut self) -> Result<i32, TryGetError>

            Gets a signed 32 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_i32_le(&mut self) -> Result<i32, TryGetError>

            Gets a signed 32 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_i32_ne(&mut self) -> Result<i32, TryGetError>

            Gets a signed 32 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_u64(&mut self) -> Result<u64, TryGetError>

            Gets an unsigned 64 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_u64_le(&mut self) -> Result<u64, TryGetError>

            Gets an unsigned 64 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_u64_ne(&mut self) -> Result<u64, TryGetError>

            Gets an unsigned 64 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_i64(&mut self) -> Result<i64, TryGetError>

            Gets a signed 64 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_i64_le(&mut self) -> Result<i64, TryGetError>

            Gets a signed 64 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_i64_ne(&mut self) -> Result<i64, TryGetError>

            Gets a signed 64 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_u128(&mut self) -> Result<u128, TryGetError>

            Gets an unsigned 128 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_u128_le(&mut self) -> Result<u128, TryGetError>

            Gets an unsigned 128 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_u128_ne(&mut self) -> Result<u128, TryGetError>

            Gets an unsigned 128 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_i128(&mut self) -> Result<i128, TryGetError>

            Gets a signed 128 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_i128_le(&mut self) -> Result<i128, TryGetError>

            Gets a signed 128 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_i128_ne(&mut self) -> Result<i128, TryGetError>

            Gets a signed 128 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_uint(&mut self, nbytes: usize) -> Result<u64, TryGetError>

            Gets an unsigned n-byte integer from self in big-endian byte order. Read more
            §

            fn try_get_uint_le(&mut self, nbytes: usize) -> Result<u64, TryGetError>

            Gets an unsigned n-byte integer from self in little-endian byte order. Read more
            §

            fn try_get_uint_ne(&mut self, nbytes: usize) -> Result<u64, TryGetError>

            Gets an unsigned n-byte integer from self in native-endian byte order. Read more
            §

            fn try_get_int(&mut self, nbytes: usize) -> Result<i64, TryGetError>

            Gets a signed n-byte integer from self in big-endian byte order. Read more
            §

            fn try_get_int_le(&mut self, nbytes: usize) -> Result<i64, TryGetError>

            Gets a signed n-byte integer from self in little-endian byte order. Read more
            §

            fn try_get_int_ne(&mut self, nbytes: usize) -> Result<i64, TryGetError>

            Gets a signed n-byte integer from self in native-endian byte order. Read more
            §

            fn try_get_f32(&mut self) -> Result<f32, TryGetError>

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in big-endian byte order. Read more
            §

            fn try_get_f32_le(&mut self) -> Result<f32, TryGetError>

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in little-endian byte order. Read more
            §

            fn try_get_f32_ne(&mut self) -> Result<f32, TryGetError>

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in native-endian byte order. Read more
            §

            fn try_get_f64(&mut self) -> Result<f64, TryGetError>

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in big-endian byte order. Read more
            §

            fn try_get_f64_le(&mut self) -> Result<f64, TryGetError>

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in little-endian byte order. Read more
            §

            fn try_get_f64_ne(&mut self) -> Result<f64, TryGetError>

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in native-endian byte order. Read more
            §

            fn copy_to_bytes(&mut self, len: usize) -> Bytes

            Consumes len bytes inside self and returns new instance of Bytes\nwith this data. Read more
            §

            fn take(self, limit: usize) -> Take<Self>
            where\n Self: Sized,

            Creates an adaptor which will read at most limit bytes from self. Read more
            §

            fn chain<U>(self, next: U) -> Chain<Self, U>
            where\n U: Buf,\n Self: Sized,

            Creates an adaptor which will chain this buffer with another. Read more
            §

            fn reader(self) -> Reader<Self>
            where\n Self: Sized,

            Creates an adaptor which implements the Read trait for self. Read more
            ","Buf","iroh_relay::dns::BoxIter"],["
            §

            impl<T> BufMut for Box<T>
            where\n T: BufMut + ?Sized,

            §

            fn remaining_mut(&self) -> usize

            Returns the number of bytes that can be written from the current\nposition until the end of the buffer is reached. Read more
            §

            fn chunk_mut(&mut self) -> &mut UninitSlice

            Returns a mutable slice starting at the current BufMut position and of\nlength between 0 and BufMut::remaining_mut(). Note that this can be shorter than the\nwhole remainder of the buffer (this allows non-continuous implementation). Read more
            §

            unsafe fn advance_mut(&mut self, cnt: usize)

            Advance the internal cursor of the BufMut Read more
            §

            fn put_slice(&mut self, src: &[u8])

            Transfer bytes into self from src and advance the cursor by the\nnumber of bytes written. Read more
            §

            fn put_u8(&mut self, n: u8)

            Writes an unsigned 8 bit integer to self. Read more
            §

            fn put_i8(&mut self, n: i8)

            Writes a signed 8 bit integer to self. Read more
            §

            fn put_u16(&mut self, n: u16)

            Writes an unsigned 16 bit integer to self in big-endian byte order. Read more
            §

            fn put_u16_le(&mut self, n: u16)

            Writes an unsigned 16 bit integer to self in little-endian byte order. Read more
            §

            fn put_u16_ne(&mut self, n: u16)

            Writes an unsigned 16 bit integer to self in native-endian byte order. Read more
            §

            fn put_i16(&mut self, n: i16)

            Writes a signed 16 bit integer to self in big-endian byte order. Read more
            §

            fn put_i16_le(&mut self, n: i16)

            Writes a signed 16 bit integer to self in little-endian byte order. Read more
            §

            fn put_i16_ne(&mut self, n: i16)

            Writes a signed 16 bit integer to self in native-endian byte order. Read more
            §

            fn put_u32(&mut self, n: u32)

            Writes an unsigned 32 bit integer to self in big-endian byte order. Read more
            §

            fn put_u32_le(&mut self, n: u32)

            Writes an unsigned 32 bit integer to self in little-endian byte order. Read more
            §

            fn put_u32_ne(&mut self, n: u32)

            Writes an unsigned 32 bit integer to self in native-endian byte order. Read more
            §

            fn put_i32(&mut self, n: i32)

            Writes a signed 32 bit integer to self in big-endian byte order. Read more
            §

            fn put_i32_le(&mut self, n: i32)

            Writes a signed 32 bit integer to self in little-endian byte order. Read more
            §

            fn put_i32_ne(&mut self, n: i32)

            Writes a signed 32 bit integer to self in native-endian byte order. Read more
            §

            fn put_u64(&mut self, n: u64)

            Writes an unsigned 64 bit integer to self in the big-endian byte order. Read more
            §

            fn put_u64_le(&mut self, n: u64)

            Writes an unsigned 64 bit integer to self in little-endian byte order. Read more
            §

            fn put_u64_ne(&mut self, n: u64)

            Writes an unsigned 64 bit integer to self in native-endian byte order. Read more
            §

            fn put_i64(&mut self, n: i64)

            Writes a signed 64 bit integer to self in the big-endian byte order. Read more
            §

            fn put_i64_le(&mut self, n: i64)

            Writes a signed 64 bit integer to self in little-endian byte order. Read more
            §

            fn put_i64_ne(&mut self, n: i64)

            Writes a signed 64 bit integer to self in native-endian byte order. Read more
            §

            fn has_remaining_mut(&self) -> bool

            Returns true if there is space in self for more bytes. Read more
            §

            fn put<T>(&mut self, src: T)
            where\n T: Buf,\n Self: Sized,

            Transfer bytes into self from src and advance the cursor by the\nnumber of bytes written. Read more
            §

            fn put_bytes(&mut self, val: u8, cnt: usize)

            Put cnt bytes val into self. Read more
            §

            fn put_u128(&mut self, n: u128)

            Writes an unsigned 128 bit integer to self in the big-endian byte order. Read more
            §

            fn put_u128_le(&mut self, n: u128)

            Writes an unsigned 128 bit integer to self in little-endian byte order. Read more
            §

            fn put_u128_ne(&mut self, n: u128)

            Writes an unsigned 128 bit integer to self in native-endian byte order. Read more
            §

            fn put_i128(&mut self, n: i128)

            Writes a signed 128 bit integer to self in the big-endian byte order. Read more
            §

            fn put_i128_le(&mut self, n: i128)

            Writes a signed 128 bit integer to self in little-endian byte order. Read more
            §

            fn put_i128_ne(&mut self, n: i128)

            Writes a signed 128 bit integer to self in native-endian byte order. Read more
            §

            fn put_uint(&mut self, n: u64, nbytes: usize)

            Writes an unsigned n-byte integer to self in big-endian byte order. Read more
            §

            fn put_uint_le(&mut self, n: u64, nbytes: usize)

            Writes an unsigned n-byte integer to self in the little-endian byte order. Read more
            §

            fn put_uint_ne(&mut self, n: u64, nbytes: usize)

            Writes an unsigned n-byte integer to self in the native-endian byte order. Read more
            §

            fn put_int(&mut self, n: i64, nbytes: usize)

            Writes low nbytes of a signed integer to self in big-endian byte order. Read more
            §

            fn put_int_le(&mut self, n: i64, nbytes: usize)

            Writes low nbytes of a signed integer to self in little-endian byte order. Read more
            §

            fn put_int_ne(&mut self, n: i64, nbytes: usize)

            Writes low nbytes of a signed integer to self in native-endian byte order. Read more
            §

            fn put_f32(&mut self, n: f32)

            Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in big-endian byte order. Read more
            §

            fn put_f32_le(&mut self, n: f32)

            Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in little-endian byte order. Read more
            §

            fn put_f32_ne(&mut self, n: f32)

            Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in native-endian byte order. Read more
            §

            fn put_f64(&mut self, n: f64)

            Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in big-endian byte order. Read more
            §

            fn put_f64_le(&mut self, n: f64)

            Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in little-endian byte order. Read more
            §

            fn put_f64_ne(&mut self, n: f64)

            Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in native-endian byte order. Read more
            §

            fn limit(self, limit: usize) -> Limit<Self>
            where\n Self: Sized,

            Creates an adaptor which can write at most limit bytes to self. Read more
            §

            fn writer(self) -> Writer<Self>
            where\n Self: Sized,

            Creates an adaptor which implements the Write trait for self. Read more
            §

            fn chain_mut<U>(self, next: U) -> Chain<Self, U>
            where\n U: BufMut,\n Self: Sized,

            Creates an adapter which will chain this buffer with another. Read more
            ","BufMut","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<B> BufRead for Box<B>
            where\n B: BufRead + ?Sized,

            Source§

            fn fill_buf(&mut self) -> Result<&[u8], Error>

            Returns the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
            Source§

            fn consume(&mut self, amt: usize)

            Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to read. Read more
            Source§

            fn has_data_left(&mut self) -> Result<bool, Error>

            🔬This is a nightly-only experimental API. (buf_read_has_data_left)
            Checks if the underlying Read has any data left to be read. Read more
            Source§

            fn read_until(&mut self, byte: u8, buf: &mut Vec<u8>) -> Result<usize, Error>

            Reads all bytes into buf until the delimiter byte or EOF is reached. Read more
            Source§

            fn skip_until(&mut self, byte: u8) -> Result<usize, Error>

            Skips all bytes until the delimiter byte or EOF is reached. Read more
            Source§

            fn read_line(&mut self, buf: &mut String) -> Result<usize, Error>

            Reads all bytes until a newline (the 0xA byte) is reached, and append\nthem to the provided String buffer. Read more
            1.0.0 · Source§

            fn split(self, byte: u8) -> Split<Self>
            where\n Self: Sized,

            Returns an iterator over the contents of this reader split on the byte\nbyte. Read more
            1.0.0 · Source§

            fn lines(self) -> Lines<Self>
            where\n Self: Sized,

            Returns an iterator over the lines of this reader. Read more
            ","BufRead","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Clear for Box<T>
            where\n T: Clear,

            Source§

            fn clear(&mut self)

            Clear all data in self, retaining the allocated capacithy.
            ","Clear","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Clone for Box<T, A>
            where\n T: Clone,\n A: Allocator + Clone,

            Source§

            fn clone(&self) -> Box<T, A>

            Returns a new box with a clone() of this box’s contents.

            \n
            §Examples
            \n
            let x = Box::new(5);\nlet y = x.clone();\n\n// The value is the same\nassert_eq!(x, y);\n\n// But they are unique objects\nassert_ne!(&*x as *const i32, &*y as *const i32);
            \n
            Source§

            fn clone_from(&mut self, source: &Box<T, A>)

            Copies source’s contents into self without creating a new allocation.

            \n
            §Examples
            \n
            let x = Box::new(5);\nlet mut y = Box::new(10);\nlet yp: *const i32 = &*y;\n\ny.clone_from(&x);\n\n// The value is the same\nassert_eq!(x, y);\n\n// And no allocation occurred\nassert_eq!(yp, &*y);
            \n
            ","Clone","iroh_relay::dns::BoxIter"],["
            Source§

            impl<G, R, A> Coroutine<R> for Box<G, A>
            where\n G: Coroutine<R> + Unpin + ?Sized,\n A: Allocator,

            Source§

            type Yield = <G as Coroutine<R>>::Yield

            🔬This is a nightly-only experimental API. (coroutine_trait)
            The type of value this coroutine yields. Read more
            Source§

            type Return = <G as Coroutine<R>>::Return

            🔬This is a nightly-only experimental API. (coroutine_trait)
            The type of value this coroutine returns. Read more
            Source§

            fn resume(\n self: Pin<&mut Box<G, A>>,\n arg: R,\n) -> CoroutineState<<Box<G, A> as Coroutine<R>>::Yield, <Box<G, A> as Coroutine<R>>::Return>

            🔬This is a nightly-only experimental API. (coroutine_trait)
            Resumes the execution of this coroutine. Read more
            ","Coroutine","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Debug for Box<T, A>
            where\n T: Debug + ?Sized,\n A: Allocator,

            Source§

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

            Formats the value using the given formatter. Read more
            ","Debug","iroh_relay::dns::BoxIter"],["
            §

            impl<'a, T> DecodeValue<'a> for Box<T>
            where\n T: DecodeValue<'a>,

            §

            type Error = <T as DecodeValue<'a>>::Error

            Type returned in the event of a decoding error.
            §

            fn decode_value<R>(\n reader: &mut R,\n header: Header,\n) -> Result<Box<T>, <Box<T> as DecodeValue<'a>>::Error>
            where\n R: Reader<'a>,

            Attempt to decode this message using the provided [Reader].
            ","DecodeValue<'a>","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T> Default for Box<T>
            where\n T: Default,

            Source§

            fn default() -> Box<T>

            Creates a Box<T>, with the Default value for T.

            \n
            ","Default","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Deref for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            type Target = T

            The resulting type after dereferencing.
            Source§

            fn deref(&self) -> &T

            Dereferences the value.
            ","Deref","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> DerefMut for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn deref_mut(&mut self) -> &mut T

            Mutably dereferences the value.
            ","DerefMut","iroh_relay::dns::BoxIter"],["
            Source§

            impl<'de, T> Deserialize<'de> for Box<T>
            where\n T: Deserialize<'de>,

            Source§

            fn deserialize<D>(\n deserializer: D,\n) -> Result<Box<T>, <D as Deserializer<'de>>::Error>
            where\n D: Deserializer<'de>,

            Deserialize this value from the given Serde deserializer. Read more
            ","Deserialize<'de>","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Display for Box<T, A>
            where\n T: Display + ?Sized,\n A: Allocator,

            Source§

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

            Formats the value using the given formatter. Read more
            ","Display","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<I, A> DoubleEndedIterator for Box<I, A>
            where\n I: DoubleEndedIterator + ?Sized,\n A: Allocator,

            Source§

            fn next_back(&mut self) -> Option<<I as Iterator>::Item>

            Removes and returns an element from the end of the iterator. Read more
            Source§

            fn nth_back(&mut self, n: usize) -> Option<<I as Iterator>::Item>

            Returns the nth element from the end of the iterator. Read more
            Source§

            fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

            🔬This is a nightly-only experimental API. (iter_advance_by)
            Advances the iterator from the back by n elements. Read more
            1.27.0 · Source§

            fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
            where\n Self: Sized,\n F: FnMut(B, Self::Item) -> R,\n R: Try<Output = B>,

            This is the reverse version of Iterator::try_fold(): it takes\nelements starting from the back of the iterator. Read more
            1.27.0 · Source§

            fn rfold<B, F>(self, init: B, f: F) -> B
            where\n Self: Sized,\n F: FnMut(B, Self::Item) -> B,

            An iterator method that reduces the iterator’s elements to a single,\nfinal value, starting from the back. Read more
            1.27.0 · Source§

            fn rfind<P>(&mut self, predicate: P) -> Option<Self::Item>
            where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

            Searches for an element of an iterator from the back that satisfies a predicate. Read more
            ","DoubleEndedIterator","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Drop for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn drop(&mut self)

            Executes the destructor for this type. Read more
            ","Drop","iroh_relay::dns::BoxIter"],["
            §

            impl<T> EncodeAsVarULE<T> for Box<T>
            where\n T: VarULE + ?Sized,

            §

            fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R

            Calls cb with a piecewise list of byte slices that when concatenated\nproduce the memory pattern of the corresponding instance of T. Read more
            §

            fn encode_var_ule_len(&self) -> usize

            Return the length, in bytes, of the corresponding [VarULE] type
            §

            fn encode_var_ule_write(&self, dst: &mut [u8])

            Write the corresponding [VarULE] type to the dst buffer. dst should\nbe the size of [Self::encode_var_ule_len()]
            ","EncodeAsVarULE","iroh_relay::dns::BoxIter"],["
            §

            impl<T> EncodeValue for Box<T>
            where\n T: EncodeValue,

            §

            fn value_len(&self) -> Result<Length, Error>

            Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
            §

            fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

            Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
            §

            fn header(&self) -> Result<Header, Error>
            where\n Self: Tagged,

            Get the [Header] used to encode this value.
            ","EncodeValue","iroh_relay::dns::BoxIter"],["
            1.8.0 · Source§

            impl<E> Error for Box<E>
            where\n E: Error,

            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 downcasting
            Source§

            fn source(&self) -> Option<&(dyn Error + 'static)>

            Returns the lower-level source of this error, if any. Read more
            Source§

            fn provide<'b>(&'b self, request: &mut Request<'b>)

            🔬This is a nightly-only experimental API. (error_generic_member_access)
            Provides type-based access to context intended for error reports. Read more
            ","Error","iroh_relay::dns::BoxIter"],["
            §

            impl<E> ErrorCompat for Box<E>
            where\n E: ErrorCompat,

            §

            fn backtrace(&self) -> Option<&Backtrace>

            Returns a [Backtrace][] that may be printed.
            §

            fn iter_chain(&self) -> ChainCompat<'_, '_>
            where\n Self: AsErrorSource,

            Returns an iterator for traversing the chain of errors,\nstarting with the current error\nand continuing with recursive calls to Error::source. Read more
            ","ErrorCompat","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<I, A> ExactSizeIterator for Box<I, A>
            where\n I: ExactSizeIterator + ?Sized,\n A: Allocator,

            Source§

            fn len(&self) -> usize

            Returns the exact remaining length of the iterator. Read more
            Source§

            fn is_empty(&self) -> bool

            🔬This is a nightly-only experimental API. (exact_size_is_empty)
            Returns true if the iterator is empty. Read more
            ","ExactSizeIterator","iroh_relay::dns::BoxIter"],["
            1.35.0 · Source§

            impl<Args, F, A> Fn<Args> for Box<F, A>
            where\n Args: Tuple,\n F: Fn<Args> + ?Sized,\n A: Allocator,

            Source§

            extern "rust-call" fn call(\n &self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

            🔬This is a nightly-only experimental API. (fn_traits)
            Performs the call operation.
            ","Fn","iroh_relay::dns::BoxIter"],["
            1.35.0 · Source§

            impl<Args, F, A> FnMut<Args> for Box<F, A>
            where\n Args: Tuple,\n F: FnMut<Args> + ?Sized,\n A: Allocator,

            Source§

            extern "rust-call" fn call_mut(\n &mut self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

            🔬This is a nightly-only experimental API. (fn_traits)
            Performs the call operation.
            ","FnMut","iroh_relay::dns::BoxIter"],["
            1.35.0 · Source§

            impl<Args, F, A> FnOnce<Args> for Box<F, A>
            where\n Args: Tuple,\n F: FnOnce<Args> + ?Sized,\n A: Allocator,

            Source§

            type Output = <F as FnOnce<Args>>::Output

            The returned type after the call operator is used.
            Source§

            extern "rust-call" fn call_once(\n self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

            🔬This is a nightly-only experimental API. (fn_traits)
            Performs the call operation.
            ","FnOnce","iroh_relay::dns::BoxIter"],["
            1.6.0 · Source§

            impl<T> From<T> for Box<T>

            Source§

            fn from(t: T) -> Box<T>

            Converts a T into a Box<T>

            \n

            The conversion allocates on the heap and moves t\nfrom the stack into it.

            \n
            §Examples
            \n
            let x = 5;\nlet boxed = Box::new(5);\n\nassert_eq!(Box::from(x), boxed);
            \n
            ","From","iroh_relay::dns::BoxIter"],["
            §

            impl<F> FusedFuture for Box<F>
            where\n F: FusedFuture + Unpin + ?Sized,

            §

            fn is_terminated(&self) -> bool

            Returns true if the underlying future should no longer be polled.
            ","FusedFuture","iroh_relay::dns::BoxIter"],["
            §

            impl<S> FusedStream for Box<S>
            where\n S: FusedStream + Unpin + ?Sized,

            §

            fn is_terminated(&self) -> bool

            Returns true if the stream should no longer be polled.
            ","FusedStream","iroh_relay::dns::BoxIter"],["
            1.36.0 · Source§

            impl<F, A> Future for Box<F, A>
            where\n F: Future + Unpin + ?Sized,\n A: Allocator,

            Source§

            type Output = <F as Future>::Output

            The type of value produced on completion.
            Source§

            fn poll(\n self: Pin<&mut Box<F, A>>,\n cx: &mut Context<'_>,\n) -> Poll<<Box<F, A> as Future>::Output>

            Attempts to resolve the future to a final value, registering\nthe current task for wakeup if the value is not yet available. Read more
            ","Future","iroh_relay::dns::BoxIter"],["
            §

            impl<T> GenerateImplicitData for Box<T>
            where\n T: GenerateImplicitData,

            §

            fn generate() -> Box<T>

            Build the data.
            §

            fn generate_with_source(source: &dyn Error) -> Box<T>
            where\n Box<T>: Sized,

            Build the data using the given source
            ","GenerateImplicitData","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Hash for Box<T, A>
            where\n T: Hash + ?Sized,\n A: Allocator,

            Source§

            fn hash<H>(&self, state: &mut H)
            where\n H: Hasher,

            Feeds this value into the given Hasher. Read more
            1.3.0 · Source§

            fn hash_slice<H>(data: &[Self], state: &mut H)
            where\n H: Hasher,\n Self: Sized,

            Feeds a slice of this type into the given Hasher. Read more
            ","Hash","iroh_relay::dns::BoxIter"],["
            1.22.0 · Source§

            impl<T, A> Hasher for Box<T, A>
            where\n T: Hasher + ?Sized,\n A: Allocator,

            Source§

            fn finish(&self) -> u64

            Returns the hash value for the values written so far. Read more
            Source§

            fn write(&mut self, bytes: &[u8])

            Writes some data into this Hasher. Read more
            Source§

            fn write_u8(&mut self, i: u8)

            Writes a single u8 into this hasher.
            Source§

            fn write_u16(&mut self, i: u16)

            Writes a single u16 into this hasher.
            Source§

            fn write_u32(&mut self, i: u32)

            Writes a single u32 into this hasher.
            Source§

            fn write_u64(&mut self, i: u64)

            Writes a single u64 into this hasher.
            Source§

            fn write_u128(&mut self, i: u128)

            Writes a single u128 into this hasher.
            Source§

            fn write_usize(&mut self, i: usize)

            Writes a single usize into this hasher.
            Source§

            fn write_i8(&mut self, i: i8)

            Writes a single i8 into this hasher.
            Source§

            fn write_i16(&mut self, i: i16)

            Writes a single i16 into this hasher.
            Source§

            fn write_i32(&mut self, i: i32)

            Writes a single i32 into this hasher.
            Source§

            fn write_i64(&mut self, i: i64)

            Writes a single i64 into this hasher.
            Source§

            fn write_i128(&mut self, i: i128)

            Writes a single i128 into this hasher.
            Source§

            fn write_isize(&mut self, i: isize)

            Writes a single isize into this hasher.
            Source§

            fn write_length_prefix(&mut self, len: usize)

            🔬This is a nightly-only experimental API. (hasher_prefixfree_extras)
            Writes a length prefix into this hasher, as part of being prefix-free. Read more
            Source§

            fn write_str(&mut self, s: &str)

            🔬This is a nightly-only experimental API. (hasher_prefixfree_extras)
            Writes a single str into this hasher. Read more
            ","Hasher","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<I, A> Iterator for Box<I, A>
            where\n I: Iterator + ?Sized,\n A: Allocator,

            Source§

            type Item = <I as Iterator>::Item

            The type of the elements being iterated over.
            Source§

            fn next(&mut self) -> Option<<I as Iterator>::Item>

            Advances the iterator and returns the next value. Read more
            Source§

            fn size_hint(&self) -> (usize, Option<usize>)

            Returns the bounds on the remaining length of the iterator. Read more
            Source§

            fn nth(&mut self, n: usize) -> Option<<I as Iterator>::Item>

            Returns the nth element of the iterator. Read more
            Source§

            fn last(self) -> Option<<I as Iterator>::Item>

            Consumes the iterator, returning the last element. Read more
            Source§

            fn next_chunk<const N: usize>(\n &mut self,\n) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
            where\n Self: Sized,

            🔬This is a nightly-only experimental API. (iter_next_chunk)
            Advances the iterator and returns an array containing the next N values. Read more
            1.0.0 · Source§

            fn count(self) -> usize
            where\n Self: Sized,

            Consumes the iterator, counting the number of iterations and returning it. Read more
            Source§

            fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

            🔬This is a nightly-only experimental API. (iter_advance_by)
            Advances the iterator by n elements. Read more
            1.28.0 · Source§

            fn step_by(self, step: usize) -> StepBy<Self>
            where\n Self: Sized,

            Creates an iterator starting at the same point, but stepping by\nthe given amount at each iteration. Read more
            1.0.0 · Source§

            fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
            where\n Self: Sized,\n U: IntoIterator<Item = Self::Item>,

            Takes two iterators and creates a new iterator over both in sequence. Read more
            1.0.0 · Source§

            fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>
            where\n Self: Sized,\n U: IntoIterator,

            ‘Zips up’ two iterators into a single iterator of pairs. Read more
            Source§

            fn intersperse(self, separator: Self::Item) -> Intersperse<Self>
            where\n Self: Sized,\n Self::Item: Clone,

            🔬This is a nightly-only experimental API. (iter_intersperse)
            Creates a new iterator which places a copy of separator between adjacent\nitems of the original iterator. Read more
            Source§

            fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>
            where\n Self: Sized,\n G: FnMut() -> Self::Item,

            🔬This is a nightly-only experimental API. (iter_intersperse)
            Creates a new iterator which places an item generated by separator\nbetween adjacent items of the original iterator. Read more
            1.0.0 · Source§

            fn map<B, F>(self, f: F) -> Map<Self, F>
            where\n Self: Sized,\n F: FnMut(Self::Item) -> B,

            Takes a closure and creates an iterator which calls that closure on each\nelement. Read more
            1.21.0 · Source§

            fn for_each<F>(self, f: F)
            where\n Self: Sized,\n F: FnMut(Self::Item),

            Calls a closure on each element of an iterator. Read more
            1.0.0 · Source§

            fn filter<P>(self, predicate: P) -> Filter<Self, P>
            where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

            Creates an iterator which uses a closure to determine if an element\nshould be yielded. Read more
            1.0.0 · Source§

            fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
            where\n Self: Sized,\n F: FnMut(Self::Item) -> Option<B>,

            Creates an iterator that both filters and maps. Read more
            1.0.0 · Source§

            fn enumerate(self) -> Enumerate<Self>
            where\n Self: Sized,

            Creates an iterator which gives the current iteration count as well as\nthe next value. Read more
            1.0.0 · Source§

            fn peekable(self) -> Peekable<Self>
            where\n Self: Sized,

            Creates an iterator which can use the peek and peek_mut methods\nto look at the next element of the iterator without consuming it. See\ntheir documentation for more information. Read more
            1.0.0 · Source§

            fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
            where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

            Creates an iterator that skips elements based on a predicate. Read more
            1.0.0 · Source§

            fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
            where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

            Creates an iterator that yields elements based on a predicate. Read more
            1.57.0 · Source§

            fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
            where\n Self: Sized,\n P: FnMut(Self::Item) -> Option<B>,

            Creates an iterator that both yields elements based on a predicate and maps. Read more
            1.0.0 · Source§

            fn skip(self, n: usize) -> Skip<Self>
            where\n Self: Sized,

            Creates an iterator that skips the first n elements. Read more
            1.0.0 · Source§

            fn take(self, n: usize) -> Take<Self>
            where\n Self: Sized,

            Creates an iterator that yields the first n elements, or fewer\nif the underlying iterator ends sooner. Read more
            1.0.0 · Source§

            fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
            where\n Self: Sized,\n F: FnMut(&mut St, Self::Item) -> Option<B>,

            An iterator adapter which, like fold, holds internal state, but\nunlike fold, produces a new iterator. Read more
            1.0.0 · Source§

            fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
            where\n Self: Sized,\n U: IntoIterator,\n F: FnMut(Self::Item) -> U,

            Creates an iterator that works like map, but flattens nested structure. Read more
            1.29.0 · Source§

            fn flatten(self) -> Flatten<Self>
            where\n Self: Sized,\n Self::Item: IntoIterator,

            Creates an iterator that flattens nested structure. Read more
            Source§

            fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
            where\n Self: Sized,\n F: FnMut(&[Self::Item; N]) -> R,

            🔬This is a nightly-only experimental API. (iter_map_windows)
            Calls the given function f for each contiguous window of size N over\nself and returns an iterator over the outputs of f. Like slice::windows(),\nthe windows during mapping overlap as well. Read more
            1.0.0 · Source§

            fn fuse(self) -> Fuse<Self>
            where\n Self: Sized,

            Creates an iterator which ends after the first None. Read more
            1.0.0 · Source§

            fn inspect<F>(self, f: F) -> Inspect<Self, F>
            where\n Self: Sized,\n F: FnMut(&Self::Item),

            Does something with each element of an iterator, passing the value on. Read more
            1.0.0 · Source§

            fn by_ref(&mut self) -> &mut Self
            where\n Self: Sized,

            Borrows an iterator, rather than consuming it. Read more
            1.0.0 · Source§

            fn collect<B>(self) -> B
            where\n B: FromIterator<Self::Item>,\n Self: Sized,

            Transforms an iterator into a collection. Read more
            Source§

            fn try_collect<B>(\n &mut self,\n) -> <<Self::Item as Try>::Residual as Residual<B>>::TryType
            where\n Self: Sized,\n Self::Item: Try,\n <Self::Item as Try>::Residual: Residual<B>,\n B: FromIterator<<Self::Item as Try>::Output>,

            🔬This is a nightly-only experimental API. (iterator_try_collect)
            Fallibly transforms an iterator into a collection, short circuiting if\na failure is encountered. Read more
            Source§

            fn collect_into<E>(self, collection: &mut E) -> &mut E
            where\n E: Extend<Self::Item>,\n Self: Sized,

            🔬This is a nightly-only experimental API. (iter_collect_into)
            Collects all the items from an iterator into a collection. Read more
            1.0.0 · Source§

            fn partition<B, F>(self, f: F) -> (B, B)
            where\n Self: Sized,\n B: Default + Extend<Self::Item>,\n F: FnMut(&Self::Item) -> bool,

            Consumes an iterator, creating two collections from it. Read more
            Source§

            fn partition_in_place<'a, T, P>(self, predicate: P) -> usize
            where\n T: 'a,\n Self: Sized + DoubleEndedIterator<Item = &'a mut T>,\n P: FnMut(&T) -> bool,

            🔬This is a nightly-only experimental API. (iter_partition_in_place)
            Reorders the elements of this iterator in-place according to the given predicate,\nsuch that all those that return true precede all those that return false.\nReturns the number of true elements found. Read more
            Source§

            fn is_partitioned<P>(self, predicate: P) -> bool
            where\n Self: Sized,\n P: FnMut(Self::Item) -> bool,

            🔬This is a nightly-only experimental API. (iter_is_partitioned)
            Checks if the elements of this iterator are partitioned according to the given predicate,\nsuch that all those that return true precede all those that return false. Read more
            1.27.0 · Source§

            fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
            where\n Self: Sized,\n F: FnMut(B, Self::Item) -> R,\n R: Try<Output = B>,

            An iterator method that applies a function as long as it returns\nsuccessfully, producing a single, final value. Read more
            1.27.0 · Source§

            fn try_for_each<F, R>(&mut self, f: F) -> R
            where\n Self: Sized,\n F: FnMut(Self::Item) -> R,\n R: Try<Output = ()>,

            An iterator method that applies a fallible function to each item in the\niterator, stopping at the first error and returning that error. Read more
            1.0.0 · Source§

            fn fold<B, F>(self, init: B, f: F) -> B
            where\n Self: Sized,\n F: FnMut(B, Self::Item) -> B,

            Folds every element into an accumulator by applying an operation,\nreturning the final result. Read more
            1.51.0 · Source§

            fn reduce<F>(self, f: F) -> Option<Self::Item>
            where\n Self: Sized,\n F: FnMut(Self::Item, Self::Item) -> Self::Item,

            Reduces the elements to a single one, by repeatedly applying a reducing\noperation. Read more
            Source§

            fn try_reduce<R>(\n &mut self,\n f: impl FnMut(Self::Item, Self::Item) -> R,\n) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
            where\n Self: Sized,\n R: Try<Output = Self::Item>,\n <R as Try>::Residual: Residual<Option<Self::Item>>,

            🔬This is a nightly-only experimental API. (iterator_try_reduce)
            Reduces the elements to a single one by repeatedly applying a reducing operation. If the\nclosure returns a failure, the failure is propagated back to the caller immediately. Read more
            1.0.0 · Source§

            fn all<F>(&mut self, f: F) -> bool
            where\n Self: Sized,\n F: FnMut(Self::Item) -> bool,

            Tests if every element of the iterator matches a predicate. Read more
            1.0.0 · Source§

            fn any<F>(&mut self, f: F) -> bool
            where\n Self: Sized,\n F: FnMut(Self::Item) -> bool,

            Tests if any element of the iterator matches a predicate. Read more
            1.0.0 · Source§

            fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
            where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

            Searches for an element of an iterator that satisfies a predicate. Read more
            1.30.0 · Source§

            fn find_map<B, F>(&mut self, f: F) -> Option<B>
            where\n Self: Sized,\n F: FnMut(Self::Item) -> Option<B>,

            Applies function to the elements of iterator and returns\nthe first non-none result. Read more
            Source§

            fn try_find<R>(\n &mut self,\n f: impl FnMut(&Self::Item) -> R,\n) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
            where\n Self: Sized,\n R: Try<Output = bool>,\n <R as Try>::Residual: Residual<Option<Self::Item>>,

            🔬This is a nightly-only experimental API. (try_find)
            Applies function to the elements of iterator and returns\nthe first true result or the first error. Read more
            1.0.0 · Source§

            fn position<P>(&mut self, predicate: P) -> Option<usize>
            where\n Self: Sized,\n P: FnMut(Self::Item) -> bool,

            Searches for an element in an iterator, returning its index. Read more
            1.0.0 · Source§

            fn rposition<P>(&mut self, predicate: P) -> Option<usize>
            where\n P: FnMut(Self::Item) -> bool,\n Self: Sized + ExactSizeIterator + DoubleEndedIterator,

            Searches for an element in an iterator from the right, returning its\nindex. Read more
            1.0.0 · Source§

            fn max(self) -> Option<Self::Item>
            where\n Self: Sized,\n Self::Item: Ord,

            Returns the maximum element of an iterator. Read more
            1.0.0 · Source§

            fn min(self) -> Option<Self::Item>
            where\n Self: Sized,\n Self::Item: Ord,

            Returns the minimum element of an iterator. Read more
            1.6.0 · Source§

            fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
            where\n B: Ord,\n Self: Sized,\n F: FnMut(&Self::Item) -> B,

            Returns the element that gives the maximum value from the\nspecified function. Read more
            1.15.0 · Source§

            fn max_by<F>(self, compare: F) -> Option<Self::Item>
            where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> Ordering,

            Returns the element that gives the maximum value with respect to the\nspecified comparison function. Read more
            1.6.0 · Source§

            fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
            where\n B: Ord,\n Self: Sized,\n F: FnMut(&Self::Item) -> B,

            Returns the element that gives the minimum value from the\nspecified function. Read more
            1.15.0 · Source§

            fn min_by<F>(self, compare: F) -> Option<Self::Item>
            where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> Ordering,

            Returns the element that gives the minimum value with respect to the\nspecified comparison function. Read more
            1.0.0 · Source§

            fn rev(self) -> Rev<Self>
            where\n Self: Sized + DoubleEndedIterator,

            Reverses an iterator’s direction. Read more
            1.0.0 · Source§

            fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
            where\n FromA: Default + Extend<A>,\n FromB: Default + Extend<B>,\n Self: Sized + Iterator<Item = (A, B)>,

            Converts an iterator of pairs into a pair of containers. Read more
            1.36.0 · Source§

            fn copied<'a, T>(self) -> Copied<Self>
            where\n T: 'a + Copy,\n Self: Sized + Iterator<Item = &'a T>,

            Creates an iterator which copies all of its elements. Read more
            1.0.0 · Source§

            fn cloned<'a, T>(self) -> Cloned<Self>
            where\n T: 'a + Clone,\n Self: Sized + Iterator<Item = &'a T>,

            Creates an iterator which clones all of its elements. Read more
            1.0.0 · Source§

            fn cycle(self) -> Cycle<Self>
            where\n Self: Sized + Clone,

            Repeats an iterator endlessly. Read more
            Source§

            fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>
            where\n Self: Sized,

            🔬This is a nightly-only experimental API. (iter_array_chunks)
            Returns an iterator over N elements of the iterator at a time. Read more
            1.11.0 · Source§

            fn sum<S>(self) -> S
            where\n Self: Sized,\n S: Sum<Self::Item>,

            Sums the elements of an iterator. Read more
            1.11.0 · Source§

            fn product<P>(self) -> P
            where\n Self: Sized,\n P: Product<Self::Item>,

            Iterates over the entire iterator, multiplying all the elements Read more
            1.5.0 · Source§

            fn cmp<I>(self, other: I) -> Ordering
            where\n I: IntoIterator<Item = Self::Item>,\n Self::Item: Ord,\n Self: Sized,

            Lexicographically compares the elements of this Iterator with those\nof another. Read more
            Source§

            fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
            where\n Self: Sized,\n I: IntoIterator,\n F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering,

            🔬This is a nightly-only experimental API. (iter_order_by)
            Lexicographically compares the elements of this Iterator with those\nof another with respect to the specified comparison function. Read more
            1.5.0 · Source§

            fn partial_cmp<I>(self, other: I) -> Option<Ordering>
            where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

            Lexicographically compares the PartialOrd elements of\nthis Iterator with those of another. The comparison works like short-circuit\nevaluation, returning a result without comparing the remaining elements.\nAs soon as an order can be determined, the evaluation stops and a result is returned. Read more
            Source§

            fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>
            where\n Self: Sized,\n I: IntoIterator,\n F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,

            🔬This is a nightly-only experimental API. (iter_order_by)
            Lexicographically compares the elements of this Iterator with those\nof another with respect to the specified comparison function. Read more
            1.5.0 · Source§

            fn eq<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialEq<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are equal to those of\nanother. Read more
            Source§

            fn eq_by<I, F>(self, other: I, eq: F) -> bool
            where\n Self: Sized,\n I: IntoIterator,\n F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

            🔬This is a nightly-only experimental API. (iter_order_by)
            Determines if the elements of this Iterator are equal to those of\nanother with respect to the specified equality function. Read more
            1.5.0 · Source§

            fn ne<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialEq<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are not equal to those of\nanother. Read more
            1.5.0 · Source§

            fn lt<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are lexicographically\nless than those of another. Read more
            1.5.0 · Source§

            fn le<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are lexicographically\nless or equal to those of another. Read more
            1.5.0 · Source§

            fn gt<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are lexicographically\ngreater than those of another. Read more
            1.5.0 · Source§

            fn ge<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are lexicographically\ngreater than or equal to those of another. Read more
            1.82.0 · Source§

            fn is_sorted(self) -> bool
            where\n Self: Sized,\n Self::Item: PartialOrd,

            Checks if the elements of this iterator are sorted. Read more
            1.82.0 · Source§

            fn is_sorted_by<F>(self, compare: F) -> bool
            where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> bool,

            Checks if the elements of this iterator are sorted using the given comparator function. Read more
            1.82.0 · Source§

            fn is_sorted_by_key<F, K>(self, f: F) -> bool
            where\n Self: Sized,\n F: FnMut(Self::Item) -> K,\n K: PartialOrd,

            Checks if the elements of this iterator are sorted using the given key extraction\nfunction. Read more
            ","Iterator","iroh_relay::dns::BoxIter"],["
            §

            impl<L, S> Layer<S> for Box<L>
            where\n L: Layer<S>,\n S: Subscriber,

            §

            fn on_register_dispatch(&self, subscriber: &Dispatch)

            Performs late initialization when installing this layer as a\nSubscriber. Read more
            §

            fn on_layer(&mut self, subscriber: &mut S)

            Performs late initialization when attaching a Layer to a\n[Subscriber]. Read more
            §

            fn on_new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)

            Notifies this layer that a new span was constructed with the given\nAttributes and Id.
            §

            fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

            Registers a new callsite with this layer, returning whether or not\nthe layer is interested in being notified about the callsite, similarly\nto Subscriber::register_callsite. Read more
            §

            fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool

            Returns true if this layer is interested in a span or event with the\ngiven metadata in the current [Context], similarly to\nSubscriber::enabled. Read more
            §

            fn on_record(&self, span: &Id, values: &Record<'_>, ctx: Context<'_, S>)

            Notifies this layer that a span with the given Id recorded the given\nvalues.
            §

            fn on_follows_from(&self, span: &Id, follows: &Id, ctx: Context<'_, S>)

            Notifies this layer that a span with the ID span recorded that it\nfollows from the span with the ID follows.
            §

            fn event_enabled(&self, event: &Event<'_>, ctx: Context<'_, S>) -> bool

            Called before on_event, to determine if on_event should be called. Read more
            §

            fn on_event(&self, event: &Event<'_>, ctx: Context<'_, S>)

            Notifies this layer that an event has occurred.
            §

            fn on_enter(&self, id: &Id, ctx: Context<'_, S>)

            Notifies this layer that a span with the given ID was entered.
            §

            fn on_exit(&self, id: &Id, ctx: Context<'_, S>)

            Notifies this layer that the span with the given ID was exited.
            §

            fn on_close(&self, id: Id, ctx: Context<'_, S>)

            Notifies this layer that the span with the given ID has been closed.
            §

            fn on_id_change(&self, old: &Id, new: &Id, ctx: Context<'_, S>)

            Notifies this layer that a span ID has been cloned, and that the\nsubscriber returned a different ID.
            §

            fn and_then<L>(self, layer: L) -> Layered<L, Self, S>
            where\n L: Layer<S>,\n Self: Sized,

            Composes this layer around the given Layer, returning a Layered\nstruct implementing Layer. Read more
            §

            fn with_subscriber(self, inner: S) -> Layered<Self, S>
            where\n Self: Sized,

            Composes this Layer with the given Subscriber, returning a\nLayered struct that implements Subscriber. Read more
            §

            fn with_filter<F>(self, filter: F) -> Filtered<Self, F, S>
            where\n Self: Sized,\n F: Filter<S>,

            Combines self with a [Filter], returning a Filtered layer. Read more
            §

            fn boxed(self) -> Box<dyn Layer<S> + Send + Sync>
            where\n Self: Sized + Layer<S> + Send + Sync + 'static,\n S: Subscriber,

            Erases the type of this [Layer], returning a Boxed dyn Layer trait object. Read more
            ","Layer","iroh_relay::dns::BoxIter"],["
            §

            impl<Sp> LocalSpawn for Box<Sp>
            where\n Sp: LocalSpawn + ?Sized,

            §

            fn spawn_local_obj(\n &self,\n future: LocalFutureObj<'static, ()>,\n) -> Result<(), SpawnError>

            Spawns a future that will be run to completion. Read more
            §

            fn status_local(&self) -> Result<(), SpawnError>

            Determines whether the executor is able to spawn new tasks. Read more
            ","LocalSpawn","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Log for Box<T>
            where\n T: Log + ?Sized,

            Source§

            fn enabled(&self, metadata: &Metadata<'_>) -> bool

            Determines if a log message with the specified metadata would be\nlogged. Read more
            Source§

            fn log(&self, record: &Record<'_>)

            Logs the Record. Read more
            Source§

            fn flush(&self)

            Flushes any buffered records. Read more
            ","Log","iroh_relay::dns::BoxIter"],["
            §

            impl<T> MaxSize for Box<T>
            where\n T: MaxSize,

            §

            const POSTCARD_MAX_SIZE: usize = T::POSTCARD_MAX_SIZE

            The maximum possible size that the serialization of this\ntype can have, in bytes.
            ","MaxSize","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Ord for Box<T, A>
            where\n T: Ord + ?Sized,\n A: Allocator,

            Source§

            fn cmp(&self, other: &Box<T, A>) -> Ordering

            This method returns an Ordering between self and other. Read more
            1.21.0 · Source§

            fn max(self, other: Self) -> Self
            where\n Self: Sized,

            Compares and returns the maximum of two values. Read more
            1.21.0 · Source§

            fn min(self, other: Self) -> Self
            where\n Self: Sized,

            Compares and returns the minimum of two values. Read more
            1.50.0 · Source§

            fn clamp(self, min: Self, max: Self) -> Self
            where\n Self: Sized,

            Restrict a value to a certain interval. Read more
            ","Ord","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> PartialEq for Box<T, A>
            where\n T: PartialEq + ?Sized,\n A: Allocator,

            Source§

            fn eq(&self, other: &Box<T, A>) -> bool

            Tests for self and other values to be equal, and is used by ==.
            Source§

            fn ne(&self, other: &Box<T, A>) -> bool

            Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
            ","PartialEq","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> PartialOrd for Box<T, A>
            where\n T: PartialOrd + ?Sized,\n A: Allocator,

            Source§

            fn partial_cmp(&self, other: &Box<T, A>) -> Option<Ordering>

            This method returns an ordering between self and other values if one exists. Read more
            Source§

            fn lt(&self, other: &Box<T, A>) -> bool

            Tests less than (for self and other) and is used by the < operator. Read more
            Source§

            fn le(&self, other: &Box<T, A>) -> bool

            Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
            Source§

            fn ge(&self, other: &Box<T, A>) -> bool

            Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
            Source§

            fn gt(&self, other: &Box<T, A>) -> bool

            Tests greater than (for self and other) and is used by the >\noperator. Read more
            ","PartialOrd","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Pointer for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

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

            Formats the value using the given formatter. Read more
            ","Pointer","iroh_relay::dns::BoxIter"],["
            §

            impl<B, E, P> Policy<B, E> for Box<P>
            where\n P: Policy<B, E> + ?Sized,

            §

            fn redirect(&mut self, attempt: &Attempt<'_>) -> Result<Action, E>

            Invoked when the service received a response with a redirection status code (3xx). Read more
            §

            fn on_request(&mut self, request: &mut Request<B>)

            Invoked right before the service makes a request, regardless of whether it is redirected\nor not. Read more
            §

            fn clone_body(&self, body: &B) -> Option<B>

            Try to clone a request body before the service makes a redirected request. Read more
            ","Policy","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<R> Read for Box<R>
            where\n R: Read + ?Sized,

            Source§

            fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>

            Pull some bytes from this source into the specified buffer, returning\nhow many bytes were read. Read more
            Source§

            fn read_buf(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>

            🔬This is a nightly-only experimental API. (read_buf)
            Pull some bytes from this source into the specified buffer. Read more
            Source§

            fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>

            Like read, except that it reads into a slice of buffers. Read more
            Source§

            fn is_read_vectored(&self) -> bool

            🔬This is a nightly-only experimental API. (can_vector)
            Determines if this Reader has an efficient read_vectored\nimplementation. Read more
            Source§

            fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>

            Reads all bytes until EOF in this source, placing them into buf. Read more
            Source§

            fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>

            Reads all bytes until EOF in this source, appending them to buf. Read more
            Source§

            fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>

            Reads the exact number of bytes required to fill buf. Read more
            Source§

            fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>

            🔬This is a nightly-only experimental API. (read_buf)
            Reads the exact number of bytes required to fill cursor. Read more
            1.0.0 · Source§

            fn by_ref(&mut self) -> &mut Self
            where\n Self: Sized,

            Creates a “by reference” adaptor for this instance of Read. Read more
            1.0.0 · Source§

            fn bytes(self) -> Bytes<Self>
            where\n Self: Sized,

            Transforms this Read instance to an Iterator over its bytes. Read more
            1.0.0 · Source§

            fn chain<R>(self, next: R) -> Chain<Self, R>
            where\n R: Read,\n Self: Sized,

            Creates an adapter which will chain this stream with another. Read more
            1.0.0 · Source§

            fn take(self, limit: u64) -> Take<Self>
            where\n Self: Sized,

            Creates an adapter which will read at most limit bytes from it. Read more
            ","Read","iroh_relay::dns::BoxIter"],["
            §

            impl<T> Read for Box<T>
            where\n T: Read + Unpin + ?Sized,

            §

            fn poll_read(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: ReadBufCursor<'_>,\n) -> Poll<Result<(), Error>>

            Attempts to read bytes into the buf. Read more
            ","Read","iroh_relay::dns::BoxIter"],["
            §

            impl<R> Rng for Box<R>
            where\n R: Rng + ?Sized,

            §

            fn next_u64(&mut self) -> u64

            Generate a random u64.
            §

            fn next_f64(&mut self) -> f64

            Generate a random f64 between [0, 1).
            §

            fn next_range(&mut self, range: Range<u64>) -> u64

            Randomly pick a value within the range. Read more
            ","Rng","iroh_relay::dns::BoxIter"],["
            Source§

            impl<R> RngCore for Box<R>
            where\n R: RngCore + ?Sized,

            Source§

            fn next_u32(&mut self) -> u32

            Return the next random u32. Read more
            Source§

            fn next_u64(&mut self) -> u64

            Return the next random u64. Read more
            Source§

            fn fill_bytes(&mut self, dest: &mut [u8])

            Fill dest with random data. Read more
            Source§

            fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>

            Fill dest entirely with random data. Read more
            ","RngCore","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<S> Seek for Box<S>
            where\n S: Seek + ?Sized,

            Source§

            fn seek(&mut self, pos: SeekFrom) -> Result<u64, Error>

            Seek to an offset, in bytes, in a stream. Read more
            Source§

            fn rewind(&mut self) -> Result<(), Error>

            Rewind to the beginning of a stream. Read more
            Source§

            fn stream_len(&mut self) -> Result<u64, Error>

            🔬This is a nightly-only experimental API. (seek_stream_len)
            Returns the length of this stream (in bytes). Read more
            Source§

            fn stream_position(&mut self) -> Result<u64, Error>

            Returns the current seek position from the start of the stream. Read more
            Source§

            fn seek_relative(&mut self, offset: i64) -> Result<(), Error>

            Seeks relative to the current position. Read more
            ","Seek","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Serialize for Box<T>
            where\n T: Serialize + ?Sized,

            Source§

            fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
            where\n S: Serializer,

            ","Serialize","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Serialize for Box<T>
            where\n T: Serialize + ?Sized,

            Source§

            fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
            where\n S: Serializer,

            Serialize this value into the given Serde serializer. Read more
            ","Serialize","iroh_relay::dns::BoxIter"],["
            §

            impl<Request, S> Service<Request> for Box<S>
            where\n S: Service<Request> + ?Sized,

            §

            type Response = <S as Service<Request>>::Response

            Responses given by the service.
            §

            type Error = <S as Service<Request>>::Error

            Errors produced by the service. Read more
            §

            type Future = <S as Service<Request>>::Future

            The future response value.
            §

            fn call(&self, req: Request) -> <Box<S> as Service<Request>>::Future

            Process the request and return the response asynchronously.\ncall takes &self instead of mut &self because: Read more
            ","Service","iroh_relay::dns::BoxIter"],["
            §

            impl<S, Request> Service<Request> for Box<S>
            where\n S: Service<Request> + ?Sized,

            §

            type Response = <S as Service<Request>>::Response

            Responses given by the service.
            §

            type Error = <S as Service<Request>>::Error

            Errors produced by the service.
            §

            type Future = <S as Service<Request>>::Future

            The future response value.
            §

            fn poll_ready(\n &mut self,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), <S as Service<Request>>::Error>>

            Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
            §

            fn call(&mut self, request: Request) -> <S as Service<Request>>::Future

            Process the request and return the response asynchronously. Read more
            ","Service","iroh_relay::dns::BoxIter"],["
            §

            impl<S, Item> Sink<Item> for Box<S>
            where\n S: Sink<Item> + Unpin + ?Sized,

            §

            type Error = <S as Sink<Item>>::Error

            The type of value produced by the sink when an error occurs.
            §

            fn poll_ready(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), <Box<S> as Sink<Item>>::Error>>

            Attempts to prepare the Sink to receive a value. Read more
            §

            fn start_send(\n self: Pin<&mut Box<S>>,\n item: Item,\n) -> Result<(), <Box<S> as Sink<Item>>::Error>

            Begin the process of sending a value to the sink.\nEach call to this function must be preceded by a successful call to\npoll_ready which returned Poll::Ready(Ok(())). Read more
            §

            fn poll_flush(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), <Box<S> as Sink<Item>>::Error>>

            Flush any remaining output from this sink. Read more
            §

            fn poll_close(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), <Box<S> as Sink<Item>>::Error>>

            Flush any remaining output and close this sink, if necessary. Read more
            ","Sink","iroh_relay::dns::BoxIter"],["
            §

            impl<T> Source for Box<T>
            where\n T: Source + ?Sized,

            §

            fn register(\n &mut self,\n registry: &Registry,\n token: Token,\n interests: Interest,\n) -> Result<(), Error>

            Register self with the given Registry instance. Read more
            §

            fn reregister(\n &mut self,\n registry: &Registry,\n token: Token,\n interests: Interest,\n) -> Result<(), Error>

            Re-register self with the given Registry instance. Read more
            §

            fn deregister(&mut self, registry: &Registry) -> Result<(), Error>

            Deregister self from the given Registry instance. Read more
            ","Source","iroh_relay::dns::BoxIter"],["
            §

            impl<Sp> Spawn for Box<Sp>
            where\n Sp: Spawn + ?Sized,

            §

            fn spawn_obj(&self, future: FutureObj<'static, ()>) -> Result<(), SpawnError>

            Spawns a future that will be run to completion. Read more
            §

            fn status(&self) -> Result<(), SpawnError>

            Determines whether the executor is able to spawn new tasks. Read more
            ","Spawn","iroh_relay::dns::BoxIter"],["
            §

            impl<S> Stream for Box<S>
            where\n S: Stream + Unpin + ?Sized,

            §

            type Item = <S as Stream>::Item

            Values yielded by the stream.
            §

            fn poll_next(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Option<<Box<S> as Stream>::Item>>

            Attempt to pull out the next value of this stream, registering the\ncurrent task for wakeup if the value is not yet available, and returning\nNone if the stream is exhausted. Read more
            §

            fn size_hint(&self) -> (usize, Option<usize>)

            Returns the bounds on the remaining length of the stream. Read more
            ","Stream","iroh_relay::dns::BoxIter"],["
            §

            impl<S> Subscriber for Box<S>
            where\n S: Subscriber + ?Sized,

            §

            fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

            Registers a new callsite with this subscriber, returning whether or not\nthe subscriber is interested in being notified about the callsite. Read more
            §

            fn enabled(&self, metadata: &Metadata<'_>) -> bool

            Returns true if a span or event with the specified metadata would be\nrecorded. Read more
            §

            fn max_level_hint(&self) -> Option<LevelFilter>

            Returns the highest verbosity level that this Subscriber will\nenable, or None, if the subscriber does not implement level-based\nfiltering or chooses not to implement this method. Read more
            §

            fn new_span(&self, span: &Attributes<'_>) -> Id

            Visit the construction of a new span, returning a new span ID for the\nspan being constructed. Read more
            §

            fn record(&self, span: &Id, values: &Record<'_>)

            Record a set of values on a span. Read more
            §

            fn record_follows_from(&self, span: &Id, follows: &Id)

            Adds an indication that span follows from the span with the id\nfollows. Read more
            §

            fn event_enabled(&self, event: &Event<'_>) -> bool

            Determine if an [Event] should be recorded. Read more
            §

            fn event(&self, event: &Event<'_>)

            Records that an Event has occurred. Read more
            §

            fn enter(&self, span: &Id)

            Records that a span has been entered. Read more
            §

            fn exit(&self, span: &Id)

            Records that a span has been exited. Read more
            §

            fn clone_span(&self, id: &Id) -> Id

            Notifies the subscriber that a span ID has been cloned. Read more
            §

            fn try_close(&self, id: Id) -> bool

            Notifies the subscriber that a span ID has been dropped, and returns\ntrue if there are now 0 IDs that refer to that span. Read more
            §

            fn drop_span(&self, id: Id)

            👎Deprecated since 0.1.2: use Subscriber::try_close instead
            This method is deprecated. Read more
            §

            fn current_span(&self) -> Current

            Returns a type representing this subscriber’s view of the current span. Read more
            §

            unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>

            If self is the same type as the provided TypeId, returns an untyped\n*const pointer to that type. Otherwise, returns None. Read more
            §

            fn on_register_dispatch(&self, subscriber: &Dispatch)

            Invoked when this subscriber becomes a [Dispatch]. Read more
            ","Subscriber","iroh_relay::dns::BoxIter"],["
            §

            impl<'a, T, F> UnsafeFutureObj<'a, T> for Box<F>
            where\n F: Future<Output = T> + 'a,

            §

            fn into_raw(self) -> *mut dyn Future<Output = T> + 'a

            Convert an owned instance into a (conceptually owned) fat pointer. Read more
            §

            unsafe fn drop(ptr: *mut dyn Future<Output = T> + 'a)

            Drops the future represented by the given fat pointer. Read more
            ","UnsafeFutureObj<'a, T>","iroh_relay::dns::BoxIter"],["
            §

            impl<T> Value for Box<T>
            where\n T: Value + ?Sized,

            §

            fn record(&self, key: &Field, visitor: &mut dyn Visit)

            Visits this value with the given Visitor.
            ","Value","iroh_relay::dns::BoxIter"],["
            §

            impl<T> Write for Box<T>
            where\n T: Write + Unpin + ?Sized,

            §

            fn poll_write(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &[u8],\n) -> Poll<Result<usize, Error>>

            Attempt to write bytes from buf into the destination. Read more
            §

            fn poll_write_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &[IoSlice<'_>],\n) -> Poll<Result<usize, Error>>

            Like poll_write, except that it writes from a slice of buffers.
            §

            fn is_write_vectored(&self) -> bool

            Returns whether this writer has an efficient poll_write_vectored\nimplementation. Read more
            §

            fn poll_flush(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Attempts to flush the object. Read more
            §

            fn poll_shutdown(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Attempts to shut down this writer.
            ","Write","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<W> Write for Box<W>
            where\n W: Write + ?Sized,

            Source§

            fn write(&mut self, buf: &[u8]) -> Result<usize, Error>

            Writes a buffer into this writer, returning how many bytes were written. Read more
            Source§

            fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>

            Like write, except that it writes from a slice of buffers. Read more
            Source§

            fn is_write_vectored(&self) -> bool

            🔬This is a nightly-only experimental API. (can_vector)
            Determines if this Writer has an efficient write_vectored\nimplementation. Read more
            Source§

            fn flush(&mut self) -> Result<(), Error>

            Flushes this output stream, ensuring that all intermediately buffered\ncontents reach their destination. Read more
            Source§

            fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

            Attempts to write an entire buffer into this writer. Read more
            Source§

            fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>

            🔬This is a nightly-only experimental API. (write_all_vectored)
            Attempts to write multiple buffers into this writer. Read more
            Source§

            fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>

            Writes a formatted string into this writer, returning any error\nencountered. Read more
            1.0.0 · Source§

            fn by_ref(&mut self) -> &mut Self
            where\n Self: Sized,

            Creates a “by reference” adapter for this instance of Write. Read more
            ","Write","iroh_relay::dns::BoxIter"],["
            §

            impl<T> WriteColor for Box<T>
            where\n T: WriteColor + ?Sized,

            §

            fn supports_color(&self) -> bool

            Returns true if and only if the underlying writer supports colors.
            §

            fn supports_hyperlinks(&self) -> bool

            Returns true if and only if the underlying writer supports hyperlinks. Read more
            §

            fn set_color(&mut self, spec: &ColorSpec) -> Result<(), Error>

            Set the color settings of the writer. Read more
            §

            fn set_hyperlink(&mut self, link: &HyperlinkSpec<'_>) -> Result<(), Error>

            Set the current hyperlink of the writer. Read more
            §

            fn reset(&mut self) -> Result<(), Error>

            Reset the current color settings to their original settings. Read more
            §

            fn is_synchronous(&self) -> bool

            Returns true if and only if the underlying writer must synchronously\ninteract with an end user’s device in order to control colors. By\ndefault, this always returns false. Read more
            ","WriteColor","iroh_relay::dns::BoxIter"],["
            §

            impl<'a, T> Writeable for Box<T>
            where\n T: Writeable + ?Sized,

            §

            fn write_to<W>(&self, sink: &mut W) -> Result<(), Error>
            where\n W: Write + ?Sized,

            Writes a string to the given sink. Errors from the sink are bubbled up.\nThe default implementation delegates to write_to_parts, and discards any\nPart annotations.
            §

            fn write_to_parts<W>(&self, sink: &mut W) -> Result<(), Error>
            where\n W: PartsWrite + ?Sized,

            Write bytes and Part annotations to the given sink. Errors from the\nsink are bubbled up. The default implementation delegates to write_to,\nand doesn’t produce any Part annotations.
            §

            fn writeable_length_hint(&self) -> LengthHint

            Returns a hint for the number of UTF-8 bytes that will be written to the sink. Read more
            §

            fn write_to_string(&self) -> Cow<'_, str>

            Creates a new String with the data from this Writeable. Like ToString,\nbut smaller and faster. Read more
            ","Writeable","iroh_relay::dns::BoxIter"],["
            §

            impl<T> CartablePointerLike for Box<T>

            ","CartablePointerLike","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, U, A> CoerceUnsized<Box<U, A>> for Box<T, A>
            where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

            ","CoerceUnsized>","iroh_relay::dns::BoxIter"],["
            Source§

            impl<R> CryptoRng for Box<R>
            where\n R: CryptoRng + ?Sized,

            ","CryptoRng","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, A> DerefPure for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            ","DerefPure","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, U> DispatchFromDyn<Box<U>> for Box<T>
            where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

            ","DispatchFromDyn>","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Eq for Box<T, A>
            where\n T: Eq + ?Sized,\n A: Allocator,

            ","Eq","iroh_relay::dns::BoxIter"],["
            1.26.0 · Source§

            impl<I, A> FusedIterator for Box<I, A>
            where\n I: FusedIterator + ?Sized,\n A: Allocator,

            ","FusedIterator","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, A> PinCoerceUnsized for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            ","PinCoerceUnsized","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> PointerLike for Box<T>

            ","PointerLike","iroh_relay::dns::BoxIter"],["
            §

            impl<'a, T> Sequence<'a> for Box<T>
            where\n T: Sequence<'a>,

            ","Sequence<'a>","iroh_relay::dns::BoxIter"],["
            §

            impl<T> StableDeref for Box<T>
            where\n T: ?Sized,

            ","StableDeref","iroh_relay::dns::BoxIter"],["
            1.33.0 · Source§

            impl<T, A> Unpin for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            ","Unpin","iroh_relay::dns::BoxIter"]]]]); + var type_impls = Object.fromEntries([["iroh_relay",[["
            §

            impl<T> AsBacktrace for Box<T>
            where\n T: AsBacktrace,

            §

            fn as_backtrace(&self) -> Option<&Backtrace>

            Retrieve the optional backtrace
            ","AsBacktrace","iroh_relay::dns::BoxIter"],["
            1.64.0 · Source§

            impl<T> AsFd for Box<T>
            where\n T: AsFd + ?Sized,

            Source§

            fn as_fd(&self) -> BorrowedFd<'_>

            Borrows the file descriptor. Read more
            ","AsFd","iroh_relay::dns::BoxIter"],["
            1.5.0 · Source§

            impl<T, A> AsMut<T> for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn as_mut(&mut self) -> &mut T

            Converts this type into a mutable reference of the (usually inferred) input type.
            ","AsMut","iroh_relay::dns::BoxIter"],["
            1.63.0 · Source§

            impl<T> AsRawFd for Box<T>
            where\n T: AsRawFd,

            Source§

            fn as_raw_fd(&self) -> i32

            Extracts the raw file descriptor. Read more
            ","AsRawFd","iroh_relay::dns::BoxIter"],["
            1.5.0 · Source§

            impl<T, A> AsRef<T> for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn as_ref(&self) -> &T

            Converts this type into a shared reference of the (usually inferred) input type.
            ","AsRef","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncBufRead for Box<T>
            where\n T: AsyncBufRead + Unpin + ?Sized,

            §

            fn poll_fill_buf(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<&[u8], Error>>

            Attempt to return the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
            §

            fn consume(self: Pin<&mut Box<T>>, amt: usize)

            Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to poll_read. Read more
            ","AsyncBufRead","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncBufRead for Box<T>
            where\n T: AsyncBufRead + Unpin + ?Sized,

            §

            fn poll_fill_buf(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<&[u8], Error>>

            Attempts to return the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
            §

            fn consume(self: Pin<&mut Box<T>>, amt: usize)

            Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to poll_read. Read more
            ","AsyncBufRead","iroh_relay::dns::BoxIter"],["
            1.85.0 · Source§

            impl<Args, F, A> AsyncFn<Args> for Box<F, A>
            where\n Args: Tuple,\n F: AsyncFn<Args> + ?Sized,\n A: Allocator,

            Source§

            extern "rust-call" fn async_call(\n &self,\n args: Args,\n) -> <Box<F, A> as AsyncFnMut<Args>>::CallRefFuture<'_>

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Call the AsyncFn, returning a future which may borrow from the called closure.
            ","AsyncFn","iroh_relay::dns::BoxIter"],["
            1.85.0 · Source§

            impl<Args, F, A> AsyncFnMut<Args> for Box<F, A>
            where\n Args: Tuple,\n F: AsyncFnMut<Args> + ?Sized,\n A: Allocator,

            Source§

            type CallRefFuture<'a> = <F as AsyncFnMut<Args>>::CallRefFuture<'a>\nwhere\n Box<F, A>: 'a

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Source§

            extern "rust-call" fn async_call_mut(\n &mut self,\n args: Args,\n) -> <Box<F, A> as AsyncFnMut<Args>>::CallRefFuture<'_>

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Call the AsyncFnMut, returning a future which may borrow from the called closure.
            ","AsyncFnMut","iroh_relay::dns::BoxIter"],["
            1.85.0 · Source§

            impl<Args, F, A> AsyncFnOnce<Args> for Box<F, A>
            where\n Args: Tuple,\n F: AsyncFnOnce<Args> + ?Sized,\n A: Allocator,

            Source§

            type Output = <F as AsyncFnOnce<Args>>::Output

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Output type of the called closure’s future.
            Source§

            type CallOnceFuture = <F as AsyncFnOnce<Args>>::CallOnceFuture

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Future returned by AsyncFnOnce::async_call_once.
            Source§

            extern "rust-call" fn async_call_once(\n self,\n args: Args,\n) -> <Box<F, A> as AsyncFnOnce<Args>>::CallOnceFuture

            🔬This is a nightly-only experimental API. (async_fn_traits)
            Call the AsyncFnOnce, returning a future which may move out of the called closure.
            ","AsyncFnOnce","iroh_relay::dns::BoxIter"],["
            Source§

            impl<S> AsyncIterator for Box<S>
            where\n S: AsyncIterator + Unpin + ?Sized,

            Source§

            type Item = <S as AsyncIterator>::Item

            🔬This is a nightly-only experimental API. (async_iterator)
            The type of items yielded by the async iterator.
            Source§

            fn poll_next(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Option<<Box<S> as AsyncIterator>::Item>>

            🔬This is a nightly-only experimental API. (async_iterator)
            Attempts to pull out the next value of this async iterator, registering the\ncurrent task for wakeup if the value is not yet available, and returning\nNone if the async iterator is exhausted. Read more
            Source§

            fn size_hint(&self) -> (usize, Option<usize>)

            🔬This is a nightly-only experimental API. (async_iterator)
            Returns the bounds on the remaining length of the async iterator. Read more
            ","AsyncIterator","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncRead for Box<T>
            where\n T: AsyncRead + Unpin + ?Sized,

            §

            fn poll_read(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &mut ReadBuf<'_>,\n) -> Poll<Result<(), Error>>

            Attempts to read from the AsyncRead into buf. Read more
            ","AsyncRead","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncRead for Box<T>
            where\n T: AsyncRead + Unpin + ?Sized,

            §

            fn poll_read(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &mut [u8],\n) -> Poll<Result<usize, Error>>

            Attempt to read from the AsyncRead into buf. Read more
            §

            fn poll_read_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &mut [IoSliceMut<'_>],\n) -> Poll<Result<usize, Error>>

            Attempt to read from the AsyncRead into bufs using vectored\nIO operations. Read more
            ","AsyncRead","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncSeek for Box<T>
            where\n T: AsyncSeek + Unpin + ?Sized,

            §

            fn poll_seek(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n pos: SeekFrom,\n) -> Poll<Result<u64, Error>>

            Attempt to seek to an offset, in bytes, in a stream. Read more
            ","AsyncSeek","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncSeek for Box<T>
            where\n T: AsyncSeek + Unpin + ?Sized,

            §

            fn start_seek(self: Pin<&mut Box<T>>, pos: SeekFrom) -> Result<(), Error>

            Attempts to seek to an offset, in bytes, in a stream. Read more
            §

            fn poll_complete(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<u64, Error>>

            Waits for a seek operation to complete. Read more
            ","AsyncSeek","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncWrite for Box<T>
            where\n T: AsyncWrite + Unpin + ?Sized,

            §

            fn poll_write(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &[u8],\n) -> Poll<Result<usize, Error>>

            Attempt to write bytes from buf into the object. Read more
            §

            fn poll_write_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &[IoSlice<'_>],\n) -> Poll<Result<usize, Error>>

            Attempt to write bytes from bufs into the object using vectored\nIO operations. Read more
            §

            fn poll_flush(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Attempt to flush the object, ensuring that any buffered data reach\ntheir destination. Read more
            §

            fn poll_close(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Attempt to close the object. Read more
            ","AsyncWrite","iroh_relay::dns::BoxIter"],["
            §

            impl<T> AsyncWrite for Box<T>
            where\n T: AsyncWrite + Unpin + ?Sized,

            §

            fn poll_write(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &[u8],\n) -> Poll<Result<usize, Error>>

            Attempt to write bytes from buf into the object. Read more
            §

            fn poll_write_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &[IoSlice<'_>],\n) -> Poll<Result<usize, Error>>

            Like poll_write, except that it writes from a slice of buffers. Read more
            §

            fn is_write_vectored(&self) -> bool

            Determines if this writer has an efficient poll_write_vectored\nimplementation. Read more
            §

            fn poll_flush(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Attempts to flush the object, ensuring that any buffered data reach\ntheir destination. Read more
            §

            fn poll_shutdown(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Initiates or attempts to shut down this writer, returning success when\nthe I/O connection has completely shut down. Read more
            ","AsyncWrite","iroh_relay::dns::BoxIter"],["
            §

            impl<T> Body for Box<T>
            where\n T: Body + Unpin + ?Sized,

            §

            type Data = <T as Body>::Data

            Values yielded by the Body.
            §

            type Error = <T as Body>::Error

            The error type this Body might generate.
            §

            fn poll_frame(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Option<Result<Frame<<Box<T> as Body>::Data>, <Box<T> as Body>::Error>>>

            Attempt to pull out the next data buffer of this stream.
            §

            fn is_end_stream(&self) -> bool

            Returns true when the end of stream has been reached. Read more
            §

            fn size_hint(&self) -> SizeHint

            Returns the bounds on the remaining length of the stream. Read more
            ","Body","iroh_relay::dns::BoxIter"],["
            1.1.0 · Source§

            impl<T, A> Borrow<T> for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn borrow(&self) -> &T

            Immutably borrows from an owned value. Read more
            ","Borrow","iroh_relay::dns::BoxIter"],["
            1.1.0 · Source§

            impl<T, A> BorrowMut<T> for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn borrow_mut(&mut self) -> &mut T

            Mutably borrows from an owned value. Read more
            ","BorrowMut","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Box<T>
            where\n T: ?Sized,

            1.4.0 · Source

            pub unsafe fn from_raw(raw: *mut T) -> Box<T>

            Available on crate feature server only.

            Constructs a box from a raw pointer.

            \n

            After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

            \n
            §Safety
            \n

            This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

            \n

            The raw pointer must point to a block of memory allocated by the global allocator.

            \n

            The safety conditions are described in the memory layout section.

            \n
            §Examples
            \n

            Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw:

            \n\n
            let x = Box::new(5);\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
            \n

            Manually create a Box from scratch by using the global allocator:

            \n\n
            use std::alloc::{alloc, Layout};\n\nunsafe {\n    let ptr = alloc(Layout::new::<i32>()) as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw(ptr);\n}
            \n
            Source

            pub unsafe fn from_non_null(ptr: NonNull<T>) -> Box<T>

            🔬This is a nightly-only experimental API. (box_vec_non_null)
            Available on crate feature server only.

            Constructs a box from a NonNull pointer.

            \n

            After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

            \n
            §Safety
            \n

            This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same NonNull pointer.

            \n

            The non-null pointer must point to a block of memory allocated by the global allocator.

            \n

            The safety conditions are described in the memory layout section.

            \n
            §Examples
            \n

            Recreate a Box which was previously converted to a NonNull\npointer using Box::into_non_null:

            \n\n
            #![feature(box_vec_non_null)]\n\nlet x = Box::new(5);\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
            \n

            Manually create a Box from scratch by using the global allocator:

            \n\n
            #![feature(box_vec_non_null)]\n\nuse std::alloc::{alloc, Layout};\nuse std::ptr::NonNull;\n\nunsafe {\n    let non_null = NonNull::new(alloc(Layout::new::<i32>()).cast::<i32>())\n        .expect(\"allocation failed\");\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null(non_null);\n}
            \n
            ",0,"iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Box<T>

            1.0.0 · Source

            pub fn new(x: T) -> Box<T>

            Available on crate feature server and non-no_global_oom_handling only.

            Allocates memory on the heap and then places x into it.

            \n

            This doesn’t actually allocate if T is zero-sized.

            \n
            §Examples
            \n
            let five = Box::new(5);
            \n
            1.82.0 · Source

            pub fn new_uninit() -> Box<MaybeUninit<T>>

            Available on crate feature server and non-no_global_oom_handling only.

            Constructs a new box with uninitialized contents.

            \n
            §Examples
            \n
            let mut five = Box::<u32>::new_uninit();\n// Deferred initialization:\nfive.write(5);\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
            \n
            Source

            pub fn new_zeroed() -> Box<MaybeUninit<T>>

            🔬This is a nightly-only experimental API. (new_zeroed_alloc)
            Available on crate feature server and non-no_global_oom_handling only.

            Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes.

            \n

            See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

            \n
            §Examples
            \n
            #![feature(new_zeroed_alloc)]\n\nlet zero = Box::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
            \n
            1.33.0 · Source

            pub fn pin(x: T) -> Pin<Box<T>>

            Available on crate feature server and non-no_global_oom_handling only.

            Constructs a new Pin<Box<T>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

            \n

            Constructing and pinning of the Box can also be done in two steps: Box::pin(x)\ndoes the same as Box::into_pin(Box::new(x)). Consider using\ninto_pin if you already have a Box<T>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new.

            \n
            Source

            pub fn try_new(x: T) -> Result<Box<T>, AllocError>

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Allocates memory on the heap then places x into it,\nreturning an error if the allocation fails

            \n

            This doesn’t actually allocate if T is zero-sized.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nlet five = Box::try_new(5)?;
            \n
            Source

            pub fn try_new_uninit() -> Result<Box<MaybeUninit<T>>, AllocError>

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Constructs a new box with uninitialized contents on the heap,\nreturning an error if the allocation fails

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nlet mut five = Box::<u32>::try_new_uninit()?;\n// Deferred initialization:\nfive.write(5);\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
            \n
            Source

            pub fn try_new_zeroed() -> Result<Box<MaybeUninit<T>>, AllocError>

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes on the heap

            \n

            See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nlet zero = Box::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
            \n
            ",0,"iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, A> Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source

            pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Box<T, A>

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Constructs a box from a raw pointer in the given allocator.

            \n

            After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

            \n
            §Safety
            \n

            This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

            \n

            The raw pointer must point to a block of memory allocated by alloc.

            \n
            §Examples
            \n

            Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw_with_allocator:

            \n\n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
            \n

            Manually create a Box from scratch by using the system allocator:

            \n\n
            #![feature(allocator_api, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let ptr = System.allocate(Layout::new::<i32>())?.as_mut_ptr() as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw_in(ptr, System);\n}
            \n
            Source

            pub const unsafe fn from_non_null_in(raw: NonNull<T>, alloc: A) -> Box<T, A>

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Constructs a box from a NonNull pointer in the given allocator.

            \n

            After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

            \n
            §Safety
            \n

            This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

            \n

            The non-null pointer must point to a block of memory allocated by alloc.

            \n
            §Examples
            \n

            Recreate a Box which was previously converted to a NonNull pointer\nusing Box::into_non_null_with_allocator:

            \n\n
            #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
            \n

            Manually create a Box from scratch by using the system allocator:

            \n\n
            #![feature(allocator_api, box_vec_non_null, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let non_null = System.allocate(Layout::new::<i32>())?.cast::<i32>();\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null_in(non_null, System);\n}
            \n
            1.4.0 · Source

            pub fn into_raw(b: Box<T, A>) -> *mut T

            Available on crate feature server only.

            Consumes the Box, returning a wrapped raw pointer.

            \n

            The pointer will be properly aligned and non-null.

            \n

            After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw function, allowing the Box destructor to perform\nthe cleanup.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::into_raw(b) instead of b.into_raw(). This\nis so that there is no conflict with a method on the inner type.

            \n
            §Examples
            \n

            Converting the raw pointer back into a Box with Box::from_raw\nfor automatic cleanup:

            \n\n
            let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
            \n

            Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

            \n\n
            use std::alloc::{dealloc, Layout};\nuse std::ptr;\n\nlet x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    dealloc(ptr as *mut u8, Layout::new::<String>());\n}
            \n

            Note: This is equivalent to the following:

            \n\n
            let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    drop(Box::from_raw(ptr));\n}
            \n
            Source

            pub fn into_non_null(b: Box<T, A>) -> NonNull<T>

            🔬This is a nightly-only experimental API. (box_vec_non_null)
            Available on crate feature server only.

            Consumes the Box, returning a wrapped NonNull pointer.

            \n

            The pointer will be properly aligned.

            \n

            After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null function, allowing the Box destructor to\nperform the cleanup.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::into_non_null(b) instead of b.into_non_null().\nThis is so that there is no conflict with a method on the inner type.

            \n
            §Examples
            \n

            Converting the NonNull pointer back into a Box with Box::from_non_null\nfor automatic cleanup:

            \n\n
            #![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
            \n

            Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

            \n\n
            #![feature(box_vec_non_null)]\n\nuse std::alloc::{dealloc, Layout};\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    non_null.drop_in_place();\n    dealloc(non_null.as_ptr().cast::<u8>(), Layout::new::<String>());\n}
            \n

            Note: This is equivalent to the following:

            \n\n
            #![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    drop(Box::from_non_null(non_null));\n}
            \n
            Source

            pub fn into_raw_with_allocator(b: Box<T, A>) -> (*mut T, A)

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Consumes the Box, returning a wrapped raw pointer and the allocator.

            \n

            The pointer will be properly aligned and non-null.

            \n

            After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw_in function, allowing the Box destructor to perform\nthe cleanup.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::into_raw_with_allocator(b) instead of b.into_raw_with_allocator(). This\nis so that there is no conflict with a method on the inner type.

            \n
            §Examples
            \n

            Converting the raw pointer back into a Box with Box::from_raw_in\nfor automatic cleanup:

            \n\n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
            \n

            Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

            \n\n
            #![feature(allocator_api)]\n\nuse std::alloc::{Allocator, Layout, System};\nuse std::ptr::{self, NonNull};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    let non_null = NonNull::new_unchecked(ptr);\n    alloc.deallocate(non_null.cast(), Layout::new::<String>());\n}
            \n
            Source

            pub fn into_non_null_with_allocator(b: Box<T, A>) -> (NonNull<T>, A)

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Consumes the Box, returning a wrapped NonNull pointer and the allocator.

            \n

            The pointer will be properly aligned.

            \n

            After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null_in function, allowing the Box destructor to\nperform the cleanup.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::into_non_null_with_allocator(b) instead of\nb.into_non_null_with_allocator(). This is so that there is no\nconflict with a method on the inner type.

            \n
            §Examples
            \n

            Converting the NonNull pointer back into a Box with\nBox::from_non_null_in for automatic cleanup:

            \n\n
            #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
            \n

            Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

            \n\n
            #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nunsafe {\n    non_null.drop_in_place();\n    alloc.deallocate(non_null.cast::<u8>(), Layout::new::<String>());\n}
            \n
            Source

            pub fn as_mut_ptr(b: &mut Box<T, A>) -> *mut T

            🔬This is a nightly-only experimental API. (box_as_ptr)
            Available on crate feature server only.

            Returns a raw mutable pointer to the Box’s contents.

            \n

            The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

            \n

            This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize references to the memory\nmay still invalidate this pointer.\nSee the example below for how this guarantee can be used.

            \n
            §Examples
            \n

            Due to the aliasing guarantee, the following code is legal:

            \n\n
            #![feature(box_as_ptr)]\n\nunsafe {\n    let mut b = Box::new(0);\n    let ptr1 = Box::as_mut_ptr(&mut b);\n    ptr1.write(1);\n    let ptr2 = Box::as_mut_ptr(&mut b);\n    ptr2.write(2);\n    // Notably, the write to `ptr2` did *not* invalidate `ptr1`:\n    ptr1.write(3);\n}
            \n
            Source

            pub fn as_ptr(b: &Box<T, A>) -> *const T

            🔬This is a nightly-only experimental API. (box_as_ptr)
            Available on crate feature server only.

            Returns a raw pointer to the Box’s contents.

            \n

            The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

            \n

            The caller must also ensure that the memory the pointer (non-transitively) points to\nis never written to (except inside an UnsafeCell) using this pointer or any pointer\nderived from it. If you need to mutate the contents of the Box, use as_mut_ptr.

            \n

            This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize mutable references to the memory,\nas well as writing to this memory, may still invalidate this pointer.\nSee the example below for how this guarantee can be used.

            \n
            §Examples
            \n

            Due to the aliasing guarantee, the following code is legal:

            \n\n
            #![feature(box_as_ptr)]\n\nunsafe {\n    let mut v = Box::new(0);\n    let ptr1 = Box::as_ptr(&v);\n    let ptr2 = Box::as_mut_ptr(&mut v);\n    let _val = ptr2.read();\n    // No write to this memory has happened yet, so `ptr1` is still valid.\n    let _val = ptr1.read();\n    // However, once we do a write...\n    ptr2.write(1);\n    // ... `ptr1` is no longer valid.\n    // This would be UB: let _val = ptr1.read();\n}
            \n
            Source

            pub const fn allocator(b: &Box<T, A>) -> &A

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Returns a reference to the underlying allocator.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::allocator(&b) instead of b.allocator(). This\nis so that there is no conflict with a method on the inner type.

            \n
            1.26.0 · Source

            pub fn leak<'a>(b: Box<T, A>) -> &'a mut T
            where\n A: 'a,

            Available on crate feature server only.

            Consumes and leaks the Box, returning a mutable reference,\n&'a mut T.

            \n

            Note that the type T must outlive the chosen lifetime 'a. If the type\nhas only static references, or none at all, then this may be chosen to be\n'static.

            \n

            This function is mainly useful for data that lives for the remainder of\nthe program’s life. Dropping the returned reference will cause a memory\nleak. If this is not acceptable, the reference should first be wrapped\nwith the Box::from_raw function producing a Box. This Box can\nthen be dropped which will properly destroy T and release the\nallocated memory.

            \n

            Note: this is an associated function, which means that you have\nto call it as Box::leak(b) instead of b.leak(). This\nis so that there is no conflict with a method on the inner type.

            \n
            §Examples
            \n

            Simple usage:

            \n\n
            let x = Box::new(41);\nlet static_ref: &'static mut usize = Box::leak(x);\n*static_ref += 1;\nassert_eq!(*static_ref, 42);
            \n

            Unsized data:

            \n\n
            let x = vec![1, 2, 3].into_boxed_slice();\nlet static_ref = Box::leak(x);\nstatic_ref[0] = 4;\nassert_eq!(*static_ref, [4, 2, 3]);
            \n
            1.63.0 (const: unstable) · Source

            pub fn into_pin(boxed: Box<T, A>) -> Pin<Box<T, A>>
            where\n A: 'static,

            Available on crate feature server only.

            Converts a Box<T> into a Pin<Box<T>>. If T does not implement Unpin, then\n*boxed will be pinned in memory and unable to be moved.

            \n

            This conversion does not allocate on the heap and happens in place.

            \n

            This is also available via From.

            \n

            Constructing and pinning a Box with Box::into_pin(Box::new(x))\ncan also be written more concisely using Box::pin(x).\nThis into_pin method is useful if you already have a Box<T>, or you are\nconstructing a (pinned) Box in a different way than with Box::new.

            \n
            §Notes
            \n

            It’s not recommended that crates add an impl like From<Box<T>> for Pin<T>,\nas it’ll introduce an ambiguity when calling Pin::from.\nA demonstration of such a poor impl is shown below.

            \n\n
            ⓘ
            struct Foo; // A type defined in this crate.\nimpl From<Box<()>> for Pin<Foo> {\n    fn from(_: Box<()>) -> Pin<Foo> {\n        Pin::new(Foo)\n    }\n}\n\nlet foo = Box::new(());\nlet bar = Pin::from(foo);
            \n
            ",0,"iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, A> Box<T, A>
            where\n A: Allocator,

            Source

            pub fn new_in(x: T, alloc: A) -> Box<T, A>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server and non-no_global_oom_handling only.

            Allocates memory in the given allocator then places x into it.

            \n

            This doesn’t actually allocate if T is zero-sized.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::new_in(5, System);
            \n
            Source

            pub fn try_new_in(x: T, alloc: A) -> Result<Box<T, A>, AllocError>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Allocates memory in the given allocator then places x into it,\nreturning an error if the allocation fails

            \n

            This doesn’t actually allocate if T is zero-sized.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::try_new_in(5, System)?;
            \n
            Source

            pub fn new_uninit_in(alloc: A) -> Box<MaybeUninit<T>, A>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server and non-no_global_oom_handling only.

            Constructs a new box with uninitialized contents in the provided allocator.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::new_uninit_in(System);\n// Deferred initialization:\nfive.write(5);\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
            \n
            Source

            pub fn try_new_uninit_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Constructs a new box with uninitialized contents in the provided allocator,\nreturning an error if the allocation fails

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::try_new_uninit_in(System)?;\n// Deferred initialization:\nfive.write(5);\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
            \n
            Source

            pub fn new_zeroed_in(alloc: A) -> Box<MaybeUninit<T>, A>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server and non-no_global_oom_handling only.

            Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator.

            \n

            See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
            \n
            Source

            pub fn try_new_zeroed_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
            where\n A: Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server only.

            Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator,\nreturning an error if the allocation fails,

            \n

            See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

            \n
            §Examples
            \n
            #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
            \n
            Source

            pub fn pin_in(x: T, alloc: A) -> Pin<Box<T, A>>
            where\n A: 'static + Allocator,

            🔬This is a nightly-only experimental API. (allocator_api)
            Available on crate feature server and non-no_global_oom_handling only.

            Constructs a new Pin<Box<T, A>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

            \n

            Constructing and pinning of the Box can also be done in two steps: Box::pin_in(x, alloc)\ndoes the same as Box::into_pin(Box::new_in(x, alloc)). Consider using\ninto_pin if you already have a Box<T, A>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new_in.

            \n
            Source

            pub fn into_boxed_slice(boxed: Box<T, A>) -> Box<[T], A>

            🔬This is a nightly-only experimental API. (box_into_boxed_slice)
            Available on crate feature server only.

            Converts a Box<T> into a Box<[T]>

            \n

            This conversion does not allocate on the heap and happens in place.

            \n
            Source

            pub fn into_inner(boxed: Box<T, A>) -> T

            🔬This is a nightly-only experimental API. (box_into_inner)
            Available on crate feature server only.

            Consumes the Box, returning the wrapped value.

            \n
            §Examples
            \n
            #![feature(box_into_inner)]\n\nlet c = Box::new(5);\n\nassert_eq!(Box::into_inner(c), 5);
            \n
            ",0,"iroh_relay::dns::BoxIter"],["
            §

            impl<T> Buf for Box<T>
            where\n T: Buf + ?Sized,

            §

            fn remaining(&self) -> usize

            Returns the number of bytes between the current position and the end of\nthe buffer. Read more
            §

            fn chunk(&self) -> &[u8] ⓘ

            Returns a slice starting at the current position and of length between 0\nand Buf::remaining(). Note that this can return a shorter slice (this\nallows non-continuous internal representation). Read more
            §

            fn chunks_vectored<'b>(&'b self, dst: &mut [IoSlice<'b>]) -> usize

            Available on crate feature std only.
            Fills dst with potentially multiple slices starting at self’s\ncurrent position. Read more
            §

            fn advance(&mut self, cnt: usize)

            Advance the internal cursor of the Buf Read more
            §

            fn has_remaining(&self) -> bool

            Returns true if there are any more bytes to consume Read more
            §

            fn copy_to_slice(&mut self, dst: &mut [u8])

            Copies bytes from self into dst. Read more
            §

            fn get_u8(&mut self) -> u8

            Gets an unsigned 8 bit integer from self. Read more
            §

            fn get_i8(&mut self) -> i8

            Gets a signed 8 bit integer from self. Read more
            §

            fn get_u16(&mut self) -> u16

            Gets an unsigned 16 bit integer from self in big-endian byte order. Read more
            §

            fn get_u16_le(&mut self) -> u16

            Gets an unsigned 16 bit integer from self in little-endian byte order. Read more
            §

            fn get_u16_ne(&mut self) -> u16

            Gets an unsigned 16 bit integer from self in native-endian byte order. Read more
            §

            fn get_i16(&mut self) -> i16

            Gets a signed 16 bit integer from self in big-endian byte order. Read more
            §

            fn get_i16_le(&mut self) -> i16

            Gets a signed 16 bit integer from self in little-endian byte order. Read more
            §

            fn get_i16_ne(&mut self) -> i16

            Gets a signed 16 bit integer from self in native-endian byte order. Read more
            §

            fn get_u32(&mut self) -> u32

            Gets an unsigned 32 bit integer from self in the big-endian byte order. Read more
            §

            fn get_u32_le(&mut self) -> u32

            Gets an unsigned 32 bit integer from self in the little-endian byte order. Read more
            §

            fn get_u32_ne(&mut self) -> u32

            Gets an unsigned 32 bit integer from self in native-endian byte order. Read more
            §

            fn get_i32(&mut self) -> i32

            Gets a signed 32 bit integer from self in big-endian byte order. Read more
            §

            fn get_i32_le(&mut self) -> i32

            Gets a signed 32 bit integer from self in little-endian byte order. Read more
            §

            fn get_i32_ne(&mut self) -> i32

            Gets a signed 32 bit integer from self in native-endian byte order. Read more
            §

            fn get_u64(&mut self) -> u64

            Gets an unsigned 64 bit integer from self in big-endian byte order. Read more
            §

            fn get_u64_le(&mut self) -> u64

            Gets an unsigned 64 bit integer from self in little-endian byte order. Read more
            §

            fn get_u64_ne(&mut self) -> u64

            Gets an unsigned 64 bit integer from self in native-endian byte order. Read more
            §

            fn get_i64(&mut self) -> i64

            Gets a signed 64 bit integer from self in big-endian byte order. Read more
            §

            fn get_i64_le(&mut self) -> i64

            Gets a signed 64 bit integer from self in little-endian byte order. Read more
            §

            fn get_i64_ne(&mut self) -> i64

            Gets a signed 64 bit integer from self in native-endian byte order. Read more
            §

            fn get_u128(&mut self) -> u128

            Gets an unsigned 128 bit integer from self in big-endian byte order. Read more
            §

            fn get_u128_le(&mut self) -> u128

            Gets an unsigned 128 bit integer from self in little-endian byte order. Read more
            §

            fn get_u128_ne(&mut self) -> u128

            Gets an unsigned 128 bit integer from self in native-endian byte order. Read more
            §

            fn get_i128(&mut self) -> i128

            Gets a signed 128 bit integer from self in big-endian byte order. Read more
            §

            fn get_i128_le(&mut self) -> i128

            Gets a signed 128 bit integer from self in little-endian byte order. Read more
            §

            fn get_i128_ne(&mut self) -> i128

            Gets a signed 128 bit integer from self in native-endian byte order. Read more
            §

            fn get_uint(&mut self, nbytes: usize) -> u64

            Gets an unsigned n-byte integer from self in big-endian byte order. Read more
            §

            fn get_uint_le(&mut self, nbytes: usize) -> u64

            Gets an unsigned n-byte integer from self in little-endian byte order. Read more
            §

            fn get_uint_ne(&mut self, nbytes: usize) -> u64

            Gets an unsigned n-byte integer from self in native-endian byte order. Read more
            §

            fn get_int(&mut self, nbytes: usize) -> i64

            Gets a signed n-byte integer from self in big-endian byte order. Read more
            §

            fn get_int_le(&mut self, nbytes: usize) -> i64

            Gets a signed n-byte integer from self in little-endian byte order. Read more
            §

            fn get_int_ne(&mut self, nbytes: usize) -> i64

            Gets a signed n-byte integer from self in native-endian byte order. Read more
            §

            fn get_f32(&mut self) -> f32

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in big-endian byte order. Read more
            §

            fn get_f32_le(&mut self) -> f32

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in little-endian byte order. Read more
            §

            fn get_f32_ne(&mut self) -> f32

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in native-endian byte order. Read more
            §

            fn get_f64(&mut self) -> f64

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in big-endian byte order. Read more
            §

            fn get_f64_le(&mut self) -> f64

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in little-endian byte order. Read more
            §

            fn get_f64_ne(&mut self) -> f64

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in native-endian byte order. Read more
            §

            fn try_copy_to_slice(&mut self, dst: &mut [u8]) -> Result<(), TryGetError>

            Copies bytes from self into dst. Read more
            §

            fn try_get_u8(&mut self) -> Result<u8, TryGetError>

            Gets an unsigned 8 bit integer from self. Read more
            §

            fn try_get_i8(&mut self) -> Result<i8, TryGetError>

            Gets a signed 8 bit integer from self. Read more
            §

            fn try_get_u16(&mut self) -> Result<u16, TryGetError>

            Gets an unsigned 16 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_u16_le(&mut self) -> Result<u16, TryGetError>

            Gets an unsigned 16 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_u16_ne(&mut self) -> Result<u16, TryGetError>

            Gets an unsigned 16 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_i16(&mut self) -> Result<i16, TryGetError>

            Gets a signed 16 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_i16_le(&mut self) -> Result<i16, TryGetError>

            Gets an signed 16 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_i16_ne(&mut self) -> Result<i16, TryGetError>

            Gets a signed 16 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_u32(&mut self) -> Result<u32, TryGetError>

            Gets an unsigned 32 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_u32_le(&mut self) -> Result<u32, TryGetError>

            Gets an unsigned 32 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_u32_ne(&mut self) -> Result<u32, TryGetError>

            Gets an unsigned 32 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_i32(&mut self) -> Result<i32, TryGetError>

            Gets a signed 32 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_i32_le(&mut self) -> Result<i32, TryGetError>

            Gets a signed 32 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_i32_ne(&mut self) -> Result<i32, TryGetError>

            Gets a signed 32 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_u64(&mut self) -> Result<u64, TryGetError>

            Gets an unsigned 64 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_u64_le(&mut self) -> Result<u64, TryGetError>

            Gets an unsigned 64 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_u64_ne(&mut self) -> Result<u64, TryGetError>

            Gets an unsigned 64 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_i64(&mut self) -> Result<i64, TryGetError>

            Gets a signed 64 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_i64_le(&mut self) -> Result<i64, TryGetError>

            Gets a signed 64 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_i64_ne(&mut self) -> Result<i64, TryGetError>

            Gets a signed 64 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_u128(&mut self) -> Result<u128, TryGetError>

            Gets an unsigned 128 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_u128_le(&mut self) -> Result<u128, TryGetError>

            Gets an unsigned 128 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_u128_ne(&mut self) -> Result<u128, TryGetError>

            Gets an unsigned 128 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_i128(&mut self) -> Result<i128, TryGetError>

            Gets a signed 128 bit integer from self in big-endian byte order. Read more
            §

            fn try_get_i128_le(&mut self) -> Result<i128, TryGetError>

            Gets a signed 128 bit integer from self in little-endian byte order. Read more
            §

            fn try_get_i128_ne(&mut self) -> Result<i128, TryGetError>

            Gets a signed 128 bit integer from self in native-endian byte order. Read more
            §

            fn try_get_uint(&mut self, nbytes: usize) -> Result<u64, TryGetError>

            Gets an unsigned n-byte integer from self in big-endian byte order. Read more
            §

            fn try_get_uint_le(&mut self, nbytes: usize) -> Result<u64, TryGetError>

            Gets an unsigned n-byte integer from self in little-endian byte order. Read more
            §

            fn try_get_uint_ne(&mut self, nbytes: usize) -> Result<u64, TryGetError>

            Gets an unsigned n-byte integer from self in native-endian byte order. Read more
            §

            fn try_get_int(&mut self, nbytes: usize) -> Result<i64, TryGetError>

            Gets a signed n-byte integer from self in big-endian byte order. Read more
            §

            fn try_get_int_le(&mut self, nbytes: usize) -> Result<i64, TryGetError>

            Gets a signed n-byte integer from self in little-endian byte order. Read more
            §

            fn try_get_int_ne(&mut self, nbytes: usize) -> Result<i64, TryGetError>

            Gets a signed n-byte integer from self in native-endian byte order. Read more
            §

            fn try_get_f32(&mut self) -> Result<f32, TryGetError>

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in big-endian byte order. Read more
            §

            fn try_get_f32_le(&mut self) -> Result<f32, TryGetError>

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in little-endian byte order. Read more
            §

            fn try_get_f32_ne(&mut self) -> Result<f32, TryGetError>

            Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in native-endian byte order. Read more
            §

            fn try_get_f64(&mut self) -> Result<f64, TryGetError>

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in big-endian byte order. Read more
            §

            fn try_get_f64_le(&mut self) -> Result<f64, TryGetError>

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in little-endian byte order. Read more
            §

            fn try_get_f64_ne(&mut self) -> Result<f64, TryGetError>

            Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in native-endian byte order. Read more
            §

            fn copy_to_bytes(&mut self, len: usize) -> Bytes

            Consumes len bytes inside self and returns new instance of Bytes\nwith this data. Read more
            §

            fn take(self, limit: usize) -> Take<Self>
            where\n Self: Sized,

            Creates an adaptor which will read at most limit bytes from self. Read more
            §

            fn chain<U>(self, next: U) -> Chain<Self, U>
            where\n U: Buf,\n Self: Sized,

            Creates an adaptor which will chain this buffer with another. Read more
            §

            fn reader(self) -> Reader<Self>
            where\n Self: Sized,

            Available on crate feature std only.
            Creates an adaptor which implements the Read trait for self. Read more
            ","Buf","iroh_relay::dns::BoxIter"],["
            §

            impl<T> BufMut for Box<T>
            where\n T: BufMut + ?Sized,

            §

            fn remaining_mut(&self) -> usize

            Returns the number of bytes that can be written from the current\nposition until the end of the buffer is reached. Read more
            §

            fn chunk_mut(&mut self) -> &mut UninitSlice

            Returns a mutable slice starting at the current BufMut position and of\nlength between 0 and BufMut::remaining_mut(). Note that this can be shorter than the\nwhole remainder of the buffer (this allows non-continuous implementation). Read more
            §

            unsafe fn advance_mut(&mut self, cnt: usize)

            Advance the internal cursor of the BufMut Read more
            §

            fn put_slice(&mut self, src: &[u8])

            Transfer bytes into self from src and advance the cursor by the\nnumber of bytes written. Read more
            §

            fn put_u8(&mut self, n: u8)

            Writes an unsigned 8 bit integer to self. Read more
            §

            fn put_i8(&mut self, n: i8)

            Writes a signed 8 bit integer to self. Read more
            §

            fn put_u16(&mut self, n: u16)

            Writes an unsigned 16 bit integer to self in big-endian byte order. Read more
            §

            fn put_u16_le(&mut self, n: u16)

            Writes an unsigned 16 bit integer to self in little-endian byte order. Read more
            §

            fn put_u16_ne(&mut self, n: u16)

            Writes an unsigned 16 bit integer to self in native-endian byte order. Read more
            §

            fn put_i16(&mut self, n: i16)

            Writes a signed 16 bit integer to self in big-endian byte order. Read more
            §

            fn put_i16_le(&mut self, n: i16)

            Writes a signed 16 bit integer to self in little-endian byte order. Read more
            §

            fn put_i16_ne(&mut self, n: i16)

            Writes a signed 16 bit integer to self in native-endian byte order. Read more
            §

            fn put_u32(&mut self, n: u32)

            Writes an unsigned 32 bit integer to self in big-endian byte order. Read more
            §

            fn put_u32_le(&mut self, n: u32)

            Writes an unsigned 32 bit integer to self in little-endian byte order. Read more
            §

            fn put_u32_ne(&mut self, n: u32)

            Writes an unsigned 32 bit integer to self in native-endian byte order. Read more
            §

            fn put_i32(&mut self, n: i32)

            Writes a signed 32 bit integer to self in big-endian byte order. Read more
            §

            fn put_i32_le(&mut self, n: i32)

            Writes a signed 32 bit integer to self in little-endian byte order. Read more
            §

            fn put_i32_ne(&mut self, n: i32)

            Writes a signed 32 bit integer to self in native-endian byte order. Read more
            §

            fn put_u64(&mut self, n: u64)

            Writes an unsigned 64 bit integer to self in the big-endian byte order. Read more
            §

            fn put_u64_le(&mut self, n: u64)

            Writes an unsigned 64 bit integer to self in little-endian byte order. Read more
            §

            fn put_u64_ne(&mut self, n: u64)

            Writes an unsigned 64 bit integer to self in native-endian byte order. Read more
            §

            fn put_i64(&mut self, n: i64)

            Writes a signed 64 bit integer to self in the big-endian byte order. Read more
            §

            fn put_i64_le(&mut self, n: i64)

            Writes a signed 64 bit integer to self in little-endian byte order. Read more
            §

            fn put_i64_ne(&mut self, n: i64)

            Writes a signed 64 bit integer to self in native-endian byte order. Read more
            §

            fn has_remaining_mut(&self) -> bool

            Returns true if there is space in self for more bytes. Read more
            §

            fn put<T>(&mut self, src: T)
            where\n T: Buf,\n Self: Sized,

            Transfer bytes into self from src and advance the cursor by the\nnumber of bytes written. Read more
            §

            fn put_bytes(&mut self, val: u8, cnt: usize)

            Put cnt bytes val into self. Read more
            §

            fn put_u128(&mut self, n: u128)

            Writes an unsigned 128 bit integer to self in the big-endian byte order. Read more
            §

            fn put_u128_le(&mut self, n: u128)

            Writes an unsigned 128 bit integer to self in little-endian byte order. Read more
            §

            fn put_u128_ne(&mut self, n: u128)

            Writes an unsigned 128 bit integer to self in native-endian byte order. Read more
            §

            fn put_i128(&mut self, n: i128)

            Writes a signed 128 bit integer to self in the big-endian byte order. Read more
            §

            fn put_i128_le(&mut self, n: i128)

            Writes a signed 128 bit integer to self in little-endian byte order. Read more
            §

            fn put_i128_ne(&mut self, n: i128)

            Writes a signed 128 bit integer to self in native-endian byte order. Read more
            §

            fn put_uint(&mut self, n: u64, nbytes: usize)

            Writes an unsigned n-byte integer to self in big-endian byte order. Read more
            §

            fn put_uint_le(&mut self, n: u64, nbytes: usize)

            Writes an unsigned n-byte integer to self in the little-endian byte order. Read more
            §

            fn put_uint_ne(&mut self, n: u64, nbytes: usize)

            Writes an unsigned n-byte integer to self in the native-endian byte order. Read more
            §

            fn put_int(&mut self, n: i64, nbytes: usize)

            Writes low nbytes of a signed integer to self in big-endian byte order. Read more
            §

            fn put_int_le(&mut self, n: i64, nbytes: usize)

            Writes low nbytes of a signed integer to self in little-endian byte order. Read more
            §

            fn put_int_ne(&mut self, n: i64, nbytes: usize)

            Writes low nbytes of a signed integer to self in native-endian byte order. Read more
            §

            fn put_f32(&mut self, n: f32)

            Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in big-endian byte order. Read more
            §

            fn put_f32_le(&mut self, n: f32)

            Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in little-endian byte order. Read more
            §

            fn put_f32_ne(&mut self, n: f32)

            Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in native-endian byte order. Read more
            §

            fn put_f64(&mut self, n: f64)

            Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in big-endian byte order. Read more
            §

            fn put_f64_le(&mut self, n: f64)

            Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in little-endian byte order. Read more
            §

            fn put_f64_ne(&mut self, n: f64)

            Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in native-endian byte order. Read more
            §

            fn limit(self, limit: usize) -> Limit<Self>
            where\n Self: Sized,

            Creates an adaptor which can write at most limit bytes to self. Read more
            §

            fn writer(self) -> Writer<Self>
            where\n Self: Sized,

            Available on crate feature std only.
            Creates an adaptor which implements the Write trait for self. Read more
            §

            fn chain_mut<U>(self, next: U) -> Chain<Self, U>
            where\n U: BufMut,\n Self: Sized,

            Creates an adapter which will chain this buffer with another. Read more
            ","BufMut","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<B> BufRead for Box<B>
            where\n B: BufRead + ?Sized,

            Source§

            fn fill_buf(&mut self) -> Result<&[u8], Error>

            Returns the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
            Source§

            fn consume(&mut self, amt: usize)

            Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to read. Read more
            Source§

            fn has_data_left(&mut self) -> Result<bool, Error>

            🔬This is a nightly-only experimental API. (buf_read_has_data_left)
            Checks if the underlying Read has any data left to be read. Read more
            Source§

            fn read_until(&mut self, byte: u8, buf: &mut Vec<u8>) -> Result<usize, Error>

            Reads all bytes into buf until the delimiter byte or EOF is reached. Read more
            Source§

            fn skip_until(&mut self, byte: u8) -> Result<usize, Error>

            Skips all bytes until the delimiter byte or EOF is reached. Read more
            Source§

            fn read_line(&mut self, buf: &mut String) -> Result<usize, Error>

            Reads all bytes until a newline (the 0xA byte) is reached, and append\nthem to the provided String buffer. Read more
            1.0.0 · Source§

            fn split(self, byte: u8) -> Split<Self>
            where\n Self: Sized,

            Returns an iterator over the contents of this reader split on the byte\nbyte. Read more
            1.0.0 · Source§

            fn lines(self) -> Lines<Self>
            where\n Self: Sized,

            Returns an iterator over the lines of this reader. Read more
            ","BufRead","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Clear for Box<T>
            where\n T: Clear,

            Source§

            fn clear(&mut self)

            Clear all data in self, retaining the allocated capacithy.
            ","Clear","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Clone for Box<T, A>
            where\n T: Clone,\n A: Allocator + Clone,

            Available on non-no_global_oom_handling only.
            Source§

            fn clone(&self) -> Box<T, A>

            Returns a new box with a clone() of this box’s contents.

            \n
            §Examples
            \n
            let x = Box::new(5);\nlet y = x.clone();\n\n// The value is the same\nassert_eq!(x, y);\n\n// But they are unique objects\nassert_ne!(&*x as *const i32, &*y as *const i32);
            \n
            Source§

            fn clone_from(&mut self, source: &Box<T, A>)

            Copies source’s contents into self without creating a new allocation.

            \n
            §Examples
            \n
            let x = Box::new(5);\nlet mut y = Box::new(10);\nlet yp: *const i32 = &*y;\n\ny.clone_from(&x);\n\n// The value is the same\nassert_eq!(x, y);\n\n// And no allocation occurred\nassert_eq!(yp, &*y);
            \n
            ","Clone","iroh_relay::dns::BoxIter"],["
            Source§

            impl<G, R, A> Coroutine<R> for Box<G, A>
            where\n G: Coroutine<R> + Unpin + ?Sized,\n A: Allocator,

            Source§

            type Yield = <G as Coroutine<R>>::Yield

            🔬This is a nightly-only experimental API. (coroutine_trait)
            The type of value this coroutine yields. Read more
            Source§

            type Return = <G as Coroutine<R>>::Return

            🔬This is a nightly-only experimental API. (coroutine_trait)
            The type of value this coroutine returns. Read more
            Source§

            fn resume(\n self: Pin<&mut Box<G, A>>,\n arg: R,\n) -> CoroutineState<<Box<G, A> as Coroutine<R>>::Yield, <Box<G, A> as Coroutine<R>>::Return>

            🔬This is a nightly-only experimental API. (coroutine_trait)
            Resumes the execution of this coroutine. Read more
            ","Coroutine","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Debug for Box<T, A>
            where\n T: Debug + ?Sized,\n A: Allocator,

            Source§

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

            Formats the value using the given formatter. Read more
            ","Debug","iroh_relay::dns::BoxIter"],["
            §

            impl<'a, T> DecodeValue<'a> for Box<T>
            where\n T: DecodeValue<'a>,

            Available on crate feature alloc only.
            §

            type Error = <T as DecodeValue<'a>>::Error

            Type returned in the event of a decoding error.
            §

            fn decode_value<R>(\n reader: &mut R,\n header: Header,\n) -> Result<Box<T>, <Box<T> as DecodeValue<'a>>::Error>
            where\n R: Reader<'a>,

            Attempt to decode this message using the provided [Reader].
            ","DecodeValue<'a>","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T> Default for Box<T>
            where\n T: Default,

            Available on non-no_global_oom_handling only.
            Source§

            fn default() -> Box<T>

            Creates a Box<T>, with the Default value for T.

            \n
            ","Default","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Deref for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            type Target = T

            The resulting type after dereferencing.
            Source§

            fn deref(&self) -> &T

            Dereferences the value.
            ","Deref","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> DerefMut for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn deref_mut(&mut self) -> &mut T

            Mutably dereferences the value.
            ","DerefMut","iroh_relay::dns::BoxIter"],["
            Source§

            impl<'de, T> Deserialize<'de> for Box<T>
            where\n T: Deserialize<'de>,

            Available on crate features std or alloc only.
            Source§

            fn deserialize<D>(\n deserializer: D,\n) -> Result<Box<T>, <D as Deserializer<'de>>::Error>
            where\n D: Deserializer<'de>,

            Deserialize this value from the given Serde deserializer. Read more
            ","Deserialize<'de>","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Display for Box<T, A>
            where\n T: Display + ?Sized,\n A: Allocator,

            Source§

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

            Formats the value using the given formatter. Read more
            ","Display","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<I, A> DoubleEndedIterator for Box<I, A>
            where\n I: DoubleEndedIterator + ?Sized,\n A: Allocator,

            Source§

            fn next_back(&mut self) -> Option<<I as Iterator>::Item>

            Removes and returns an element from the end of the iterator. Read more
            Source§

            fn nth_back(&mut self, n: usize) -> Option<<I as Iterator>::Item>

            Returns the nth element from the end of the iterator. Read more
            Source§

            fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

            🔬This is a nightly-only experimental API. (iter_advance_by)
            Advances the iterator from the back by n elements. Read more
            1.27.0 · Source§

            fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
            where\n Self: Sized,\n F: FnMut(B, Self::Item) -> R,\n R: Try<Output = B>,

            This is the reverse version of Iterator::try_fold(): it takes\nelements starting from the back of the iterator. Read more
            1.27.0 · Source§

            fn rfold<B, F>(self, init: B, f: F) -> B
            where\n Self: Sized,\n F: FnMut(B, Self::Item) -> B,

            An iterator method that reduces the iterator’s elements to a single,\nfinal value, starting from the back. Read more
            1.27.0 · Source§

            fn rfind<P>(&mut self, predicate: P) -> Option<Self::Item>
            where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

            Searches for an element of an iterator from the back that satisfies a predicate. Read more
            ","DoubleEndedIterator","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Drop for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

            fn drop(&mut self)

            Executes the destructor for this type. Read more
            ","Drop","iroh_relay::dns::BoxIter"],["
            §

            impl<T> EncodeAsVarULE<T> for Box<T>
            where\n T: VarULE + ?Sized,

            Available on crate feature alloc only.
            §

            fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R

            Calls cb with a piecewise list of byte slices that when concatenated\nproduce the memory pattern of the corresponding instance of T. Read more
            §

            fn encode_var_ule_len(&self) -> usize

            Return the length, in bytes, of the corresponding [VarULE] type
            §

            fn encode_var_ule_write(&self, dst: &mut [u8])

            Write the corresponding [VarULE] type to the dst buffer. dst should\nbe the size of [Self::encode_var_ule_len()]
            ","EncodeAsVarULE","iroh_relay::dns::BoxIter"],["
            §

            impl<T> EncodeValue for Box<T>
            where\n T: EncodeValue,

            Available on crate feature alloc only.
            §

            fn value_len(&self) -> Result<Length, Error>

            Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
            §

            fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

            Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
            §

            fn header(&self) -> Result<Header, Error>
            where\n Self: Tagged,

            Get the [Header] used to encode this value.
            ","EncodeValue","iroh_relay::dns::BoxIter"],["
            1.8.0 · Source§

            impl<E> Error for Box<E>
            where\n E: Error,

            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 downcasting
            Source§

            fn source(&self) -> Option<&(dyn Error + 'static)>

            Returns the lower-level source of this error, if any. Read more
            Source§

            fn provide<'b>(&'b self, request: &mut Request<'b>)

            🔬This is a nightly-only experimental API. (error_generic_member_access)
            Provides type-based access to context intended for error reports. Read more
            ","Error","iroh_relay::dns::BoxIter"],["
            §

            impl<E> ErrorCompat for Box<E>
            where\n E: ErrorCompat,

            §

            fn backtrace(&self) -> Option<&Backtrace>

            Returns a [Backtrace][] that may be printed.
            §

            fn iter_chain(&self) -> ChainCompat<'_, '_>
            where\n Self: AsErrorSource,

            Returns an iterator for traversing the chain of errors,\nstarting with the current error\nand continuing with recursive calls to Error::source. Read more
            ","ErrorCompat","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<I, A> ExactSizeIterator for Box<I, A>
            where\n I: ExactSizeIterator + ?Sized,\n A: Allocator,

            Source§

            fn len(&self) -> usize

            Returns the exact remaining length of the iterator. Read more
            Source§

            fn is_empty(&self) -> bool

            🔬This is a nightly-only experimental API. (exact_size_is_empty)
            Returns true if the iterator is empty. Read more
            ","ExactSizeIterator","iroh_relay::dns::BoxIter"],["
            1.35.0 · Source§

            impl<Args, F, A> Fn<Args> for Box<F, A>
            where\n Args: Tuple,\n F: Fn<Args> + ?Sized,\n A: Allocator,

            Source§

            extern "rust-call" fn call(\n &self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

            🔬This is a nightly-only experimental API. (fn_traits)
            Performs the call operation.
            ","Fn","iroh_relay::dns::BoxIter"],["
            1.35.0 · Source§

            impl<Args, F, A> FnMut<Args> for Box<F, A>
            where\n Args: Tuple,\n F: FnMut<Args> + ?Sized,\n A: Allocator,

            Source§

            extern "rust-call" fn call_mut(\n &mut self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

            🔬This is a nightly-only experimental API. (fn_traits)
            Performs the call operation.
            ","FnMut","iroh_relay::dns::BoxIter"],["
            1.35.0 · Source§

            impl<Args, F, A> FnOnce<Args> for Box<F, A>
            where\n Args: Tuple,\n F: FnOnce<Args> + ?Sized,\n A: Allocator,

            Source§

            type Output = <F as FnOnce<Args>>::Output

            The returned type after the call operator is used.
            Source§

            extern "rust-call" fn call_once(\n self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

            🔬This is a nightly-only experimental API. (fn_traits)
            Performs the call operation.
            ","FnOnce","iroh_relay::dns::BoxIter"],["
            1.6.0 · Source§

            impl<T> From<T> for Box<T>

            Available on non-no_global_oom_handling only.
            Source§

            fn from(t: T) -> Box<T>

            Converts a T into a Box<T>

            \n

            The conversion allocates on the heap and moves t\nfrom the stack into it.

            \n
            §Examples
            \n
            let x = 5;\nlet boxed = Box::new(5);\n\nassert_eq!(Box::from(x), boxed);
            \n
            ","From","iroh_relay::dns::BoxIter"],["
            §

            impl<F> FusedFuture for Box<F>
            where\n F: FusedFuture + Unpin + ?Sized,

            §

            fn is_terminated(&self) -> bool

            Returns true if the underlying future should no longer be polled.
            ","FusedFuture","iroh_relay::dns::BoxIter"],["
            §

            impl<S> FusedStream for Box<S>
            where\n S: FusedStream + Unpin + ?Sized,

            §

            fn is_terminated(&self) -> bool

            Returns true if the stream should no longer be polled.
            ","FusedStream","iroh_relay::dns::BoxIter"],["
            1.36.0 · Source§

            impl<F, A> Future for Box<F, A>
            where\n F: Future + Unpin + ?Sized,\n A: Allocator,

            Source§

            type Output = <F as Future>::Output

            The type of value produced on completion.
            Source§

            fn poll(\n self: Pin<&mut Box<F, A>>,\n cx: &mut Context<'_>,\n) -> Poll<<Box<F, A> as Future>::Output>

            Attempts to resolve the future to a final value, registering\nthe current task for wakeup if the value is not yet available. Read more
            ","Future","iroh_relay::dns::BoxIter"],["
            §

            impl<T> GenerateImplicitData for Box<T>
            where\n T: GenerateImplicitData,

            §

            fn generate() -> Box<T>

            Build the data.
            §

            fn generate_with_source(source: &dyn Error) -> Box<T>
            where\n Box<T>: Sized,

            Build the data using the given source
            ","GenerateImplicitData","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Hash for Box<T, A>
            where\n T: Hash + ?Sized,\n A: Allocator,

            Source§

            fn hash<H>(&self, state: &mut H)
            where\n H: Hasher,

            Feeds this value into the given Hasher. Read more
            1.3.0 · Source§

            fn hash_slice<H>(data: &[Self], state: &mut H)
            where\n H: Hasher,\n Self: Sized,

            Feeds a slice of this type into the given Hasher. Read more
            ","Hash","iroh_relay::dns::BoxIter"],["
            1.22.0 · Source§

            impl<T, A> Hasher for Box<T, A>
            where\n T: Hasher + ?Sized,\n A: Allocator,

            Source§

            fn finish(&self) -> u64

            Returns the hash value for the values written so far. Read more
            Source§

            fn write(&mut self, bytes: &[u8])

            Writes some data into this Hasher. Read more
            Source§

            fn write_u8(&mut self, i: u8)

            Writes a single u8 into this hasher.
            Source§

            fn write_u16(&mut self, i: u16)

            Writes a single u16 into this hasher.
            Source§

            fn write_u32(&mut self, i: u32)

            Writes a single u32 into this hasher.
            Source§

            fn write_u64(&mut self, i: u64)

            Writes a single u64 into this hasher.
            Source§

            fn write_u128(&mut self, i: u128)

            Writes a single u128 into this hasher.
            Source§

            fn write_usize(&mut self, i: usize)

            Writes a single usize into this hasher.
            Source§

            fn write_i8(&mut self, i: i8)

            Writes a single i8 into this hasher.
            Source§

            fn write_i16(&mut self, i: i16)

            Writes a single i16 into this hasher.
            Source§

            fn write_i32(&mut self, i: i32)

            Writes a single i32 into this hasher.
            Source§

            fn write_i64(&mut self, i: i64)

            Writes a single i64 into this hasher.
            Source§

            fn write_i128(&mut self, i: i128)

            Writes a single i128 into this hasher.
            Source§

            fn write_isize(&mut self, i: isize)

            Writes a single isize into this hasher.
            Source§

            fn write_length_prefix(&mut self, len: usize)

            🔬This is a nightly-only experimental API. (hasher_prefixfree_extras)
            Writes a length prefix into this hasher, as part of being prefix-free. Read more
            Source§

            fn write_str(&mut self, s: &str)

            🔬This is a nightly-only experimental API. (hasher_prefixfree_extras)
            Writes a single str into this hasher. Read more
            ","Hasher","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<I, A> Iterator for Box<I, A>
            where\n I: Iterator + ?Sized,\n A: Allocator,

            Source§

            type Item = <I as Iterator>::Item

            The type of the elements being iterated over.
            Source§

            fn next(&mut self) -> Option<<I as Iterator>::Item>

            Advances the iterator and returns the next value. Read more
            Source§

            fn size_hint(&self) -> (usize, Option<usize>)

            Returns the bounds on the remaining length of the iterator. Read more
            Source§

            fn nth(&mut self, n: usize) -> Option<<I as Iterator>::Item>

            Returns the nth element of the iterator. Read more
            Source§

            fn last(self) -> Option<<I as Iterator>::Item>

            Consumes the iterator, returning the last element. Read more
            Source§

            fn next_chunk<const N: usize>(\n &mut self,\n) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
            where\n Self: Sized,

            🔬This is a nightly-only experimental API. (iter_next_chunk)
            Advances the iterator and returns an array containing the next N values. Read more
            1.0.0 · Source§

            fn count(self) -> usize
            where\n Self: Sized,

            Consumes the iterator, counting the number of iterations and returning it. Read more
            Source§

            fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

            🔬This is a nightly-only experimental API. (iter_advance_by)
            Advances the iterator by n elements. Read more
            1.28.0 · Source§

            fn step_by(self, step: usize) -> StepBy<Self>
            where\n Self: Sized,

            Creates an iterator starting at the same point, but stepping by\nthe given amount at each iteration. Read more
            1.0.0 · Source§

            fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
            where\n Self: Sized,\n U: IntoIterator<Item = Self::Item>,

            Takes two iterators and creates a new iterator over both in sequence. Read more
            1.0.0 · Source§

            fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>
            where\n Self: Sized,\n U: IntoIterator,

            ‘Zips up’ two iterators into a single iterator of pairs. Read more
            Source§

            fn intersperse(self, separator: Self::Item) -> Intersperse<Self>
            where\n Self: Sized,\n Self::Item: Clone,

            🔬This is a nightly-only experimental API. (iter_intersperse)
            Creates a new iterator which places a copy of separator between adjacent\nitems of the original iterator. Read more
            Source§

            fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>
            where\n Self: Sized,\n G: FnMut() -> Self::Item,

            🔬This is a nightly-only experimental API. (iter_intersperse)
            Creates a new iterator which places an item generated by separator\nbetween adjacent items of the original iterator. Read more
            1.0.0 · Source§

            fn map<B, F>(self, f: F) -> Map<Self, F>
            where\n Self: Sized,\n F: FnMut(Self::Item) -> B,

            Takes a closure and creates an iterator which calls that closure on each\nelement. Read more
            1.21.0 · Source§

            fn for_each<F>(self, f: F)
            where\n Self: Sized,\n F: FnMut(Self::Item),

            Calls a closure on each element of an iterator. Read more
            1.0.0 · Source§

            fn filter<P>(self, predicate: P) -> Filter<Self, P>
            where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

            Creates an iterator which uses a closure to determine if an element\nshould be yielded. Read more
            1.0.0 · Source§

            fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
            where\n Self: Sized,\n F: FnMut(Self::Item) -> Option<B>,

            Creates an iterator that both filters and maps. Read more
            1.0.0 · Source§

            fn enumerate(self) -> Enumerate<Self>
            where\n Self: Sized,

            Creates an iterator which gives the current iteration count as well as\nthe next value. Read more
            1.0.0 · Source§

            fn peekable(self) -> Peekable<Self>
            where\n Self: Sized,

            Creates an iterator which can use the peek and peek_mut methods\nto look at the next element of the iterator without consuming it. See\ntheir documentation for more information. Read more
            1.0.0 · Source§

            fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
            where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

            Creates an iterator that skips elements based on a predicate. Read more
            1.0.0 · Source§

            fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
            where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

            Creates an iterator that yields elements based on a predicate. Read more
            1.57.0 · Source§

            fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
            where\n Self: Sized,\n P: FnMut(Self::Item) -> Option<B>,

            Creates an iterator that both yields elements based on a predicate and maps. Read more
            1.0.0 · Source§

            fn skip(self, n: usize) -> Skip<Self>
            where\n Self: Sized,

            Creates an iterator that skips the first n elements. Read more
            1.0.0 · Source§

            fn take(self, n: usize) -> Take<Self>
            where\n Self: Sized,

            Creates an iterator that yields the first n elements, or fewer\nif the underlying iterator ends sooner. Read more
            1.0.0 · Source§

            fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
            where\n Self: Sized,\n F: FnMut(&mut St, Self::Item) -> Option<B>,

            An iterator adapter which, like fold, holds internal state, but\nunlike fold, produces a new iterator. Read more
            1.0.0 · Source§

            fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
            where\n Self: Sized,\n U: IntoIterator,\n F: FnMut(Self::Item) -> U,

            Creates an iterator that works like map, but flattens nested structure. Read more
            1.29.0 · Source§

            fn flatten(self) -> Flatten<Self>
            where\n Self: Sized,\n Self::Item: IntoIterator,

            Creates an iterator that flattens nested structure. Read more
            Source§

            fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
            where\n Self: Sized,\n F: FnMut(&[Self::Item; N]) -> R,

            🔬This is a nightly-only experimental API. (iter_map_windows)
            Calls the given function f for each contiguous window of size N over\nself and returns an iterator over the outputs of f. Like slice::windows(),\nthe windows during mapping overlap as well. Read more
            1.0.0 · Source§

            fn fuse(self) -> Fuse<Self>
            where\n Self: Sized,

            Creates an iterator which ends after the first None. Read more
            1.0.0 · Source§

            fn inspect<F>(self, f: F) -> Inspect<Self, F>
            where\n Self: Sized,\n F: FnMut(&Self::Item),

            Does something with each element of an iterator, passing the value on. Read more
            1.0.0 · Source§

            fn by_ref(&mut self) -> &mut Self
            where\n Self: Sized,

            Borrows an iterator, rather than consuming it. Read more
            1.0.0 · Source§

            fn collect<B>(self) -> B
            where\n B: FromIterator<Self::Item>,\n Self: Sized,

            Transforms an iterator into a collection. Read more
            Source§

            fn try_collect<B>(\n &mut self,\n) -> <<Self::Item as Try>::Residual as Residual<B>>::TryType
            where\n Self: Sized,\n Self::Item: Try,\n <Self::Item as Try>::Residual: Residual<B>,\n B: FromIterator<<Self::Item as Try>::Output>,

            🔬This is a nightly-only experimental API. (iterator_try_collect)
            Fallibly transforms an iterator into a collection, short circuiting if\na failure is encountered. Read more
            Source§

            fn collect_into<E>(self, collection: &mut E) -> &mut E
            where\n E: Extend<Self::Item>,\n Self: Sized,

            🔬This is a nightly-only experimental API. (iter_collect_into)
            Collects all the items from an iterator into a collection. Read more
            1.0.0 · Source§

            fn partition<B, F>(self, f: F) -> (B, B)
            where\n Self: Sized,\n B: Default + Extend<Self::Item>,\n F: FnMut(&Self::Item) -> bool,

            Consumes an iterator, creating two collections from it. Read more
            Source§

            fn partition_in_place<'a, T, P>(self, predicate: P) -> usize
            where\n T: 'a,\n Self: Sized + DoubleEndedIterator<Item = &'a mut T>,\n P: FnMut(&T) -> bool,

            🔬This is a nightly-only experimental API. (iter_partition_in_place)
            Reorders the elements of this iterator in-place according to the given predicate,\nsuch that all those that return true precede all those that return false.\nReturns the number of true elements found. Read more
            Source§

            fn is_partitioned<P>(self, predicate: P) -> bool
            where\n Self: Sized,\n P: FnMut(Self::Item) -> bool,

            🔬This is a nightly-only experimental API. (iter_is_partitioned)
            Checks if the elements of this iterator are partitioned according to the given predicate,\nsuch that all those that return true precede all those that return false. Read more
            1.27.0 · Source§

            fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
            where\n Self: Sized,\n F: FnMut(B, Self::Item) -> R,\n R: Try<Output = B>,

            An iterator method that applies a function as long as it returns\nsuccessfully, producing a single, final value. Read more
            1.27.0 · Source§

            fn try_for_each<F, R>(&mut self, f: F) -> R
            where\n Self: Sized,\n F: FnMut(Self::Item) -> R,\n R: Try<Output = ()>,

            An iterator method that applies a fallible function to each item in the\niterator, stopping at the first error and returning that error. Read more
            1.0.0 · Source§

            fn fold<B, F>(self, init: B, f: F) -> B
            where\n Self: Sized,\n F: FnMut(B, Self::Item) -> B,

            Folds every element into an accumulator by applying an operation,\nreturning the final result. Read more
            1.51.0 · Source§

            fn reduce<F>(self, f: F) -> Option<Self::Item>
            where\n Self: Sized,\n F: FnMut(Self::Item, Self::Item) -> Self::Item,

            Reduces the elements to a single one, by repeatedly applying a reducing\noperation. Read more
            Source§

            fn try_reduce<R>(\n &mut self,\n f: impl FnMut(Self::Item, Self::Item) -> R,\n) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
            where\n Self: Sized,\n R: Try<Output = Self::Item>,\n <R as Try>::Residual: Residual<Option<Self::Item>>,

            🔬This is a nightly-only experimental API. (iterator_try_reduce)
            Reduces the elements to a single one by repeatedly applying a reducing operation. If the\nclosure returns a failure, the failure is propagated back to the caller immediately. Read more
            1.0.0 · Source§

            fn all<F>(&mut self, f: F) -> bool
            where\n Self: Sized,\n F: FnMut(Self::Item) -> bool,

            Tests if every element of the iterator matches a predicate. Read more
            1.0.0 · Source§

            fn any<F>(&mut self, f: F) -> bool
            where\n Self: Sized,\n F: FnMut(Self::Item) -> bool,

            Tests if any element of the iterator matches a predicate. Read more
            1.0.0 · Source§

            fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
            where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

            Searches for an element of an iterator that satisfies a predicate. Read more
            1.30.0 · Source§

            fn find_map<B, F>(&mut self, f: F) -> Option<B>
            where\n Self: Sized,\n F: FnMut(Self::Item) -> Option<B>,

            Applies function to the elements of iterator and returns\nthe first non-none result. Read more
            Source§

            fn try_find<R>(\n &mut self,\n f: impl FnMut(&Self::Item) -> R,\n) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
            where\n Self: Sized,\n R: Try<Output = bool>,\n <R as Try>::Residual: Residual<Option<Self::Item>>,

            🔬This is a nightly-only experimental API. (try_find)
            Applies function to the elements of iterator and returns\nthe first true result or the first error. Read more
            1.0.0 · Source§

            fn position<P>(&mut self, predicate: P) -> Option<usize>
            where\n Self: Sized,\n P: FnMut(Self::Item) -> bool,

            Searches for an element in an iterator, returning its index. Read more
            1.0.0 · Source§

            fn rposition<P>(&mut self, predicate: P) -> Option<usize>
            where\n P: FnMut(Self::Item) -> bool,\n Self: Sized + ExactSizeIterator + DoubleEndedIterator,

            Searches for an element in an iterator from the right, returning its\nindex. Read more
            1.0.0 · Source§

            fn max(self) -> Option<Self::Item>
            where\n Self: Sized,\n Self::Item: Ord,

            Returns the maximum element of an iterator. Read more
            1.0.0 · Source§

            fn min(self) -> Option<Self::Item>
            where\n Self: Sized,\n Self::Item: Ord,

            Returns the minimum element of an iterator. Read more
            1.6.0 · Source§

            fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
            where\n B: Ord,\n Self: Sized,\n F: FnMut(&Self::Item) -> B,

            Returns the element that gives the maximum value from the\nspecified function. Read more
            1.15.0 · Source§

            fn max_by<F>(self, compare: F) -> Option<Self::Item>
            where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> Ordering,

            Returns the element that gives the maximum value with respect to the\nspecified comparison function. Read more
            1.6.0 · Source§

            fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
            where\n B: Ord,\n Self: Sized,\n F: FnMut(&Self::Item) -> B,

            Returns the element that gives the minimum value from the\nspecified function. Read more
            1.15.0 · Source§

            fn min_by<F>(self, compare: F) -> Option<Self::Item>
            where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> Ordering,

            Returns the element that gives the minimum value with respect to the\nspecified comparison function. Read more
            1.0.0 · Source§

            fn rev(self) -> Rev<Self>
            where\n Self: Sized + DoubleEndedIterator,

            Reverses an iterator’s direction. Read more
            1.0.0 · Source§

            fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
            where\n FromA: Default + Extend<A>,\n FromB: Default + Extend<B>,\n Self: Sized + Iterator<Item = (A, B)>,

            Converts an iterator of pairs into a pair of containers. Read more
            1.36.0 · Source§

            fn copied<'a, T>(self) -> Copied<Self>
            where\n T: 'a + Copy,\n Self: Sized + Iterator<Item = &'a T>,

            Creates an iterator which copies all of its elements. Read more
            1.0.0 · Source§

            fn cloned<'a, T>(self) -> Cloned<Self>
            where\n T: 'a + Clone,\n Self: Sized + Iterator<Item = &'a T>,

            Creates an iterator which clones all of its elements. Read more
            1.0.0 · Source§

            fn cycle(self) -> Cycle<Self>
            where\n Self: Sized + Clone,

            Repeats an iterator endlessly. Read more
            Source§

            fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>
            where\n Self: Sized,

            🔬This is a nightly-only experimental API. (iter_array_chunks)
            Returns an iterator over N elements of the iterator at a time. Read more
            1.11.0 · Source§

            fn sum<S>(self) -> S
            where\n Self: Sized,\n S: Sum<Self::Item>,

            Sums the elements of an iterator. Read more
            1.11.0 · Source§

            fn product<P>(self) -> P
            where\n Self: Sized,\n P: Product<Self::Item>,

            Iterates over the entire iterator, multiplying all the elements Read more
            1.5.0 · Source§

            fn cmp<I>(self, other: I) -> Ordering
            where\n I: IntoIterator<Item = Self::Item>,\n Self::Item: Ord,\n Self: Sized,

            Lexicographically compares the elements of this Iterator with those\nof another. Read more
            Source§

            fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
            where\n Self: Sized,\n I: IntoIterator,\n F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering,

            🔬This is a nightly-only experimental API. (iter_order_by)
            Lexicographically compares the elements of this Iterator with those\nof another with respect to the specified comparison function. Read more
            1.5.0 · Source§

            fn partial_cmp<I>(self, other: I) -> Option<Ordering>
            where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

            Lexicographically compares the PartialOrd elements of\nthis Iterator with those of another. The comparison works like short-circuit\nevaluation, returning a result without comparing the remaining elements.\nAs soon as an order can be determined, the evaluation stops and a result is returned. Read more
            Source§

            fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>
            where\n Self: Sized,\n I: IntoIterator,\n F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,

            🔬This is a nightly-only experimental API. (iter_order_by)
            Lexicographically compares the elements of this Iterator with those\nof another with respect to the specified comparison function. Read more
            1.5.0 · Source§

            fn eq<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialEq<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are equal to those of\nanother. Read more
            Source§

            fn eq_by<I, F>(self, other: I, eq: F) -> bool
            where\n Self: Sized,\n I: IntoIterator,\n F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool,

            🔬This is a nightly-only experimental API. (iter_order_by)
            Determines if the elements of this Iterator are equal to those of\nanother with respect to the specified equality function. Read more
            1.5.0 · Source§

            fn ne<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialEq<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are not equal to those of\nanother. Read more
            1.5.0 · Source§

            fn lt<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are lexicographically\nless than those of another. Read more
            1.5.0 · Source§

            fn le<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are lexicographically\nless or equal to those of another. Read more
            1.5.0 · Source§

            fn gt<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are lexicographically\ngreater than those of another. Read more
            1.5.0 · Source§

            fn ge<I>(self, other: I) -> bool
            where\n I: IntoIterator,\n Self::Item: PartialOrd<<I as IntoIterator>::Item>,\n Self: Sized,

            Determines if the elements of this Iterator are lexicographically\ngreater than or equal to those of another. Read more
            1.82.0 · Source§

            fn is_sorted(self) -> bool
            where\n Self: Sized,\n Self::Item: PartialOrd,

            Checks if the elements of this iterator are sorted. Read more
            1.82.0 · Source§

            fn is_sorted_by<F>(self, compare: F) -> bool
            where\n Self: Sized,\n F: FnMut(&Self::Item, &Self::Item) -> bool,

            Checks if the elements of this iterator are sorted using the given comparator function. Read more
            1.82.0 · Source§

            fn is_sorted_by_key<F, K>(self, f: F) -> bool
            where\n Self: Sized,\n F: FnMut(Self::Item) -> K,\n K: PartialOrd,

            Checks if the elements of this iterator are sorted using the given key extraction\nfunction. Read more
            ","Iterator","iroh_relay::dns::BoxIter"],["
            §

            impl<L, S> Layer<S> for Box<L>
            where\n L: Layer<S>,\n S: Subscriber,

            Available on crate features std or alloc only.
            §

            fn on_register_dispatch(&self, subscriber: &Dispatch)

            Performs late initialization when installing this layer as a\nSubscriber. Read more
            §

            fn on_layer(&mut self, subscriber: &mut S)

            Performs late initialization when attaching a Layer to a\n[Subscriber]. Read more
            §

            fn on_new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)

            Notifies this layer that a new span was constructed with the given\nAttributes and Id.
            §

            fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

            Registers a new callsite with this layer, returning whether or not\nthe layer is interested in being notified about the callsite, similarly\nto Subscriber::register_callsite. Read more
            §

            fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool

            Returns true if this layer is interested in a span or event with the\ngiven metadata in the current [Context], similarly to\nSubscriber::enabled. Read more
            §

            fn on_record(&self, span: &Id, values: &Record<'_>, ctx: Context<'_, S>)

            Notifies this layer that a span with the given Id recorded the given\nvalues.
            §

            fn on_follows_from(&self, span: &Id, follows: &Id, ctx: Context<'_, S>)

            Notifies this layer that a span with the ID span recorded that it\nfollows from the span with the ID follows.
            §

            fn event_enabled(&self, event: &Event<'_>, ctx: Context<'_, S>) -> bool

            Called before on_event, to determine if on_event should be called. Read more
            §

            fn on_event(&self, event: &Event<'_>, ctx: Context<'_, S>)

            Notifies this layer that an event has occurred.
            §

            fn on_enter(&self, id: &Id, ctx: Context<'_, S>)

            Notifies this layer that a span with the given ID was entered.
            §

            fn on_exit(&self, id: &Id, ctx: Context<'_, S>)

            Notifies this layer that the span with the given ID was exited.
            §

            fn on_close(&self, id: Id, ctx: Context<'_, S>)

            Notifies this layer that the span with the given ID has been closed.
            §

            fn on_id_change(&self, old: &Id, new: &Id, ctx: Context<'_, S>)

            Notifies this layer that a span ID has been cloned, and that the\nsubscriber returned a different ID.
            §

            fn and_then<L>(self, layer: L) -> Layered<L, Self, S>
            where\n L: Layer<S>,\n Self: Sized,

            Composes this layer around the given Layer, returning a Layered\nstruct implementing Layer. Read more
            §

            fn with_subscriber(self, inner: S) -> Layered<Self, S>
            where\n Self: Sized,

            Composes this Layer with the given Subscriber, returning a\nLayered struct that implements Subscriber. Read more
            §

            fn with_filter<F>(self, filter: F) -> Filtered<Self, F, S>
            where\n Self: Sized,\n F: Filter<S>,

            Available on crate features registry and std only.
            Combines self with a [Filter], returning a Filtered layer. Read more
            §

            fn boxed(self) -> Box<dyn Layer<S> + Send + Sync>
            where\n Self: Sized + Layer<S> + Send + Sync + 'static,\n S: Subscriber,

            Available on crate features alloc or std only.
            Erases the type of this [Layer], returning a Boxed dyn Layer trait object. Read more
            ","Layer","iroh_relay::dns::BoxIter"],["
            §

            impl<Sp> LocalSpawn for Box<Sp>
            where\n Sp: LocalSpawn + ?Sized,

            §

            fn spawn_local_obj(\n &self,\n future: LocalFutureObj<'static, ()>,\n) -> Result<(), SpawnError>

            Spawns a future that will be run to completion. Read more
            §

            fn status_local(&self) -> Result<(), SpawnError>

            Determines whether the executor is able to spawn new tasks. Read more
            ","LocalSpawn","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Log for Box<T>
            where\n T: Log + ?Sized,

            Available on crate feature std only.
            Source§

            fn enabled(&self, metadata: &Metadata<'_>) -> bool

            Determines if a log message with the specified metadata would be\nlogged. Read more
            Source§

            fn log(&self, record: &Record<'_>)

            Logs the Record. Read more
            Source§

            fn flush(&self)

            Flushes any buffered records. Read more
            ","Log","iroh_relay::dns::BoxIter"],["
            §

            impl<T> MaxSize for Box<T>
            where\n T: MaxSize,

            Available on crate feature alloc only.
            §

            const POSTCARD_MAX_SIZE: usize = T::POSTCARD_MAX_SIZE

            The maximum possible size that the serialization of this\ntype can have, in bytes.
            ","MaxSize","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Ord for Box<T, A>
            where\n T: Ord + ?Sized,\n A: Allocator,

            Source§

            fn cmp(&self, other: &Box<T, A>) -> Ordering

            This method returns an Ordering between self and other. Read more
            1.21.0 · Source§

            fn max(self, other: Self) -> Self
            where\n Self: Sized,

            Compares and returns the maximum of two values. Read more
            1.21.0 · Source§

            fn min(self, other: Self) -> Self
            where\n Self: Sized,

            Compares and returns the minimum of two values. Read more
            1.50.0 · Source§

            fn clamp(self, min: Self, max: Self) -> Self
            where\n Self: Sized,

            Restrict a value to a certain interval. Read more
            ","Ord","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> PartialEq for Box<T, A>
            where\n T: PartialEq + ?Sized,\n A: Allocator,

            Source§

            fn eq(&self, other: &Box<T, A>) -> bool

            Tests for self and other values to be equal, and is used by ==.
            Source§

            fn ne(&self, other: &Box<T, A>) -> bool

            Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
            ","PartialEq","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> PartialOrd for Box<T, A>
            where\n T: PartialOrd + ?Sized,\n A: Allocator,

            Source§

            fn partial_cmp(&self, other: &Box<T, A>) -> Option<Ordering>

            This method returns an ordering between self and other values if one exists. Read more
            Source§

            fn lt(&self, other: &Box<T, A>) -> bool

            Tests less than (for self and other) and is used by the < operator. Read more
            Source§

            fn le(&self, other: &Box<T, A>) -> bool

            Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
            Source§

            fn ge(&self, other: &Box<T, A>) -> bool

            Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
            Source§

            fn gt(&self, other: &Box<T, A>) -> bool

            Tests greater than (for self and other) and is used by the >\noperator. Read more
            ","PartialOrd","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Pointer for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            Source§

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

            Formats the value using the given formatter. Read more
            ","Pointer","iroh_relay::dns::BoxIter"],["
            §

            impl<B, E, P> Policy<B, E> for Box<P>
            where\n P: Policy<B, E> + ?Sized,

            §

            fn redirect(&mut self, attempt: &Attempt<'_>) -> Result<Action, E>

            Invoked when the service received a response with a redirection status code (3xx). Read more
            §

            fn on_request(&mut self, request: &mut Request<B>)

            Invoked right before the service makes a request, regardless of whether it is redirected\nor not. Read more
            §

            fn clone_body(&self, body: &B) -> Option<B>

            Try to clone a request body before the service makes a redirected request. Read more
            ","Policy","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<R> Read for Box<R>
            where\n R: Read + ?Sized,

            Source§

            fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>

            Pull some bytes from this source into the specified buffer, returning\nhow many bytes were read. Read more
            Source§

            fn read_buf(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>

            🔬This is a nightly-only experimental API. (read_buf)
            Pull some bytes from this source into the specified buffer. Read more
            Source§

            fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>

            Like read, except that it reads into a slice of buffers. Read more
            Source§

            fn is_read_vectored(&self) -> bool

            🔬This is a nightly-only experimental API. (can_vector)
            Determines if this Reader has an efficient read_vectored\nimplementation. Read more
            Source§

            fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>

            Reads all bytes until EOF in this source, placing them into buf. Read more
            Source§

            fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>

            Reads all bytes until EOF in this source, appending them to buf. Read more
            Source§

            fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>

            Reads the exact number of bytes required to fill buf. Read more
            Source§

            fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>

            🔬This is a nightly-only experimental API. (read_buf)
            Reads the exact number of bytes required to fill cursor. Read more
            1.0.0 · Source§

            fn by_ref(&mut self) -> &mut Self
            where\n Self: Sized,

            Creates a “by reference” adaptor for this instance of Read. Read more
            1.0.0 · Source§

            fn bytes(self) -> Bytes<Self>
            where\n Self: Sized,

            Transforms this Read instance to an Iterator over its bytes. Read more
            1.0.0 · Source§

            fn chain<R>(self, next: R) -> Chain<Self, R>
            where\n R: Read,\n Self: Sized,

            Creates an adapter which will chain this stream with another. Read more
            1.0.0 · Source§

            fn take(self, limit: u64) -> Take<Self>
            where\n Self: Sized,

            Creates an adapter which will read at most limit bytes from it. Read more
            ","Read","iroh_relay::dns::BoxIter"],["
            §

            impl<T> Read for Box<T>
            where\n T: Read + Unpin + ?Sized,

            §

            fn poll_read(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: ReadBufCursor<'_>,\n) -> Poll<Result<(), Error>>

            Attempts to read bytes into the buf. Read more
            ","Read","iroh_relay::dns::BoxIter"],["
            §

            impl<R> Rng for Box<R>
            where\n R: Rng + ?Sized,

            §

            fn next_u64(&mut self) -> u64

            Generate a random u64.
            §

            fn next_f64(&mut self) -> f64

            Generate a random f64 between [0, 1).
            §

            fn next_range(&mut self, range: Range<u64>) -> u64

            Randomly pick a value within the range. Read more
            ","Rng","iroh_relay::dns::BoxIter"],["
            Source§

            impl<R> RngCore for Box<R>
            where\n R: RngCore + ?Sized,

            Available on crate feature alloc only.
            Source§

            fn next_u32(&mut self) -> u32

            Return the next random u32. Read more
            Source§

            fn next_u64(&mut self) -> u64

            Return the next random u64. Read more
            Source§

            fn fill_bytes(&mut self, dest: &mut [u8])

            Fill dest with random data. Read more
            Source§

            fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>

            Fill dest entirely with random data. Read more
            ","RngCore","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<S> Seek for Box<S>
            where\n S: Seek + ?Sized,

            Source§

            fn seek(&mut self, pos: SeekFrom) -> Result<u64, Error>

            Seek to an offset, in bytes, in a stream. Read more
            Source§

            fn rewind(&mut self) -> Result<(), Error>

            Rewind to the beginning of a stream. Read more
            Source§

            fn stream_len(&mut self) -> Result<u64, Error>

            🔬This is a nightly-only experimental API. (seek_stream_len)
            Returns the length of this stream (in bytes). Read more
            Source§

            fn stream_position(&mut self) -> Result<u64, Error>

            Returns the current seek position from the start of the stream. Read more
            Source§

            fn seek_relative(&mut self, offset: i64) -> Result<(), Error>

            Seeks relative to the current position. Read more
            ","Seek","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Serialize for Box<T>
            where\n T: Serialize + ?Sized,

            Available on crate features std or alloc only.
            Source§

            fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
            where\n S: Serializer,

            ","Serialize","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> Serialize for Box<T>
            where\n T: Serialize + ?Sized,

            Available on crate features std or alloc only.
            Source§

            fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
            where\n S: Serializer,

            Serialize this value into the given Serde serializer. Read more
            ","Serialize","iroh_relay::dns::BoxIter"],["
            §

            impl<Request, S> Service<Request> for Box<S>
            where\n S: Service<Request> + ?Sized,

            §

            type Response = <S as Service<Request>>::Response

            Responses given by the service.
            §

            type Error = <S as Service<Request>>::Error

            Errors produced by the service. Read more
            §

            type Future = <S as Service<Request>>::Future

            The future response value.
            §

            fn call(&self, req: Request) -> <Box<S> as Service<Request>>::Future

            Process the request and return the response asynchronously.\ncall takes &self instead of mut &self because: Read more
            ","Service","iroh_relay::dns::BoxIter"],["
            §

            impl<S, Request> Service<Request> for Box<S>
            where\n S: Service<Request> + ?Sized,

            §

            type Response = <S as Service<Request>>::Response

            Responses given by the service.
            §

            type Error = <S as Service<Request>>::Error

            Errors produced by the service.
            §

            type Future = <S as Service<Request>>::Future

            The future response value.
            §

            fn poll_ready(\n &mut self,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), <S as Service<Request>>::Error>>

            Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
            §

            fn call(&mut self, request: Request) -> <S as Service<Request>>::Future

            Process the request and return the response asynchronously. Read more
            ","Service","iroh_relay::dns::BoxIter"],["
            §

            impl<S, Item> Sink<Item> for Box<S>
            where\n S: Sink<Item> + Unpin + ?Sized,

            §

            type Error = <S as Sink<Item>>::Error

            The type of value produced by the sink when an error occurs.
            §

            fn poll_ready(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), <Box<S> as Sink<Item>>::Error>>

            Attempts to prepare the Sink to receive a value. Read more
            §

            fn start_send(\n self: Pin<&mut Box<S>>,\n item: Item,\n) -> Result<(), <Box<S> as Sink<Item>>::Error>

            Begin the process of sending a value to the sink.\nEach call to this function must be preceded by a successful call to\npoll_ready which returned Poll::Ready(Ok(())). Read more
            §

            fn poll_flush(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), <Box<S> as Sink<Item>>::Error>>

            Flush any remaining output from this sink. Read more
            §

            fn poll_close(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), <Box<S> as Sink<Item>>::Error>>

            Flush any remaining output and close this sink, if necessary. Read more
            ","Sink","iroh_relay::dns::BoxIter"],["
            §

            impl<T> Source for Box<T>
            where\n T: Source + ?Sized,

            §

            fn register(\n &mut self,\n registry: &Registry,\n token: Token,\n interests: Interest,\n) -> Result<(), Error>

            Register self with the given Registry instance. Read more
            §

            fn reregister(\n &mut self,\n registry: &Registry,\n token: Token,\n interests: Interest,\n) -> Result<(), Error>

            Re-register self with the given Registry instance. Read more
            §

            fn deregister(&mut self, registry: &Registry) -> Result<(), Error>

            Deregister self from the given Registry instance. Read more
            ","Source","iroh_relay::dns::BoxIter"],["
            §

            impl<Sp> Spawn for Box<Sp>
            where\n Sp: Spawn + ?Sized,

            §

            fn spawn_obj(&self, future: FutureObj<'static, ()>) -> Result<(), SpawnError>

            Spawns a future that will be run to completion. Read more
            §

            fn status(&self) -> Result<(), SpawnError>

            Determines whether the executor is able to spawn new tasks. Read more
            ","Spawn","iroh_relay::dns::BoxIter"],["
            §

            impl<S> Stream for Box<S>
            where\n S: Stream + Unpin + ?Sized,

            §

            type Item = <S as Stream>::Item

            Values yielded by the stream.
            §

            fn poll_next(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Option<<Box<S> as Stream>::Item>>

            Attempt to pull out the next value of this stream, registering the\ncurrent task for wakeup if the value is not yet available, and returning\nNone if the stream is exhausted. Read more
            §

            fn size_hint(&self) -> (usize, Option<usize>)

            Returns the bounds on the remaining length of the stream. Read more
            ","Stream","iroh_relay::dns::BoxIter"],["
            §

            impl<S> Subscriber for Box<S>
            where\n S: Subscriber + ?Sized,

            §

            fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

            Registers a new callsite with this subscriber, returning whether or not\nthe subscriber is interested in being notified about the callsite. Read more
            §

            fn enabled(&self, metadata: &Metadata<'_>) -> bool

            Returns true if a span or event with the specified metadata would be\nrecorded. Read more
            §

            fn max_level_hint(&self) -> Option<LevelFilter>

            Returns the highest verbosity level that this Subscriber will\nenable, or None, if the subscriber does not implement level-based\nfiltering or chooses not to implement this method. Read more
            §

            fn new_span(&self, span: &Attributes<'_>) -> Id

            Visit the construction of a new span, returning a new span ID for the\nspan being constructed. Read more
            §

            fn record(&self, span: &Id, values: &Record<'_>)

            Record a set of values on a span. Read more
            §

            fn record_follows_from(&self, span: &Id, follows: &Id)

            Adds an indication that span follows from the span with the id\nfollows. Read more
            §

            fn event_enabled(&self, event: &Event<'_>) -> bool

            Determine if an [Event] should be recorded. Read more
            §

            fn event(&self, event: &Event<'_>)

            Records that an Event has occurred. Read more
            §

            fn enter(&self, span: &Id)

            Records that a span has been entered. Read more
            §

            fn exit(&self, span: &Id)

            Records that a span has been exited. Read more
            §

            fn clone_span(&self, id: &Id) -> Id

            Notifies the subscriber that a span ID has been cloned. Read more
            §

            fn try_close(&self, id: Id) -> bool

            Notifies the subscriber that a span ID has been dropped, and returns\ntrue if there are now 0 IDs that refer to that span. Read more
            §

            fn drop_span(&self, id: Id)

            👎Deprecated since 0.1.2: use Subscriber::try_close instead
            This method is deprecated. Read more
            §

            fn current_span(&self) -> Current

            Returns a type representing this subscriber’s view of the current span. Read more
            §

            unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>

            If self is the same type as the provided TypeId, returns an untyped\n*const pointer to that type. Otherwise, returns None. Read more
            §

            fn on_register_dispatch(&self, subscriber: &Dispatch)

            Invoked when this subscriber becomes a [Dispatch]. Read more
            ","Subscriber","iroh_relay::dns::BoxIter"],["
            §

            impl<'a, T, F> UnsafeFutureObj<'a, T> for Box<F>
            where\n F: Future<Output = T> + 'a,

            §

            fn into_raw(self) -> *mut dyn Future<Output = T> + 'a

            Convert an owned instance into a (conceptually owned) fat pointer. Read more
            §

            unsafe fn drop(ptr: *mut dyn Future<Output = T> + 'a)

            Drops the future represented by the given fat pointer. Read more
            ","UnsafeFutureObj<'a, T>","iroh_relay::dns::BoxIter"],["
            §

            impl<T> Value for Box<T>
            where\n T: Value + ?Sized,

            §

            fn record(&self, key: &Field, visitor: &mut dyn Visit)

            Visits this value with the given Visitor.
            ","Value","iroh_relay::dns::BoxIter"],["
            §

            impl<T> Write for Box<T>
            where\n T: Write + Unpin + ?Sized,

            §

            fn poll_write(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &[u8],\n) -> Poll<Result<usize, Error>>

            Attempt to write bytes from buf into the destination. Read more
            §

            fn poll_write_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &[IoSlice<'_>],\n) -> Poll<Result<usize, Error>>

            Like poll_write, except that it writes from a slice of buffers.
            §

            fn is_write_vectored(&self) -> bool

            Returns whether this writer has an efficient poll_write_vectored\nimplementation. Read more
            §

            fn poll_flush(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Attempts to flush the object. Read more
            §

            fn poll_shutdown(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

            Attempts to shut down this writer.
            ","Write","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<W> Write for Box<W>
            where\n W: Write + ?Sized,

            Source§

            fn write(&mut self, buf: &[u8]) -> Result<usize, Error>

            Writes a buffer into this writer, returning how many bytes were written. Read more
            Source§

            fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>

            Like write, except that it writes from a slice of buffers. Read more
            Source§

            fn is_write_vectored(&self) -> bool

            🔬This is a nightly-only experimental API. (can_vector)
            Determines if this Writer has an efficient write_vectored\nimplementation. Read more
            Source§

            fn flush(&mut self) -> Result<(), Error>

            Flushes this output stream, ensuring that all intermediately buffered\ncontents reach their destination. Read more
            Source§

            fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

            Attempts to write an entire buffer into this writer. Read more
            Source§

            fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>

            🔬This is a nightly-only experimental API. (write_all_vectored)
            Attempts to write multiple buffers into this writer. Read more
            Source§

            fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>

            Writes a formatted string into this writer, returning any error\nencountered. Read more
            1.0.0 · Source§

            fn by_ref(&mut self) -> &mut Self
            where\n Self: Sized,

            Creates a “by reference” adapter for this instance of Write. Read more
            ","Write","iroh_relay::dns::BoxIter"],["
            §

            impl<T> WriteColor for Box<T>
            where\n T: WriteColor + ?Sized,

            §

            fn supports_color(&self) -> bool

            Returns true if and only if the underlying writer supports colors.
            §

            fn supports_hyperlinks(&self) -> bool

            Returns true if and only if the underlying writer supports hyperlinks. Read more
            §

            fn set_color(&mut self, spec: &ColorSpec) -> Result<(), Error>

            Set the color settings of the writer. Read more
            §

            fn set_hyperlink(&mut self, link: &HyperlinkSpec<'_>) -> Result<(), Error>

            Set the current hyperlink of the writer. Read more
            §

            fn reset(&mut self) -> Result<(), Error>

            Reset the current color settings to their original settings. Read more
            §

            fn is_synchronous(&self) -> bool

            Returns true if and only if the underlying writer must synchronously\ninteract with an end user’s device in order to control colors. By\ndefault, this always returns false. Read more
            ","WriteColor","iroh_relay::dns::BoxIter"],["
            §

            impl<'a, T> Writeable for Box<T>
            where\n T: Writeable + ?Sized,

            §

            fn write_to<W>(&self, sink: &mut W) -> Result<(), Error>
            where\n W: Write + ?Sized,

            Writes a string to the given sink. Errors from the sink are bubbled up.\nThe default implementation delegates to write_to_parts, and discards any\nPart annotations.
            §

            fn write_to_parts<W>(&self, sink: &mut W) -> Result<(), Error>
            where\n W: PartsWrite + ?Sized,

            Write bytes and Part annotations to the given sink. Errors from the\nsink are bubbled up. The default implementation delegates to write_to,\nand doesn’t produce any Part annotations.
            §

            fn writeable_length_hint(&self) -> LengthHint

            Returns a hint for the number of UTF-8 bytes that will be written to the sink. Read more
            §

            fn write_to_string(&self) -> Cow<'_, str>

            Creates a new String with the data from this Writeable. Like ToString,\nbut smaller and faster. Read more
            ","Writeable","iroh_relay::dns::BoxIter"],["
            §

            impl<T> CartablePointerLike for Box<T>

            Available on crate feature alloc only.
            ","CartablePointerLike","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, U, A> CoerceUnsized<Box<U, A>> for Box<T, A>
            where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

            ","CoerceUnsized>","iroh_relay::dns::BoxIter"],["
            Source§

            impl<R> CryptoRng for Box<R>
            where\n R: CryptoRng + ?Sized,

            Available on crate feature alloc only.
            ","CryptoRng","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, A> DerefPure for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            ","DerefPure","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, U> DispatchFromDyn<Box<U>> for Box<T>
            where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

            ","DispatchFromDyn>","iroh_relay::dns::BoxIter"],["
            1.0.0 · Source§

            impl<T, A> Eq for Box<T, A>
            where\n T: Eq + ?Sized,\n A: Allocator,

            ","Eq","iroh_relay::dns::BoxIter"],["
            1.26.0 · Source§

            impl<I, A> FusedIterator for Box<I, A>
            where\n I: FusedIterator + ?Sized,\n A: Allocator,

            ","FusedIterator","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T, A> PinCoerceUnsized for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            ","PinCoerceUnsized","iroh_relay::dns::BoxIter"],["
            Source§

            impl<T> PointerLike for Box<T>

            ","PointerLike","iroh_relay::dns::BoxIter"],["
            §

            impl<'a, T> Sequence<'a> for Box<T>
            where\n T: Sequence<'a>,

            Available on crate feature alloc only.
            ","Sequence<'a>","iroh_relay::dns::BoxIter"],["
            §

            impl<T> StableDeref for Box<T>
            where\n T: ?Sized,

            Available on crate feature alloc only.
            ","StableDeref","iroh_relay::dns::BoxIter"],["
            1.33.0 · Source§

            impl<T, A> Unpin for Box<T, A>
            where\n A: Allocator,\n T: ?Sized,

            ","Unpin","iroh_relay::dns::BoxIter"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { window.pending_type_impls = type_impls; } })() -//{"start":55,"fragment_lengths":[619173]} \ No newline at end of file +//{"start":55,"fragment_lengths":[626060]} \ No newline at end of file diff --git a/pr/3514/docs/type.impl/iroh/struct.PublicKey.js b/pr/3514/docs/type.impl/iroh/struct.PublicKey.js index 60b36f3e8d..b2a9a8cc23 100644 --- a/pr/3514/docs/type.impl/iroh/struct.PublicKey.js +++ b/pr/3514/docs/type.impl/iroh/struct.PublicKey.js @@ -1,9 +1,9 @@ (function() { - var type_impls = Object.fromEntries([["iroh",[["
            Source§

            impl AsRef<[u8]> for PublicKey

            Source§

            fn as_ref(&self) -> &[u8] ⓘ

            Converts this type into a shared reference of the (usually inferred) input type.
            ","AsRef<[u8]>","iroh::NodeId"],["
            Source§

            impl Borrow<[u8; 32]> for PublicKey

            Source§

            fn borrow(&self) -> &[u8; 32]

            Immutably borrows from an owned value. Read more
            ","Borrow<[u8; 32]>","iroh::NodeId"],["
            Source§

            impl Clone for PublicKey

            Source§

            fn clone(&self) -> PublicKey

            Returns a copy of the value. Read more
            1.0.0 · Source§

            fn clone_from(&mut self, source: &Self)

            Performs copy-assignment from source. Read more
            ","Clone","iroh::NodeId"],["
            Source§

            impl Debug for PublicKey

            Source§

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

            Formats the value using the given formatter. Read more
            ","Debug","iroh::NodeId"],["
            Source§

            impl Deref for PublicKey

            Source§

            type Target = [u8; 32]

            The resulting type after dereferencing.
            Source§

            fn deref(&self) -> &<PublicKey as Deref>::Target

            Dereferences the value.
            ","Deref","iroh::NodeId"],["
            Source§

            impl<'de> Deserialize<'de> for PublicKey

            Source§

            fn deserialize<D>(\n deserializer: D,\n) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
            where\n D: Deserializer<'de>,

            Deserialize this value from the given Serde deserializer. Read more
            ","Deserialize<'de>","iroh::NodeId"],["
            Source§

            impl Display for PublicKey

            Source§

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

            Formats the value using the given formatter. Read more
            ","Display","iroh::NodeId"],["
            Source§

            impl From<VerifyingKey> for PublicKey

            Source§

            fn from(verifying_key: VerifyingKey) -> PublicKey

            Converts to this type from the input type.
            ","From","iroh::NodeId"],["
            Source§

            impl FromStr for PublicKey

            Deserialises the PublicKey from it’s base32 encoding.

            \n

            Display is capable of serialising this format.

            \n
            Source§

            type Err = KeyParsingError

            The associated error which can be returned from parsing.
            Source§

            fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

            Parses a string s to return a value of this type. Read more
            ","FromStr","iroh::NodeId"],["
            Source§

            impl Hash for PublicKey

            Source§

            fn hash<H>(&self, state: &mut H)
            where\n H: Hasher,

            Feeds this value into the given Hasher. Read more
            1.3.0 · Source§

            fn hash_slice<H>(data: &[Self], state: &mut H)
            where\n H: Hasher,\n Self: Sized,

            Feeds a slice of this type into the given Hasher. Read more
            ","Hash","iroh::NodeId"],["
            Source§

            impl NodeIdExt for PublicKey

            Source§

            fn to_z32(&self) -> String

            Encodes a NodeId in z-base-32 encoding.
            Source§

            fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

            Parses a NodeId from z-base-32 encoding.
            ","NodeIdExt","iroh::NodeId"],["
            Source§

            impl Ord for PublicKey

            Source§

            fn cmp(&self, other: &PublicKey) -> Ordering

            This method returns an Ordering between self and other. Read more
            1.21.0 · Source§

            fn max(self, other: Self) -> Self
            where\n Self: Sized,

            Compares and returns the maximum of two values. Read more
            1.21.0 · Source§

            fn min(self, other: Self) -> Self
            where\n Self: Sized,

            Compares and returns the minimum of two values. Read more
            1.50.0 · Source§

            fn clamp(self, min: Self, max: Self) -> Self
            where\n Self: Sized,

            Restrict a value to a certain interval. Read more
            ","Ord","iroh::NodeId"],["
            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,\nand should not be overridden without very good reason.
            ","PartialEq","iroh::NodeId"],["
            Source§

            impl PartialOrd for PublicKey

            Source§

            fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

            This method returns an ordering between self and other values if one exists. Read more
            1.0.0 · Source§

            fn lt(&self, other: &Rhs) -> bool

            Tests less than (for self and other) and is used by the < operator. Read more
            1.0.0 · Source§

            fn le(&self, other: &Rhs) -> bool

            Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
            1.0.0 · Source§

            fn gt(&self, other: &Rhs) -> bool

            Tests greater than (for self and other) and is used by the >\noperator. Read more
            1.0.0 · Source§

            fn ge(&self, other: &Rhs) -> bool

            Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
            ","PartialOrd","iroh::NodeId"],["
            Source§

            impl PublicKey

            Source

            pub const LENGTH: usize = 32usize

            The length of an ed25519 PublicKey, in bytes.

            \n
            Source

            pub fn as_bytes(&self) -> &[u8; 32]

            Get this public key as a byte array.

            \n
            Source

            pub fn public(&self) -> VerifyingKey

            Returns the [VerifyingKey] for this PublicKey.

            \n
            Source

            pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

            Construct a PublicKey from a slice of bytes.

            \n
            §Warning
            \n

            This will return a [SignatureError] if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

            \n
            Source

            pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

            Verify a signature on a message with this secret key’s public key.

            \n
            §Return
            \n

            Returns Ok(()) if the signature is valid, and Err otherwise.

            \n
            Source

            pub fn fmt_short(&self) -> impl Display + 'static

            Convert to a hex string limited to the first 5 bytes for a friendly string\nrepresentation of the key.

            \n
            ",0,"iroh::NodeId"],["
            Source§

            impl Serialize for PublicKey

            Source§

            fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
            where\n S: Serializer,

            Serialize this value into the given Serde serializer. Read more
            ","Serialize","iroh::NodeId"],["
            Source§

            impl TryFrom<&[u8]> for PublicKey

            Source§

            type Error = Error

            The type returned in the event of a conversion error.
            Source§

            fn try_from(\n bytes: &[u8],\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

            Performs the conversion.
            ","TryFrom<&[u8]>","iroh::NodeId"],["
            Source§

            impl TryFrom<&[u8; 32]> for PublicKey

            Source§

            type Error = Error

            The type returned in the event of a conversion error.
            Source§

            fn try_from(\n bytes: &[u8; 32],\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

            Performs the conversion.
            ","TryFrom<&[u8; 32]>","iroh::NodeId"],["
            Source§

            impl Copy for PublicKey

            ","Copy","iroh::NodeId"],["
            Source§

            impl Eq for PublicKey

            ","Eq","iroh::NodeId"],["
            Source§

            impl StructuralPartialEq for PublicKey

            ","StructuralPartialEq","iroh::NodeId"]]]]); + var type_impls = Object.fromEntries([["iroh",[["
            Source§

            impl AsRef<[u8]> for PublicKey

            Source§

            fn as_ref(&self) -> &[u8] ⓘ

            Converts this type into a shared reference of the (usually inferred) input type.
            ","AsRef<[u8]>","iroh::NodeId"],["
            Source§

            impl Borrow<[u8; 32]> for PublicKey

            Source§

            fn borrow(&self) -> &[u8; 32]

            Immutably borrows from an owned value. Read more
            ","Borrow<[u8; 32]>","iroh::NodeId"],["
            Source§

            impl Clone for PublicKey

            Source§

            fn clone(&self) -> PublicKey

            Returns a copy of the value. Read more
            1.0.0 · Source§

            fn clone_from(&mut self, source: &Self)

            Performs copy-assignment from source. Read more
            ","Clone","iroh::NodeId"],["
            Source§

            impl Debug for PublicKey

            Source§

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

            Formats the value using the given formatter. Read more
            ","Debug","iroh::NodeId"],["
            Source§

            impl Deref for PublicKey

            Source§

            type Target = [u8; 32]

            The resulting type after dereferencing.
            Source§

            fn deref(&self) -> &<PublicKey as Deref>::Target

            Dereferences the value.
            ","Deref","iroh::NodeId"],["
            Source§

            impl<'de> Deserialize<'de> for PublicKey

            Source§

            fn deserialize<D>(\n deserializer: D,\n) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
            where\n D: Deserializer<'de>,

            Deserialize this value from the given Serde deserializer. Read more
            ","Deserialize<'de>","iroh::NodeId"],["
            Source§

            impl Display for PublicKey

            Source§

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

            Formats the value using the given formatter. Read more
            ","Display","iroh::NodeId"],["
            Source§

            impl From<VerifyingKey> for PublicKey

            Source§

            fn from(verifying_key: VerifyingKey) -> PublicKey

            Converts to this type from the input type.
            ","From","iroh::NodeId"],["
            Source§

            impl FromStr for PublicKey

            Deserialises the PublicKey from it’s base32 encoding.

            \n

            Display is capable of serialising this format.

            \n
            Source§

            type Err = KeyParsingError

            The associated error which can be returned from parsing.
            Source§

            fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

            Parses a string s to return a value of this type. Read more
            ","FromStr","iroh::NodeId"],["
            Source§

            impl Hash for PublicKey

            Source§

            fn hash<H>(&self, state: &mut H)
            where\n H: Hasher,

            Feeds this value into the given Hasher. Read more
            1.3.0 · Source§

            fn hash_slice<H>(data: &[Self], state: &mut H)
            where\n H: Hasher,\n Self: Sized,

            Feeds a slice of this type into the given Hasher. Read more
            ","Hash","iroh::NodeId"],["
            Source§

            impl NodeIdExt for PublicKey

            Source§

            fn to_z32(&self) -> String

            Encodes a NodeId in [z-base-32] encoding.
            Source§

            fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

            Parses a NodeId from [z-base-32] encoding.
            ","NodeIdExt","iroh::NodeId"],["
            Source§

            impl Ord for PublicKey

            Source§

            fn cmp(&self, other: &PublicKey) -> Ordering

            This method returns an Ordering between self and other. Read more
            1.21.0 · Source§

            fn max(self, other: Self) -> Self
            where\n Self: Sized,

            Compares and returns the maximum of two values. Read more
            1.21.0 · Source§

            fn min(self, other: Self) -> Self
            where\n Self: Sized,

            Compares and returns the minimum of two values. Read more
            1.50.0 · Source§

            fn clamp(self, min: Self, max: Self) -> Self
            where\n Self: Sized,

            Restrict a value to a certain interval. Read more
            ","Ord","iroh::NodeId"],["
            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,\nand should not be overridden without very good reason.
            ","PartialEq","iroh::NodeId"],["
            Source§

            impl PartialOrd for PublicKey

            Source§

            fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

            This method returns an ordering between self and other values if one exists. Read more
            1.0.0 · Source§

            fn lt(&self, other: &Rhs) -> bool

            Tests less than (for self and other) and is used by the < operator. Read more
            1.0.0 · Source§

            fn le(&self, other: &Rhs) -> bool

            Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
            1.0.0 · Source§

            fn gt(&self, other: &Rhs) -> bool

            Tests greater than (for self and other) and is used by the >\noperator. Read more
            1.0.0 · Source§

            fn ge(&self, other: &Rhs) -> bool

            Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
            ","PartialOrd","iroh::NodeId"],["
            Source§

            impl PublicKey

            Source

            pub const LENGTH: usize = 32usize

            The length of an ed25519 PublicKey, in bytes.

            \n
            Source

            pub fn as_bytes(&self) -> &[u8; 32]

            Get this public key as a byte array.

            \n
            Source

            pub fn public(&self) -> VerifyingKey

            Returns the [VerifyingKey] for this PublicKey.

            \n
            Source

            pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

            Construct a PublicKey from a slice of bytes.

            \n
            §Warning
            \n

            This will return a [SignatureError] if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

            \n
            Source

            pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

            Verify a signature on a message with this secret key’s public key.

            \n
            §Return
            \n

            Returns Ok(()) if the signature is valid, and Err otherwise.

            \n
            Source

            pub fn fmt_short(&self) -> impl Display + 'static

            Convert to a hex string limited to the first 5 bytes for a friendly string\nrepresentation of the key.

            \n
            ",0,"iroh::NodeId"],["
            Source§

            impl Serialize for PublicKey

            Source§

            fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
            where\n S: Serializer,

            Serialize this value into the given Serde serializer. Read more
            ","Serialize","iroh::NodeId"],["
            Source§

            impl TryFrom<&[u8]> for PublicKey

            Source§

            type Error = Error

            The type returned in the event of a conversion error.
            Source§

            fn try_from(\n bytes: &[u8],\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

            Performs the conversion.
            ","TryFrom<&[u8]>","iroh::NodeId"],["
            Source§

            impl TryFrom<&[u8; 32]> for PublicKey

            Source§

            type Error = Error

            The type returned in the event of a conversion error.
            Source§

            fn try_from(\n bytes: &[u8; 32],\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

            Performs the conversion.
            ","TryFrom<&[u8; 32]>","iroh::NodeId"],["
            Source§

            impl Copy for PublicKey

            ","Copy","iroh::NodeId"],["
            Source§

            impl Eq for PublicKey

            ","Eq","iroh::NodeId"],["
            Source§

            impl StructuralPartialEq for PublicKey

            ","StructuralPartialEq","iroh::NodeId"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { window.pending_type_impls = type_impls; } })() -//{"start":55,"fragment_lengths":[50576]} \ No newline at end of file +//{"start":55,"fragment_lengths":[50412]} \ No newline at end of file diff --git a/pr/3514/docs/type.impl/signature/error/struct.Error.js b/pr/3514/docs/type.impl/signature/error/struct.Error.js index 171261f5ef..89980dbc12 100644 --- a/pr/3514/docs/type.impl/signature/error/struct.Error.js +++ b/pr/3514/docs/type.impl/signature/error/struct.Error.js @@ -1,9 +1,9 @@ (function() { - var type_impls = Object.fromEntries([["iroh_base",[["
            §

            impl Debug for Error

            §

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

            Formats the value using the given formatter. Read more
            ","Debug","iroh_base::SignatureError"],["
            §

            impl Default for Error

            §

            fn default() -> Error

            Returns the “default value” for a type. Read more
            ","Default","iroh_base::SignatureError"],["
            §

            impl Display for Error

            §

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

            Formats the value using the given formatter. Read more
            ","Display","iroh_base::SignatureError"],["
            §

            impl Error for Error

            §

            fn source(&self) -> Option<&(dyn Error + 'static)>

            Returns the lower-level source of this error, if any. Read more
            1.0.0 · Source§

            fn description(&self) -> &str

            👎Deprecated since 1.42.0: use the Display impl or to_string()
            1.0.0 · Source§

            fn cause(&self) -> Option<&dyn Error>

            👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
            Source§

            fn provide<'a>(&'a self, request: &mut Request<'a>)

            🔬This is a nightly-only experimental API. (error_generic_member_access)
            Provides type-based access to context intended for error reports. Read more
            ","Error","iroh_base::SignatureError"],["
            §

            impl Error

            pub fn new() -> Error

            Create a new error with no associated source

            \n

            pub fn from_source(source: impl Into<Box<dyn Error + Send + Sync>>) -> Error

            Create a new error with an associated source.

            \n

            NOTE: The “source” should NOT be used to propagate cryptographic\nerrors e.g. signature parsing or verification errors. The intended use\ncases are for propagating errors related to external signers, e.g.\ncommunication/authentication errors with HSMs, KMS, etc.

            \n
            ",0,"iroh_base::SignatureError"],["
            §

            impl From<Box<dyn Error + Send + Sync>> for Error

            §

            fn from(source: Box<dyn Error + Send + Sync>) -> Error

            Converts to this type from the input type.
            ","From>","iroh_base::SignatureError"],["
            §

            impl From<InternalError> for Error

            §

            fn from(err: InternalError) -> Error

            Converts to this type from the input type.
            ","From","iroh_base::SignatureError"]]]]); + var type_impls = Object.fromEntries([["iroh_base",[["
            §

            impl Debug for Error

            §

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

            Formats the value using the given formatter. Read more
            ","Debug","iroh_base::SignatureError"],["
            §

            impl Default for Error

            §

            fn default() -> Error

            Returns the “default value” for a type. Read more
            ","Default","iroh_base::SignatureError"],["
            §

            impl Display for Error

            §

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

            Formats the value using the given formatter. Read more
            ","Display","iroh_base::SignatureError"],["
            §

            impl Error for Error

            §

            fn source(&self) -> Option<&(dyn Error + 'static)>

            Returns the lower-level source of this error, if any. Read more
            1.0.0 · Source§

            fn description(&self) -> &str

            👎Deprecated since 1.42.0: use the Display impl or to_string()
            1.0.0 · Source§

            fn cause(&self) -> Option<&dyn Error>

            👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
            Source§

            fn provide<'a>(&'a self, request: &mut Request<'a>)

            🔬This is a nightly-only experimental API. (error_generic_member_access)
            Provides type-based access to context intended for error reports. Read more
            ","Error","iroh_base::SignatureError"],["
            §

            impl Error

            pub fn new() -> Error

            Create a new error with no associated source

            \n

            pub fn from_source(source: impl Into<Box<dyn Error + Send + Sync>>) -> Error

            Available on crate feature alloc only.

            Create a new error with an associated source.

            \n

            NOTE: The “source” should NOT be used to propagate cryptographic\nerrors e.g. signature parsing or verification errors. The intended use\ncases are for propagating errors related to external signers, e.g.\ncommunication/authentication errors with HSMs, KMS, etc.

            \n
            ",0,"iroh_base::SignatureError"],["
            §

            impl From<Box<dyn Error + Send + Sync>> for Error

            Available on crate feature alloc only.
            §

            fn from(source: Box<dyn Error + Send + Sync>) -> Error

            Converts to this type from the input type.
            ","From>","iroh_base::SignatureError"],["
            §

            impl From<InternalError> for Error

            §

            fn from(err: InternalError) -> Error

            Converts to this type from the input type.
            ","From","iroh_base::SignatureError"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { window.pending_type_impls = type_impls; } })() -//{"start":55,"fragment_lengths":[13369]} \ No newline at end of file +//{"start":55,"fragment_lengths":[13647]} \ No newline at end of file