From 7bbd2bf0666a1d2b0b58dcf674d76c1eadf2ca58 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Mon, 12 May 2025 10:32:57 +0000 Subject: [PATCH] deploy: b15654e9e6540df863c9d50d99bb3852f65dab81 --- .../client/enum.ReceivedMessage.html | 8 ++--- .../iroh_relay/client/enum.SendMessage.html | 4 +-- .../client/struct.ClientBuilder.html | 4 +-- .../iroh_relay/dns/struct.DnsResolver.html | 8 ++--- pr/3279/docs/iroh_relay/index.html | 2 +- pr/3279/docs/iroh_relay/node_info/index.html | 10 +++--- .../iroh_relay/node_info/struct.NodeData.html | 16 ++++----- .../iroh_relay/node_info/struct.NodeInfo.html | 26 +++++++------- .../iroh_relay/node_info/trait.NodeIdExt.html | 10 +++--- .../iroh_relay/server/enum.AccessConfig.html | 6 ++-- .../docs/iroh_relay/server/struct.Server.html | 4 +-- pr/3279/docs/iroh_relay/struct.RelayMap.html | 10 +++--- pr/3279/docs/iroh_relay/struct.RelayNode.html | 6 ++-- pr/3279/docs/src/iroh/endpoint.rs.html | 2 +- .../docs/src/iroh/magicsock/node_map.rs.html | 6 +++- .../iroh/magicsock/transports/relay.rs.html | 36 +++++++++---------- .../magicsock/transports/relay/actor.rs.html | 2 +- .../src/iroh_relay/server/http_server.rs.html | 2 +- .../trait.impl/core/convert/trait.From.js | 4 +-- .../iter/traits/collect/trait.FromIterator.js | 4 +-- 20 files changed, 86 insertions(+), 84 deletions(-) diff --git a/pr/3279/docs/iroh_relay/client/enum.ReceivedMessage.html b/pr/3279/docs/iroh_relay/client/enum.ReceivedMessage.html index d612779969..535193a6c8 100644 --- a/pr/3279/docs/iroh_relay/client/enum.ReceivedMessage.html +++ b/pr/3279/docs/iroh_relay/client/enum.ReceivedMessage.html @@ -1,9 +1,9 @@ ReceivedMessage in iroh_relay::client - Rust
iroh_relay::client

Enum ReceivedMessage

Source
pub enum ReceivedMessage {
     ReceivedPacket {
-        remote_node_id: NodeId,
+        remote_node_id: NodeId,
         data: Bytes,
     },
-    NodeGone(NodeId),
+    NodeGone(NodeId),
     Ping([u8; 8]),
     Pong([u8; 8]),
     KeepAlive,
@@ -17,9 +17,9 @@
 }
Expand description

The messages received from a framed relay stream.

This is a type-validated version of the Frames on the RelayCodec.

Variants§

§

ReceivedPacket

Represents an incoming packet.

-

Fields

§remote_node_id: NodeId

The NodeId of the packet sender.

+

Fields

§remote_node_id: NodeId

The [NodeId] of the packet sender.

§data: Bytes

The received packet bytes.

-
§

NodeGone(NodeId)

Indicates that the client identified by the underlying public key had previously sent you a +

§

NodeGone(NodeId)

Indicates that the client identified by the underlying public key had previously sent you a packet but has now disconnected from the server.

§

Ping([u8; 8])

Request from a client or server to reply to the other side with a ReceivedMessage::Pong with the given payload.

diff --git a/pr/3279/docs/iroh_relay/client/enum.SendMessage.html b/pr/3279/docs/iroh_relay/client/enum.SendMessage.html index cf87651734..55d5cca41d 100644 --- a/pr/3279/docs/iroh_relay/client/enum.SendMessage.html +++ b/pr/3279/docs/iroh_relay/client/enum.SendMessage.html @@ -1,9 +1,9 @@ SendMessage in iroh_relay::client - Rust
iroh_relay::client

Enum SendMessage

Source
pub enum SendMessage {
-    SendPacket(NodeId, Bytes),
+    SendPacket(NodeId, Bytes),
     Ping([u8; 8]),
     Pong([u8; 8]),
 }
Expand description

Messages we can send to a relay server.

-

Variants§

§

SendPacket(NodeId, Bytes)

Send a packet of data to the NodeId.

+

Variants§

§

SendPacket(NodeId, Bytes)

Send a packet of data to the [NodeId].

§

Ping([u8; 8])

Sends a ping message to the connected relay server.

§

Pong([u8; 8])

Sends a pong message to the connected relay server.

Trait Implementations§

Source§

impl Debug for SendMessage

Source§

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

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

impl Sink<SendMessage> for Client

Source§

type Error = ConnSendError

The type of value produced by the sink when an error occurs.
Source§

fn poll_ready( diff --git a/pr/3279/docs/iroh_relay/client/struct.ClientBuilder.html b/pr/3279/docs/iroh_relay/client/struct.ClientBuilder.html index 4f94efe715..22ed2c5e40 100644 --- a/pr/3279/docs/iroh_relay/client/struct.ClientBuilder.html +++ b/pr/3279/docs/iroh_relay/client/struct.ClientBuilder.html @@ -1,7 +1,7 @@ ClientBuilder in iroh_relay::client - Rust
iroh_relay::client

Struct ClientBuilder

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

Build a Client.

Implementations§

Source§

impl ClientBuilder

Source

pub fn new( - url: impl Into<RelayUrl>, - secret_key: SecretKey, + url: impl Into<RelayUrl>, + secret_key: SecretKey, dns_resolver: DnsResolver, ) -> Self

Create a new ClientBuilder

Source

pub fn protocol(self, protocol: Protocol) -> Self

Sets whether to connect to the relay via websockets or not. diff --git a/pr/3279/docs/iroh_relay/dns/struct.DnsResolver.html b/pr/3279/docs/iroh_relay/dns/struct.DnsResolver.html index 7c5a185de6..ea537effea 100644 --- a/pr/3279/docs/iroh_relay/dns/struct.DnsResolver.html +++ b/pr/3279/docs/iroh_relay/dns/struct.DnsResolver.html @@ -67,9 +67,9 @@ at T+0ms, T+200ms and T+300ms. The timeout is applied as stated in summary of all errors otherwise.

Source

pub async fn lookup_node_by_id( &self, - node_id: &NodeId, + node_id: &NodeId, origin: &str, -) -> Result<NodeInfo>

Looks up node info by NodeId and origin domain name.

+) -> Result<NodeInfo>

Looks up node info by [NodeId] and origin domain name.

To lookup nodes that published their node info to the DNS servers run by n0, pass N0_DNS_NODE_ORIGIN_PROD as origin.

Source

pub async fn lookup_node_by_domain_name(&self, name: &str) -> Result<NodeInfo>

Looks up node info by DNS name.

@@ -84,10 +84,10 @@ at T+0ms, T+200ms and T+300ms. The result of the first successful call is return summary of all errors otherwise.

Source

pub async fn lookup_node_by_id_staggered( &self, - node_id: &NodeId, + node_id: &NodeId, origin: &str, delays_ms: &[u64], -) -> Result<NodeInfo>

Looks up node info by NodeId and origin domain name.

+) -> Result<NodeInfo>

Looks up node info by [NodeId] and origin domain name.

From the moment this function is called, each lookup is scheduled after the delays in delays_ms with the first call being done immediately. [200ms, 300ms] results in calls at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a diff --git a/pr/3279/docs/iroh_relay/index.html b/pr/3279/docs/iroh_relay/index.html index b45ccff8c4..aa17a382d4 100644 --- a/pr/3279/docs/iroh_relay/index.html +++ b/pr/3279/docs/iroh_relay/index.html @@ -25,6 +25,6 @@ Tailscale.

STUN support and expose metrics.

-

Re-exports§

Modules§

  • Exposes Client, which allows to establish connections to a relay server.
  • Default values used in the relay.
  • dnsNon-wasm_browser
    DNS resolver
  • HTTP-specific constants for the relay server and client.
  • Support for handling DNS resource records for dialing by NodeId.
  • Protocols used by the iroh-relay
  • Create a QUIC server that accepts connections +

    Re-exports§

    Modules§

    • Exposes Client, which allows to establish connections to a relay server.
    • Default values used in the relay.
    • dnsNon-wasm_browser
      DNS resolver
    • HTTP-specific constants for the relay server and client.
    • Support for handling DNS resource records for dialing by [NodeId].
    • Protocols used by the iroh-relay
    • Create a QUIC server that accepts connections for QUIC address discovery.
    • serverserver
      A fully-fledged iroh-relay server over HTTP or HTTPS.

    Structs§

    • Tracks pings on a single relay connection.
    • Configuration of all the relay servers that can be used.
    • Information on a specific relay server.
    • 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/3279/docs/iroh_relay/node_info/index.html b/pr/3279/docs/iroh_relay/node_info/index.html index e55baaed6c..daa1aa3c65 100644 --- a/pr/3279/docs/iroh_relay/node_info/index.html +++ b/pr/3279/docs/iroh_relay/node_info/index.html @@ -1,5 +1,5 @@ -iroh_relay::node_info - Rust
iroh_relay

Module node_info

Source
Expand description

Support for handling DNS resource records for dialing by NodeId.

-

Dialing by NodeId is supported by iroh nodes publishing Pkarr records to DNS +iroh_relay::node_info - Rust

iroh_relay

Module node_info

Source
Expand description

Support for handling DNS resource records for dialing by [NodeId].

+

Dialing by [NodeId] is supported by iroh nodes publishing Pkarr records to DNS servers or the Mainline DHT. This module supports creating and parsing these records.

DNS records are published under the following names:

_iroh.<z32-node-id>.<origin-domain> TXT

@@ -8,7 +8,7 @@ servers or the Mainline DHT. This module supports creating and parsing these re

_iroh is the record name as defined by IROH_TXT_NAME.

  • -

    <z32-node-id> is the z-base-32 encoding of the NodeId.

    +

    <z32-node-id> is the z-base-32 encoding of the [NodeId].

  • <origin-domain> is the domain name of the publishing DNS server, @@ -23,12 +23,12 @@ servers or the Mainline DHT. This module supports creating and parsing these re in RFC1464. The following attributes are defined:

    • -

      relay=<url>: The home RelayUrl of this node.

      +

      relay=<url>: The home RelayUrl of this node.

    • addr=<addr> <addr>: A space-separated list of sockets addresses for this iroh node. Each address is an IPv4 or IPv6 address with a port.

    -
  • Structs§

    Constants§

    Traits§

    • Extension methods for NodeId to encode to and decode from [z32], +

    Structs§

    Constants§

    Traits§

    • Extension methods for [NodeId] to encode to and decode from [z32], which is the encoding used in [pkarr] domain names.
    \ No newline at end of file diff --git a/pr/3279/docs/iroh_relay/node_info/struct.NodeData.html b/pr/3279/docs/iroh_relay/node_info/struct.NodeData.html index 4a3e6db1c8..f4a1f6e4b0 100644 --- a/pr/3279/docs/iroh_relay/node_info/struct.NodeData.html +++ b/pr/3279/docs/iroh_relay/node_info/struct.NodeData.html @@ -1,20 +1,20 @@ NodeData in iroh_relay::node_info - Rust
    iroh_relay::node_info

    Struct NodeData

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

    Data about a node that may be published to and resolved from discovery services.

    -

    This includes an optional RelayUrl, a set of direct addresses, and the optional +

    This includes an optional [RelayUrl], a set of direct addresses, and the optional UserData, a string that can be set by applications and is not parsed or used by iroh itself.

    -

    This struct does not include the node’s NodeId, only the data about a certain -node. See NodeInfo for a struct that contains a NodeId with associated NodeData.

    +

    This struct does not include the node’s [NodeId], only the data about a certain +node. See NodeInfo for a struct that contains a [NodeId] with associated NodeData.

    Implementations§

    Source§

    impl NodeData

    Source

    pub fn new( - relay_url: Option<RelayUrl>, + relay_url: Option<RelayUrl>, direct_addresses: BTreeSet<SocketAddr>, ) -> Self

    Creates a new NodeData with a relay URL and a set of direct addresses.

    -
    Source

    pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self

    Sets the relay URL and returns the updated node data.

    +
    Source

    pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self

    Sets the relay URL and returns the updated node data.

    Source

    pub fn with_direct_addresses( self, direct_addresses: BTreeSet<SocketAddr>, ) -> Self

    Sets the direct addresses and returns the updated node data.

    Source

    pub fn with_user_data(self, user_data: Option<UserData>) -> Self

    Sets the user-defined data and returns the updated node data.

    -
    Source

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

    Returns the relay URL of the node.

    +
    Source

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

    Returns the relay URL of the node.

    Source

    pub fn user_data(&self) -> Option<&UserData>

    Returns the optional user-defined data of the node.

    Source

    pub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>

    Returns the direct addresses of the node.

    Source

    pub fn clear_direct_addresses(&mut self)

    Removes all direct addresses from the node data.

    @@ -22,9 +22,9 @@ node. See IntoIterator<Item = SocketAddr>, )

    Adds direct addresses to the node data.

    -
    Source

    pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)

    Sets the relay URL of the node data.

    +
    Source

    pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)

    Sets the relay URL of the node data.

    Source

    pub fn set_user_data(&mut self, user_data: Option<UserData>)

    Sets the user-defined data of the node data.

    -

    Trait Implementations§

    Source§

    impl Clone for NodeData

    Source§

    fn clone(&self) -> NodeData

    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 NodeData

    Source§

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

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

    impl Default for NodeData

    Source§

    fn default() -> NodeData

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

    impl From<NodeAddr> for NodeData

    Source§

    fn from(node_addr: NodeAddr) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for NodeData

    Source§

    fn eq(&self, other: &NodeData) -> 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, +

    Trait Implementations§

    Source§

    impl Clone for NodeData

    Source§

    fn clone(&self) -> NodeData

    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 NodeData

    Source§

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

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

    impl Default for NodeData

    Source§

    fn default() -> NodeData

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

    impl From<NodeAddr> for NodeData

    Source§

    fn from(node_addr: NodeAddr) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for NodeData

    Source§

    fn eq(&self, other: &NodeData) -> 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 Eq for NodeData

    Source§

    impl StructuralPartialEq for NodeData

    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 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/3279/docs/iroh_relay/node_info/struct.NodeInfo.html b/pr/3279/docs/iroh_relay/node_info/struct.NodeInfo.html index dde190c92b..cd66ba54e3 100644 --- a/pr/3279/docs/iroh_relay/node_info/struct.NodeInfo.html +++ b/pr/3279/docs/iroh_relay/node_info/struct.NodeInfo.html @@ -1,30 +1,30 @@ NodeInfo in iroh_relay::node_info - Rust
    iroh_relay::node_info

    Struct NodeInfo

    Source
    pub struct NodeInfo {
    -    pub node_id: NodeId,
    +    pub node_id: NodeId,
         pub data: NodeData,
     }
    Expand description

    Information about a node that may be published to and resolved from discovery services.

    -

    This struct couples a NodeId with its associated NodeData.

    -

    Fields§

    §node_id: NodeId

    The NodeId of the node this is about.

    +

    This struct couples a [NodeId] with its associated NodeData.

    +

    Fields§

    §node_id: NodeId

    The [NodeId] of the node this is about.

    §data: NodeData

    The information published about the node.

    -

    Implementations§

    Source§

    impl NodeInfo

    Source

    pub fn new(node_id: NodeId) -> Self

    Creates a new NodeInfo with an empty NodeData.

    -
    Source

    pub fn from_parts(node_id: NodeId, data: NodeData) -> Self

    Creates a new NodeInfo from its parts.

    -
    Source

    pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self

    Sets the relay URL and returns the updated node info.

    +

    Implementations§

    Source§

    impl NodeInfo

    Source

    pub fn new(node_id: NodeId) -> Self

    Creates a new NodeInfo with an empty NodeData.

    +
    Source

    pub fn from_parts(node_id: NodeId, data: NodeData) -> Self

    Creates a new NodeInfo from its parts.

    +
    Source

    pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self

    Sets the relay URL and returns the updated node info.

    Source

    pub fn with_direct_addresses( self, direct_addresses: BTreeSet<SocketAddr>, ) -> Self

    Sets the direct addresses and returns the updated node info.

    Source

    pub fn with_user_data(self, user_data: Option<UserData>) -> Self

    Sets the user-defined data and returns the updated node info.

    -
    Source

    pub fn to_node_addr(&self) -> NodeAddr

    Converts into a NodeAddr by cloning the needed fields.

    -
    Source

    pub fn into_node_addr(self) -> NodeAddr

    Converts into a NodeAddr without cloning.

    +
    Source

    pub fn to_node_addr(&self) -> NodeAddr

    Converts into a [NodeAddr] by cloning the needed fields.

    +
    Source

    pub fn into_node_addr(self) -> NodeAddr

    Converts into a [NodeAddr] without cloning.

    Source

    pub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self>

    Available on non-wasm_browser only.

    Parses a NodeInfo from a TXT records lookup.

    Source

    pub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self>

    Parses a NodeInfo from a [pkarr::SignedPacket].

    Source

    pub fn to_pkarr_signed_packet( &self, - secret_key: &SecretKey, + secret_key: &SecretKey, ttl: u32, ) -> Result<SignedPacket>

    Creates a [pkarr::SignedPacket].

    -

    This constructs a DNS packet and signs it with a SecretKey.

    +

    This constructs a DNS packet and signs it with a [SecretKey].

    Source

    pub fn to_txt_strings(&self) -> Vec<String>

    Converts into a list of {key}={value} strings.

    -

    Methods from Deref<Target = NodeData>§

    Source

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

    Returns the relay URL of the node.

    +

    Methods from Deref<Target = NodeData>§

    Source

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

    Returns the relay URL of the node.

    Source

    pub fn user_data(&self) -> Option<&UserData>

    Returns the optional user-defined data of the node.

    Source

    pub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>

    Returns the direct addresses of the node.

    Source

    pub fn clear_direct_addresses(&mut self)

    Removes all direct addresses from the node data.

    @@ -32,9 +32,9 @@ &mut self, addrs: impl IntoIterator<Item = SocketAddr>, )

    Adds direct addresses to the node data.

    -
    Source

    pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)

    Sets the relay URL of the node data.

    +
    Source

    pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)

    Sets the relay URL of the node data.

    Source

    pub fn set_user_data(&mut self, user_data: Option<UserData>)

    Sets the user-defined data of the node data.

    -

    Trait Implementations§

    Source§

    impl Clone for NodeInfo

    Source§

    fn clone(&self) -> NodeInfo

    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 NodeInfo

    Source§

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

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

    impl Deref for NodeInfo

    Source§

    type Target = NodeData

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl DerefMut for NodeInfo

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl From<NodeAddr> for NodeInfo

    Source§

    fn from(addr: NodeAddr) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NodeInfo> for NodeAddr

    Source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for NodeInfo

    Source§

    fn eq(&self, other: &NodeInfo) -> 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, +

    Trait Implementations§

    Source§

    impl Clone for NodeInfo

    Source§

    fn clone(&self) -> NodeInfo

    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 NodeInfo

    Source§

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

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

    impl Deref for NodeInfo

    Source§

    type Target = NodeData

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl DerefMut for NodeInfo

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl From<NodeAddr> for NodeInfo

    Source§

    fn from(addr: NodeAddr) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NodeInfo> for NodeAddr

    Source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for NodeInfo

    Source§

    fn eq(&self, other: &NodeInfo) -> 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 Eq for NodeInfo

    Source§

    impl StructuralPartialEq for NodeInfo

    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 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/3279/docs/iroh_relay/node_info/trait.NodeIdExt.html b/pr/3279/docs/iroh_relay/node_info/trait.NodeIdExt.html index 566dc7dfdc..34aab0c4d8 100644 --- a/pr/3279/docs/iroh_relay/node_info/trait.NodeIdExt.html +++ b/pr/3279/docs/iroh_relay/node_info/trait.NodeIdExt.html @@ -1,9 +1,9 @@ NodeIdExt in iroh_relay::node_info - Rust
    iroh_relay::node_info

    Trait NodeIdExt

    Source
    pub trait NodeIdExt {
         // Required methods
         fn to_z32(&self) -> String;
    -    fn from_z32(s: &str) -> Result<NodeId>;
    -}
    Expand description

    Extension methods for NodeId to encode to and decode from [z32], + fn from_z32(s: &str) -> Result<NodeId>; +}

    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>

    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 +

    Required Methods§

    Source

    fn to_z32(&self) -> String

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

    +
    Source

    fn from_z32(s: &str) -> Result<NodeId>

    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

    Source§

    fn to_z32(&self) -> String

    Source§

    fn from_z32(s: &str) -> Result<NodeId>

    Implementors§

    \ No newline at end of file diff --git a/pr/3279/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3279/docs/iroh_relay/server/enum.AccessConfig.html index 1d6fd8c443..e563e92169 100644 --- a/pr/3279/docs/iroh_relay/server/enum.AccessConfig.html +++ b/pr/3279/docs/iroh_relay/server/enum.AccessConfig.html @@ -1,10 +1,10 @@ AccessConfig in iroh_relay::server - Rust
    iroh_relay::server

    Enum AccessConfig

    Source
    pub enum AccessConfig {
         Everyone,
    -    Restricted(Box<dyn Fn(NodeId) -> Boxed<Access> + Send + Sync + 'static>),
    +    Restricted(Box<dyn Fn(NodeId) -> Boxed<Access> + Send + Sync + 'static>),
     }
    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?

    +
    §

    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?

    Trait Implementations§

    Source§

    impl Debug for AccessConfig

    Source§

    fn fmt(&self, __derive_more_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 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/3279/docs/iroh_relay/server/struct.Server.html b/pr/3279/docs/iroh_relay/server/struct.Server.html index 540113411b..ef4cf17208 100644 --- a/pr/3279/docs/iroh_relay/server/struct.Server.html +++ b/pr/3279/docs/iroh_relay/server/struct.Server.html @@ -14,9 +14,9 @@ case there is an error in the server before it is shut down.

    Source

    pub fn quic_addr(&self) -> Option<SocketAddr>

    The socket address the QUIC server is listening on.

    Source

    pub fn stun_addr(&self) -> Option<SocketAddr>

    The socket address the STUN 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>

    Available on crate feature test-utils only.

    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>

    Available on crate feature test-utils only.

    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/3279/docs/iroh_relay/struct.RelayMap.html b/pr/3279/docs/iroh_relay/struct.RelayMap.html index a92036b6c0..f7785d0b26 100644 --- a/pr/3279/docs/iroh_relay/struct.RelayMap.html +++ b/pr/3279/docs/iroh_relay/struct.RelayMap.html @@ -1,15 +1,15 @@ RelayMap in iroh_relay - Rust
    iroh_relay

    Struct RelayMap

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

    Configuration of all the relay servers that can be used.

    -

    Implementations§

    Source§

    impl RelayMap

    Source

    pub fn urls(&self) -> impl Iterator<Item = &RelayUrl>

    Returns the sorted relay URLs.

    +

    Implementations§

    Source§

    impl RelayMap

    Source

    pub fn urls(&self) -> impl Iterator<Item = &RelayUrl>

    Returns the sorted relay URLs.

    Source

    pub fn empty() -> Self

    Create an empty relay map.

    Source

    pub fn nodes(&self) -> impl Iterator<Item = &Arc<RelayNode>>

    Returns an Iterator over all known nodes.

    -
    Source

    pub fn contains_node(&self, url: &RelayUrl) -> bool

    Is this a known node?

    -
    Source

    pub fn get_node(&self, url: &RelayUrl) -> Option<&Arc<RelayNode>>

    Get the given node.

    +
    Source

    pub fn contains_node(&self, url: &RelayUrl) -> bool

    Is this a known node?

    +
    Source

    pub fn get_node(&self, url: &RelayUrl) -> Option<&Arc<RelayNode>>

    Get the given node.

    Source

    pub fn len(&self) -> usize

    How many nodes are known?

    Source

    pub fn is_empty(&self) -> bool

    Are there any nodes in this map?

    -

    Trait Implementations§

    Source§

    impl Clone for RelayMap

    Source§

    fn clone(&self) -> RelayMap

    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 RelayMap

    Source§

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

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

    impl Display for RelayMap

    Source§

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

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

    impl From<RelayNode> for RelayMap

    Source§

    fn from(value: RelayNode) -> Self

    Converts to this type from the input type.
    Source§

    impl From<RelayUrl> for RelayMap

    Source§

    fn from(value: RelayUrl) -> Self

    Creates a RelayMap from a RelayUrl.

    +

    Trait Implementations§

    Source§

    impl Clone for RelayMap

    Source§

    fn clone(&self) -> RelayMap

    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 RelayMap

    Source§

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

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

    impl Display for RelayMap

    Source§

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

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

    impl From<RelayNode> for RelayMap

    Source§

    fn from(value: RelayNode) -> Self

    Converts to this type from the input type.
    Source§

    impl From<RelayUrl> for RelayMap

    Source§

    fn from(value: RelayUrl) -> Self

    Creates a RelayMap from a [RelayUrl].

    The RelayNodes in the RelayMap will have the default STUN and QUIC address discovery ports.

    -
    Source§

    impl FromIterator<RelayNode> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayNode>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl FromIterator<RelayUrl> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayUrl>>(iter: T) -> Self

    Creates a RelayMap from an iterator of RelayUrl.

    +
    Source§

    impl FromIterator<RelayNode> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayNode>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl FromIterator<RelayUrl> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayUrl>>(iter: T) -> Self

    Creates a RelayMap from an iterator of [RelayUrl].

    The RelayNodes in the RelayMap will have the default STUN and QUIC address discovery ports.

    Source§

    impl PartialEq for RelayMap

    Source§

    fn eq(&self, other: &RelayMap) -> 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/3279/docs/iroh_relay/struct.RelayNode.html b/pr/3279/docs/iroh_relay/struct.RelayNode.html index a1e0bcc76b..631f66dad8 100644 --- a/pr/3279/docs/iroh_relay/struct.RelayNode.html +++ b/pr/3279/docs/iroh_relay/struct.RelayNode.html @@ -1,11 +1,11 @@ RelayNode in iroh_relay - Rust
    iroh_relay

    Struct RelayNode

    Source
    pub struct RelayNode {
    -    pub url: RelayUrl,
    +    pub url: RelayUrl,
         pub stun_only: bool,
         pub stun_port: u16,
         pub quic: Option<RelayQuicConfig>,
     }
    Expand description

    Information on a specific relay server.

    Includes the Url where it can be dialed.

    -

    Fields§

    §url: RelayUrl

    The RelayUrl where this relay server can be dialed.

    +

    Fields§

    §url: RelayUrl

    The [RelayUrl] where this relay server can be dialed.

    §stun_only: bool

    Whether this relay server should only be used for STUN requests.

    This essentially allows you to use a normal STUN server as a relay node, no relay functionality is used.

    @@ -15,7 +15,7 @@ functionality is used.

    When None, we will not attempt to do QUIC address discovery with this relay server.

    Trait Implementations§

    Source§

    impl Clone for RelayNode

    Source§

    fn clone(&self) -> RelayNode

    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 RelayNode

    Source§

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

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

    impl<'de> Deserialize<'de> for RelayNode

    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 Display for RelayNode

    Source§

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

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

    impl From<RelayNode> for RelayMap

    Source§

    fn from(value: RelayNode) -> Self

    Converts to this type from the input type.
    Source§

    impl From<RelayUrl> for RelayNode

    Source§

    fn from(value: RelayUrl) -> Self

    Converts to this type from the input type.
    Source§

    impl FromIterator<RelayNode> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayNode>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl Ord for RelayNode

    Source§

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

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

    fn max(self, other: Self) -> Self
    where + __D: Deserializer<'de>,

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

    impl Display for RelayNode

    Source§

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

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

    impl From<RelayNode> for RelayMap

    Source§

    fn from(value: RelayNode) -> Self

    Converts to this type from the input type.
    Source§

    impl From<RelayUrl> for RelayNode

    Source§

    fn from(value: RelayUrl) -> Self

    Converts to this type from the input type.
    Source§

    impl FromIterator<RelayNode> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayNode>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl Ord for RelayNode

    Source§

    fn cmp(&self, other: &RelayNode) -> 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 RelayNode

    Source§

    fn eq(&self, other: &RelayNode) -> 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/3279/docs/src/iroh/endpoint.rs.html b/pr/3279/docs/src/iroh/endpoint.rs.html index facffab70e..ebbdcac71a 100644 --- a/pr/3279/docs/src/iroh/endpoint.rs.html +++ b/pr/3279/docs/src/iroh/endpoint.rs.html @@ -4104,7 +4104,7 @@ /// To get the first report use [`Watcher::initialized`]: /// ```no_run /// use futures_lite::StreamExt; - /// use iroh::Endpoint; + /// use iroh::{Endpoint, watchable::Watcher as _}; /// /// # let rt = tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap(); /// # rt.block_on(async move { diff --git a/pr/3279/docs/src/iroh/magicsock/node_map.rs.html b/pr/3279/docs/src/iroh/magicsock/node_map.rs.html index 766e56964a..a91283c8b5 100644 --- a/pr/3279/docs/src/iroh/magicsock/node_map.rs.html +++ b/pr/3279/docs/src/iroh/magicsock/node_map.rs.html @@ -904,7 +904,9 @@ 903 904 905 -906
    use std::{
    +906
    +907
    +908
    use std::{
         collections::{hash_map::Entry, BTreeSet, HashMap},
         hash::Hash,
         net::{IpAddr, SocketAddr},
    @@ -1215,6 +1217,8 @@
         ///
         /// Will return an error if there is not an entry in the [`NodeMap`] for
         /// the `node_id`
    +    ///
    +    /// [`Watcher`]: crate::watchable::Watcher
         pub(super) fn conn_type(
             &self,
             node_id: NodeId,
    diff --git a/pr/3279/docs/src/iroh/magicsock/transports/relay.rs.html b/pr/3279/docs/src/iroh/magicsock/transports/relay.rs.html
    index 27a92829d6..2d2c68791d 100644
    --- a/pr/3279/docs/src/iroh/magicsock/transports/relay.rs.html
    +++ b/pr/3279/docs/src/iroh/magicsock/transports/relay.rs.html
    @@ -475,8 +475,7 @@
     474
     475
     476
    -477
    -478
    use std::{
    +477
    use std::{
         io,
         pin::Pin,
         sync::Arc,
    @@ -506,14 +505,14 @@
     
     #[derive(Debug)]
     pub struct RelayTransport {
    -    /// Queue to receive datagrams from relays for [`AsyncUdpSocket::poll_recv`].
    +    /// Queue to receive datagrams from relays for [`quinn::AsyncUdpSocket::poll_recv`].
         ///
         /// Relay datagrams received by relays are put into this queue and consumed by
    -    /// [`AsyncUdpSocket`].  This queue takes care of the wakers needed by
    -    /// [`AsyncUdpSocket::poll_recv`].
    -    pub(crate) relay_datagram_recv_queue: Arc<RelayDatagramRecvQueue>,
    +    /// [`quinn::AsyncUdpSocket`].  This queue takes care of the wakers needed by
    +    /// [`quinn::AsyncUdpSocket::poll_recv`].
    +    relay_datagram_recv_queue: Arc<RelayDatagramRecvQueue>,
         /// Channel on which to send datagrams via a relay server.
    -    pub(super) relay_datagram_send_channel: RelayDatagramSendChannelSender,
    +    relay_datagram_send_channel: RelayDatagramSendChannelSender,
         actor_sender: mpsc::Sender<RelayActorMessage>,
         _actor_handle: AbortOnDropHandle<()>,
         my_relay: Watchable<Option<RelayUrl>>,
    @@ -682,17 +681,16 @@
     /// and [`MagicSock`].
     ///
     /// [`try_send`]: Self::try_send
    -/// [`RelayActor`]: crate::magicsock::RelayActor
     /// [`MagicSock`]: crate::magicsock::MagicSock
     #[derive(Debug)]
    -pub(crate) struct RelayDatagramRecvQueue {
    +struct RelayDatagramRecvQueue {
         queue: ConcurrentQueue<RelayRecvDatagram>,
         waker: AtomicWaker,
     }
     
     impl RelayDatagramRecvQueue {
         /// Creates a new, empty queue with a fixed size bound of 512 items.
    -    pub(crate) fn new() -> Self {
    +    fn new() -> Self {
             Self {
                 queue: ConcurrentQueue::bounded(512),
                 waker: AtomicWaker::new(),
    @@ -703,7 +701,7 @@
         /// that's registered its waker with a [`poll_recv`] call.
         ///
         /// [`poll_recv`]: Self::poll_recv
    -    pub(crate) fn try_send(
    +    fn try_send(
             &self,
             item: RelayRecvDatagram,
         ) -> Result<(), concurrent_queue::PushError<RelayRecvDatagram>> {
    @@ -722,9 +720,9 @@
         /// woken up for new items.
         ///
         /// The reason this method is made available as `&self` is because
    -    /// the interface for quinn's [`AsyncUdpSocket::poll_recv`] requires us
    +    /// the interface for quinn's [`quinn::AsyncUdpSocket::poll_recv`] requires us
         /// to be able to poll from `&self`.
    -    pub(crate) fn poll_recv(&self, cx: &mut Context) -> Poll<Result<RelayRecvDatagram>> {
    +    fn poll_recv(&self, cx: &mut Context) -> Poll<Result<RelayRecvDatagram>> {
             match self.queue.pop() {
                 Ok(value) => Poll::Ready(Ok(value)),
                 Err(concurrent_queue::PopError::Empty) => {
    @@ -749,7 +747,7 @@
     
     /// Creates a sender and receiver pair for sending datagrams to the [`RelayActor`].
     ///
    -/// These includes the waker coordination required to support [`AsyncUdpSocket::try_send`]
    +/// These includes the waker coordination required to support [`quinn::AsyncUdpSocket::try_send`]
     /// and [`quinn::UdpPoller::poll_writable`].
     fn relay_datagram_send_channel() -> (
         RelayDatagramSendChannelSender,
    @@ -767,10 +765,10 @@
     
     /// Sender to send datagrams to the [`RelayActor`].
     ///
    -/// This includes the waker coordination required to support [`AsyncUdpSocket::try_send`]
    +/// This includes the waker coordination required to support [`quinn::AsyncUdpSocket::try_send`]
     /// and [`quinn::UdpPoller::poll_writable`].
     #[derive(Debug, Clone)]
    -pub(super) struct RelayDatagramSendChannelSender {
    +struct RelayDatagramSendChannelSender {
         sender: mpsc::Sender<RelaySendItem>,
         wakers: Arc<std::sync::Mutex<Vec<Waker>>>,
     }
    @@ -811,16 +809,16 @@
     
     /// Receiver to send datagrams to the [`RelayActor`].
     ///
    -/// This includes the waker coordination required to support [`AsyncUdpSocket::try_send`]
    +/// This includes the waker coordination required to support [`quinn::AsyncUdpSocket::try_send`]
     /// and [`quinn::UdpPoller::poll_writable`].
     #[derive(Debug)]
    -pub(crate) struct RelayDatagramSendChannelReceiver {
    +struct RelayDatagramSendChannelReceiver {
         receiver: mpsc::Receiver<RelaySendItem>,
         wakers: Arc<std::sync::Mutex<Vec<Waker>>>,
     }
     
     impl RelayDatagramSendChannelReceiver {
    -    pub(crate) async fn recv(&mut self) -> Option<RelaySendItem> {
    +    async fn recv(&mut self) -> Option<RelaySendItem> {
             let item = self.receiver.recv().await;
             let mut wakers = self.wakers.lock().expect("poisoned");
             wakers.drain(..).for_each(Waker::wake);
    diff --git a/pr/3279/docs/src/iroh/magicsock/transports/relay/actor.rs.html b/pr/3279/docs/src/iroh/magicsock/transports/relay/actor.rs.html
    index 950168e150..e09d67d0a1 100644
    --- a/pr/3279/docs/src/iroh/magicsock/transports/relay/actor.rs.html
    +++ b/pr/3279/docs/src/iroh/magicsock/transports/relay/actor.rs.html
    @@ -2907,7 +2907,7 @@
     /// The disco `iroh_relay::protos::Frame::SendPacket` frame can contain more then a single
     /// datagram.  Each datagram in this frame is prefixed with a little-endian 2-byte length
     /// prefix.  This occurs when Quinn sends a GSO transmit containing more than one datagram,
    -/// which are split using [`crate::magicsock::split_packets`].
    +/// which are split using `split_packets`.
     ///
     /// The [`PacketSplitIter`] does the inverse and splits such packets back into individual
     /// datagrams.
    diff --git a/pr/3279/docs/src/iroh_relay/server/http_server.rs.html b/pr/3279/docs/src/iroh_relay/server/http_server.rs.html
    index c742c1710c..459cf586a7 100644
    --- a/pr/3279/docs/src/iroh_relay/server/http_server.rs.html
    +++ b/pr/3279/docs/src/iroh_relay/server/http_server.rs.html
    @@ -1226,7 +1226,7 @@
             + 'static,
     >;
     
    -/// WebSocket GUID needed for accepting websocket connections, see RFC 6455 (https://www.rfc-editor.org/rfc/rfc6455) section 1.3
    +/// WebSocket GUID needed for accepting websocket connections, see RFC 6455 (<https://www.rfc-editor.org/rfc/rfc6455>) section 1.3
     const SEC_WEBSOCKET_ACCEPT_GUID: &[u8] = b"258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
     
     /// Derives the accept key for WebSocket handshake according to RFC 6455.
    diff --git a/pr/3279/docs/trait.impl/core/convert/trait.From.js b/pr/3279/docs/trait.impl/core/convert/trait.From.js
    index f782f797c3..3c3eda16f7 100644
    --- a/pr/3279/docs/trait.impl/core/convert/trait.From.js
    +++ b/pr/3279/docs/trait.impl/core/convert/trait.From.js
    @@ -1,9 +1,9 @@
     (function() {
    -    var implementors = Object.fromEntries([["iroh",[["impl From<DiscoveryItem> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl<T> From<T> for ConcurrentDiscovery
    where\n T: IntoIterator<Item = Box<dyn Discovery>>,
    "]]],["iroh_base",[["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<ParseError> for RelayUrlParseError"],["impl From<Url> for RelayUrl"],["impl From<NodeAddr> for NodeTicket"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<NodeTicket> for NodeAddr"],["impl From<DecodeError> for KeyParsingError"],["impl From<DecodeError> for Error"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for SecretKey"]]],["iroh_relay",[["impl From<Error> for ConnSendError"],["impl From<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<Error> for ConnSendError"],["impl From<Resolver<GenericConnector<TokioRuntimeProvider>>> for DnsResolver"],["impl From<TxtLookup> for TxtLookup"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl From<DiscoveryItem> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl<T> From<T> for ConcurrentDiscovery
    where\n T: IntoIterator<Item = Box<dyn Discovery>>,
    "]]],["iroh_base",[["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<ParseError> for RelayUrlParseError"],["impl From<Url> for RelayUrl"],["impl From<NodeAddr> for NodeTicket"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<NodeTicket> for NodeAddr"],["impl From<DecodeError> for KeyParsingError"],["impl From<DecodeError> for Error"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for SecretKey"]]],["iroh_relay",[["impl From<Error> for ConnSendError"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<Error> for ConnSendError"],["impl From<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<Resolver<GenericConnector<TokioRuntimeProvider>>> for DnsResolver"],["impl From<TxtLookup> for TxtLookup"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[1632,5343,3831]} \ No newline at end of file +//{"start":57,"fragment_lengths":[1632,5343,3221]} \ No newline at end of file diff --git a/pr/3279/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3279/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js index 8cd585bc9e..d104c409e3 100644 --- a/pr/3279/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js +++ b/pr/3279/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayNode> for RelayMap"]]]]); + var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<RelayNode> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[898]} \ No newline at end of file +//{"start":57,"fragment_lengths":[776]} \ No newline at end of file