From b81ff2f102bc1efd788394d37bcaeeb9941b4441 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Mon, 5 May 2025 12:51:09 +0000 Subject: [PATCH] deploy: 7c43fe03092a12e7dcb1a566cee48639f44f099b --- .../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/3161/docs/iroh_relay/index.html | 2 +- pr/3161/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 +- pr/3161/docs/iroh_relay/quic/index.html | 2 +- .../iroh_relay/server/enum.AccessConfig.html | 6 +- pr/3161/docs/iroh_relay/server/index.html | 2 +- .../docs/iroh_relay/server/struct.Server.html | 4 +- pr/3161/docs/iroh_relay/struct.RelayMap.html | 10 +- pr/3161/docs/iroh_relay/struct.RelayNode.html | 4 +- pr/3161/docs/src/iroh_relay/node_info.rs.html | 18 +-- .../docs/src/iroh_relay/protos/relay.rs.html | 6 +- pr/3161/docs/src/iroh_relay/quic.rs.html | 82 +++++++++----- pr/3161/docs/src/iroh_relay/server.rs.html | 28 +++-- .../docs/src/iroh_relay/server/client.rs.html | 42 ++++--- .../src/iroh_relay/server/clients.rs.html | 10 +- .../src/iroh_relay/server/http_server.rs.html | 104 ++++++++++-------- .../trait.impl/core/convert/trait.From.js | 4 +- 23 files changed, 242 insertions(+), 168 deletions(-) diff --git a/pr/3161/docs/iroh_relay/client/enum.ReceivedMessage.html b/pr/3161/docs/iroh_relay/client/enum.ReceivedMessage.html index b6ba1b4ff2..a304e04a87 100644 --- a/pr/3161/docs/iroh_relay/client/enum.ReceivedMessage.html +++ b/pr/3161/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/3161/docs/iroh_relay/client/enum.SendMessage.html b/pr/3161/docs/iroh_relay/client/enum.SendMessage.html index 133a3f6546..a0a14f019e 100644 --- a/pr/3161/docs/iroh_relay/client/enum.SendMessage.html +++ b/pr/3161/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 = SendError

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

fn poll_ready( diff --git a/pr/3161/docs/iroh_relay/client/struct.ClientBuilder.html b/pr/3161/docs/iroh_relay/client/struct.ClientBuilder.html index 5ad6fa852f..a5b01ba7fa 100644 --- a/pr/3161/docs/iroh_relay/client/struct.ClientBuilder.html +++ b/pr/3161/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/3161/docs/iroh_relay/dns/struct.DnsResolver.html b/pr/3161/docs/iroh_relay/dns/struct.DnsResolver.html index 1eba0c50e1..4a87b56b19 100644 --- a/pr/3161/docs/iroh_relay/dns/struct.DnsResolver.html +++ b/pr/3161/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, NodeError>

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

+) -> Result<NodeInfo, NodeError>

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( @@ -87,10 +87,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, NodeError>

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

+) -> Result<NodeInfo, NodeError>

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/3161/docs/iroh_relay/index.html b/pr/3161/docs/iroh_relay/index.html index aa17a382d4..b45ccff8c4 100644 --- a/pr/3161/docs/iroh_relay/index.html +++ b/pr/3161/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/3161/docs/iroh_relay/node_info/index.html b/pr/3161/docs/iroh_relay/node_info/index.html index 0d66c3b8dc..d6466bb4b9 100644 --- a/pr/3161/docs/iroh_relay/node_info/index.html +++ b/pr/3161/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§

    Enums§

    Constants§

    Traits§

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

    Structs§

    Enums§

    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/3161/docs/iroh_relay/node_info/struct.NodeData.html b/pr/3161/docs/iroh_relay/node_info/struct.NodeData.html index ba27e33f5a..231cc4e0d4 100644 --- a/pr/3161/docs/iroh_relay/node_info/struct.NodeData.html +++ b/pr/3161/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/3161/docs/iroh_relay/node_info/struct.NodeInfo.html b/pr/3161/docs/iroh_relay/node_info/struct.NodeInfo.html index 65707fed07..fe7e5b1d77 100644 --- a/pr/3161/docs/iroh_relay/node_info/struct.NodeInfo.html +++ b/pr/3161/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, Error>

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

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

    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/3161/docs/iroh_relay/node_info/trait.NodeIdExt.html b/pr/3161/docs/iroh_relay/node_info/trait.NodeIdExt.html index 9e5cfb3bf5..9c89235bff 100644 --- a/pr/3161/docs/iroh_relay/node_info/trait.NodeIdExt.html +++ b/pr/3161/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, Error>;
    -}
    Expand description

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

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

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

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

    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/3161/docs/iroh_relay/quic/index.html b/pr/3161/docs/iroh_relay/quic/index.html index e49d3eca9c..d1795ac8bf 100644 --- a/pr/3161/docs/iroh_relay/quic/index.html +++ b/pr/3161/docs/iroh_relay/quic/index.html @@ -1,3 +1,3 @@ -iroh_relay::quic - Rust
    iroh_relay

    Module quic

    Source
    Expand description

    Create a QUIC server that accepts connections +iroh_relay::quic - Rust

    iroh_relay

    Module quic

    Source
    Expand description

    Create a QUIC server that accepts connections for QUIC address discovery.

    Structs§

    • Handles the client side of QUIC address discovery.

    Enums§

    • Quic client related errors.

    Constants§

    \ No newline at end of file diff --git a/pr/3161/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3161/docs/iroh_relay/server/enum.AccessConfig.html index bf54e454d1..e7f764462e 100644 --- a/pr/3161/docs/iroh_relay/server/enum.AccessConfig.html +++ b/pr/3161/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/3161/docs/iroh_relay/server/index.html b/pr/3161/docs/iroh_relay/server/index.html index 62a314f908..9015c20e05 100644 --- a/pr/3161/docs/iroh_relay/server/index.html +++ b/pr/3161/docs/iroh_relay/server/index.html @@ -1,4 +1,4 @@ -iroh_relay::server - Rust
    iroh_relay

    Module server

    Source
    Available on crate feature server only.
    Expand description

    A fully-fledged iroh-relay server over HTTP or HTTPS.

    +iroh_relay::server - Rust
    iroh_relay

    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.

    diff --git a/pr/3161/docs/iroh_relay/server/struct.Server.html b/pr/3161/docs/iroh_relay/server/struct.Server.html index 0dab3de390..213455c347 100644 --- a/pr/3161/docs/iroh_relay/server/struct.Server.html +++ b/pr/3161/docs/iroh_relay/server/struct.Server.html @@ -18,9 +18,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.

    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 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/3161/docs/iroh_relay/struct.RelayMap.html b/pr/3161/docs/iroh_relay/struct.RelayMap.html index 014c0f2e84..d8f79334ff 100644 --- a/pr/3161/docs/iroh_relay/struct.RelayMap.html +++ b/pr/3161/docs/iroh_relay/struct.RelayMap.html @@ -1,16 +1,16 @@ 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?

    -
    Source

    pub fn default_from_node(url: RelayUrl, stun_port: u16) -> Self

    Creates a new RelayMap with a single relay server configured.

    +
    Source

    pub fn default_from_node(url: RelayUrl, stun_port: u16) -> Self

    Creates a new RelayMap with a single relay server configured.

    Allows to set a custom STUN port and different IP addresses for IPv4 and IPv6. If IP addresses are provided, no DNS lookup will be performed.

    Sets the port to the default DEFAULT_RELAY_QUIC_PORT.

    -
    Source

    pub fn from_url(url: RelayUrl) -> Self

    Returns a RelayMap from a [RelayUrl].

    +
    Source

    pub fn from_url(url: RelayUrl) -> Self

    Returns a RelayMap from a RelayUrl.

    This will use the default STUN port, the default QUIC port (as defined by the iroh-relay crate) and IP addresses resolved from the URL’s host name via DNS. diff --git a/pr/3161/docs/iroh_relay/struct.RelayNode.html b/pr/3161/docs/iroh_relay/struct.RelayNode.html index 1048b9d2c7..205c5454a8 100644 --- a/pr/3161/docs/iroh_relay/struct.RelayNode.html +++ b/pr/3161/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.

    diff --git a/pr/3161/docs/src/iroh_relay/node_info.rs.html b/pr/3161/docs/src/iroh_relay/node_info.rs.html index c48a58c1ca..0d83392f37 100644 --- a/pr/3161/docs/src/iroh_relay/node_info.rs.html +++ b/pr/3161/docs/src/iroh_relay/node_info.rs.html @@ -798,7 +798,9 @@ 797 798 799 -800
    //! Support for handling DNS resource records for dialing by [`NodeId`].
    +800
    +801
    +802
    //! 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.
    @@ -1488,7 +1490,7 @@
             Name,
         };
         use iroh_base::{NodeId, SecretKey};
    -    use testresult::TestResult;
    +    use n0_snafu::{TestResult, TestResultExt};
     
         use super::{NodeData, NodeIdExt, NodeInfo};
     
    @@ -1533,7 +1535,8 @@
         fn test_from_hickory_lookup() -> TestResult {
             let name = Name::from_utf8(
                 "_iroh.dgjpkxyn3zyrk3zfads5duwdgbqpkwbjxfj4yt7rezidr3fijccy.dns.iroh.link.",
    -        )?;
    +        )
    +        .context("dns name")?;
             let query = Query::query(name.clone(), RecordType::TXT);
             let records = [
                 Record::from_rdata(
    @@ -1557,7 +1560,8 @@
                             "a55f26132e5e43de834d534332f66a20d480c3e50a13a312a071adea6569981e"
                         )?
                         .to_z32()
    -                ))?,
    +                ))
    +                .context("name")?,
                     30,
                     RData::TXT(TXT::new(vec![
                         "relay=https://euw1-1.relay.iroh.network./".to_string()
    @@ -1565,7 +1569,7 @@
                 ),
                 // Test a record with a completely different name
                 Record::from_rdata(
    -                Name::from_utf8("dns.iroh.link.")?,
    +                Name::from_utf8("dns.iroh.link.").context("name")?,
                     30,
                     RData::TXT(TXT::new(vec![
                         "relay=https://euw1-1.relay.iroh.network./".to_string()
    @@ -1589,8 +1593,8 @@
             )?)
             .with_relay_url(Some("https://euw1-1.relay.iroh.network./".parse()?))
             .with_direct_addresses(BTreeSet::from([
    -            "192.168.96.145:60165".parse()?,
    -            "213.208.157.87:60165".parse()?,
    +            "192.168.96.145:60165".parse().unwrap(),
    +            "213.208.157.87:60165".parse().unwrap(),
             ]));
     
             assert_eq!(node_info, expected_node_info);
    diff --git a/pr/3161/docs/src/iroh_relay/protos/relay.rs.html b/pr/3161/docs/src/iroh_relay/protos/relay.rs.html
    index b0233ba9f6..0a3c83f091 100644
    --- a/pr/3161/docs/src/iroh_relay/protos/relay.rs.html
    +++ b/pr/3161/docs/src/iroh_relay/protos/relay.rs.html
    @@ -1592,7 +1592,7 @@
     #[cfg(test)]
     mod tests {
         use data_encoding::HEXLOWER;
    -    use testresult::TestResult;
    +    use n0_snafu::{TestResult, TestResultExt};
         use tokio_util::codec::{FramedRead, FramedWrite};
     
         use super::*;
    @@ -1609,7 +1609,7 @@
                 problem: expect_buf.to_vec().into(),
             };
             write_frame(&mut writer, expected_frame.clone(), None).await?;
    -        writer.flush().await?;
    +        writer.flush().await.context("flush")?;
             println!("{:?}", reader);
             let buf = recv_frame(FrameType::Health, &mut reader).await?;
             assert_eq!(expect_buf.len(), buf.len());
    @@ -1642,7 +1642,7 @@
             let client_info = ClientInfo {
                 version: PROTOCOL_VERSION,
             };
    -        let message = postcard::to_stdvec(&client_info)?;
    +        let message = postcard::to_stdvec(&client_info).context("encode")?;
             let signature = client_key.sign(&message);
     
             let frames = vec![
    diff --git a/pr/3161/docs/src/iroh_relay/quic.rs.html b/pr/3161/docs/src/iroh_relay/quic.rs.html
    index 815b6370a4..1a1948f473 100644
    --- a/pr/3161/docs/src/iroh_relay/quic.rs.html
    +++ b/pr/3161/docs/src/iroh_relay/quic.rs.html
    @@ -519,7 +519,21 @@
     518
     519
     520
    -521
    //! Create a QUIC server that accepts connections
    +521
    +522
    +523
    +524
    +525
    +526
    +527
    +528
    +529
    +530
    +531
    +532
    +533
    +534
    +535
    //! Create a QUIC server that accepts connections
     //! for QUIC address discovery.
     use std::{net::SocketAddr, sync::Arc};
     
    @@ -831,7 +845,7 @@
             // tokio::select! {
             //     _ = cancel.cancelled() => {
             //         conn.close(QUIC_ADDR_DISC_CLOSE_CODE, QUIC_ADDR_DISC_CLOSE_REASON);
    -        //         anyhow::bail!("QUIC address discovery canceled early");
    +        //         bail!("QUIC address discovery canceled early");
             //     },
             //     res = external_addresses.wait_for(|addr| addr.is_some()) => {
             //         let addr = res?.expect("checked");
    @@ -864,8 +878,8 @@
     mod tests {
         use std::net::Ipv4Addr;
     
    -    use anyhow::Context;
         use n0_future::{task::AbortOnDropHandle, time};
    +    use n0_snafu::{TestError, TestResult, TestResultExt};
         use quinn::crypto::rustls::QuicServerConfig;
         use tokio::time::Instant;
         use tracing::{debug, info, info_span, Instrument};
    @@ -879,8 +893,8 @@
     
         #[tokio::test]
         #[traced_test]
    -    async fn quic_endpoint_basic() -> anyhow::Result<()> {
    -        let host: Ipv4Addr = "127.0.0.1".parse()?;
    +    async fn quic_endpoint_basic() -> TestResult {
    +        let host: Ipv4Addr = "127.0.0.1".parse().unwrap();
             // create a server config with self signed certificates
             let (_, server_config) = super::super::server::testing::self_signed_tls_certs_and_config();
             let bind_addr = SocketAddr::new(host.into(), 0);
    @@ -890,8 +904,9 @@
             })?;
     
             // create a client-side endpoint
    -        let client_endpoint = quinn::Endpoint::client(SocketAddr::new(host.into(), 0))?;
    -        let client_addr = client_endpoint.local_addr()?;
    +        let client_endpoint =
    +            quinn::Endpoint::client(SocketAddr::new(host.into(), 0)).context("client")?;
    +        let client_addr = client_endpoint.local_addr().context("local addr")?;
     
             // create the client configuration used for the client endpoint when they
             // initiate a connection with the server
    @@ -913,15 +928,18 @@
     
         #[tokio::test]
         #[traced_test]
    -    async fn test_qad_client_closes_unresponsive_fast() -> anyhow::Result<()> {
    +    async fn test_qad_client_closes_unresponsive_fast() -> TestResult {
             // create a client-side endpoint
             let client_endpoint =
    -            quinn::Endpoint::client(SocketAddr::new(Ipv4Addr::LOCALHOST.into(), 0))?;
    +            quinn::Endpoint::client(SocketAddr::new(Ipv4Addr::LOCALHOST.into(), 0))
    +                .context("client")?;
     
             // create an socket that does not respond.
             let server_socket =
    -            tokio::net::UdpSocket::bind(SocketAddr::new(Ipv4Addr::LOCALHOST.into(), 0)).await?;
    -        let server_addr = server_socket.local_addr()?;
    +            tokio::net::UdpSocket::bind(SocketAddr::new(Ipv4Addr::LOCALHOST.into(), 0))
    +                .await
    +                .context("bind")?;
    +        let server_addr = server_socket.local_addr().context("local addr")?;
     
             // create the client configuration used for the client endpoint when they
             // initiate a connection with the server
    @@ -962,24 +980,28 @@
         /// all packets on the server-side for 2 seconds.
         #[tokio::test]
         #[traced_test]
    -    async fn test_qad_connect_delayed() -> anyhow::Result<()> {
    +    async fn test_qad_connect_delayed() -> TestResult {
             // Create a socket for our QAD server.  We need the socket separately because we
             // need to pop off messages before we attach it to the Quinn Endpoint.
    -        let socket =
    -            tokio::net::UdpSocket::bind(SocketAddr::new(Ipv4Addr::LOCALHOST.into(), 0)).await?;
    -        let server_addr = socket.local_addr()?;
    +        let socket = tokio::net::UdpSocket::bind(SocketAddr::new(Ipv4Addr::LOCALHOST.into(), 0))
    +            .await
    +            .context("bind")?;
    +        let server_addr = socket.local_addr().context("local addr")?;
             info!(addr = ?server_addr, "server socket bound");
     
             // Create a QAD server with a self-signed cert, all manually.
    -        let cert = rcgen::generate_simple_self_signed(vec!["localhost".into()])?;
    +        let cert =
    +            rcgen::generate_simple_self_signed(vec!["localhost".into()]).context("self signed")?;
             let key = PrivatePkcs8KeyDer::from(cert.key_pair.serialize_der());
             let mut server_crypto = rustls::ServerConfig::builder()
                 .with_no_client_auth()
    -            .with_single_cert(vec![cert.cert.into()], key.into())?;
    +            .with_single_cert(vec![cert.cert.into()], key.into())
    +            .context("tls")?;
             server_crypto.key_log = Arc::new(rustls::KeyLogFile::new());
             server_crypto.alpn_protocols = vec![ALPN_QUIC_ADDR_DISC.to_vec()];
    -        let mut server_config =
    -            quinn::ServerConfig::with_crypto(Arc::new(QuicServerConfig::try_from(server_crypto)?));
    +        let mut server_config = quinn::ServerConfig::with_crypto(Arc::new(
    +            QuicServerConfig::try_from(server_crypto).context("config")?,
    +        ));
             let transport_config = Arc::get_mut(&mut server_config.transport).unwrap();
             transport_config.send_observed_address_reports(true);
     
    @@ -1000,16 +1022,17 @@
                     let server = quinn::Endpoint::new(
                         Default::default(),
                         Some(server_config),
    -                    socket.into_std()?,
    +                    socket.into_std().unwrap(),
                         Arc::new(quinn::TokioRuntime),
    -                )?;
    +                )
    +                .context("endpoint new")?;
                     info!("accepting conn");
    -                let incoming = server.accept().await.context("no conn")?;
    +                let incoming = server.accept().await.expect("missing conn");
                     info!("incoming!");
    -                let conn = incoming.await?;
    +                let conn = incoming.await.context("incoming")?;
                     conn.closed().await;
                     server.wait_idle().await;
    -                Ok::<(), anyhow::Error>(())
    +                Ok::<_, TestError>(())
                 }
                 .instrument(info_span!("server")),
             );
    @@ -1017,7 +1040,8 @@
     
             info!("starting client");
             let client_endpoint =
    -            quinn::Endpoint::client(SocketAddr::new(Ipv4Addr::LOCALHOST.into(), 0))?;
    +            quinn::Endpoint::client(SocketAddr::new(Ipv4Addr::LOCALHOST.into(), 0))
    +                .context("client")?;
     
             // create the client configuration used for the client endpoint when they
             // initiate a connection with the server
    @@ -1030,12 +1054,16 @@
                 Duration::from_secs(10),
                 quic_client.get_addr_and_latency(server_addr, "localhost"),
             )
    -        .await??;
    +        .await
    +        .context("timeout")??;
             let duration = start.elapsed();
             info!(?duration, ?addr, ?latency, "QAD succeeded");
             assert!(duration >= Duration::from_secs(1));
     
    -        time::timeout(Duration::from_secs(10), server_task).await???;
    +        time::timeout(Duration::from_secs(10), server_task)
    +            .await
    +            .context("timeout")?
    +            .context("server task")??;
     
             Ok(())
         }
    diff --git a/pr/3161/docs/src/iroh_relay/server.rs.html b/pr/3161/docs/src/iroh_relay/server.rs.html
    index a6851c45e7..4aca0ea57a 100644
    --- a/pr/3161/docs/src/iroh_relay/server.rs.html
    +++ b/pr/3161/docs/src/iroh_relay/server.rs.html
    @@ -1307,7 +1307,12 @@
     1306
     1307
     1308
    -1309
    //! A fully-fledged iroh-relay server over HTTP or HTTPS.
    +1309
    +1310
    +1311
    +1312
    +1313
    +1314
    //! 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
    @@ -2175,17 +2180,23 @@
         use std::{net::Ipv4Addr, time::Duration};
     
         use bytes::Bytes;
    -    use http::header::UPGRADE;
    +    use http::{header::UPGRADE, StatusCode};
         use iroh_base::{NodeId, RelayUrl, SecretKey};
    -    use n0_future::{FutureExt, SinkExt};
    -    use testresult::TestResult;
    +    use n0_future::{FutureExt, SinkExt, StreamExt};
    +    use n0_snafu::{TestResult, TestResultExt};
    +    use tokio::net::UdpSocket;
    +    use tracing::{info, instrument};
         use tracing_test::traced_test;
     
    -    use super::*;
    +    use super::{
    +        Access, AccessConfig, RelayConfig, Server, ServerConfig, SpawnError, StunConfig,
    +        NO_CONTENT_CHALLENGE_HEADER, NO_CONTENT_RESPONSE_HEADER,
    +    };
         use crate::{
             client::{conn::ReceivedMessage, ClientBuilder, SendMessage},
             dns::DnsResolver,
             http::{Protocol, HTTP_UPGRADE_PROTOCOL},
    +        protos,
         };
     
         async fn spawn_local_relay() -> std::result::Result<Server, SpawnError> {
    @@ -2211,8 +2222,6 @@
             b_key: NodeId,
             msg: Bytes,
         ) -> TestResult<ReceivedMessage> {
    -        use anyhow::Context;
    -
             // try resend 10 times
             for _ in 0..10 {
                 client_a
    @@ -2222,7 +2231,7 @@
                 else {
                     continue;
                 };
    -            let res = res.context("stream finished")??;
    +            let res = res.expect("stream finished")?;
                 return Ok(res);
             }
             panic!("failed to send and recv message");
    @@ -2576,7 +2585,8 @@
                     }
                 }
             })
    -        .await?;
    +        .await
    +        .context("timeout")?;
     
             // test that another client has access
     
    diff --git a/pr/3161/docs/src/iroh_relay/server/client.rs.html b/pr/3161/docs/src/iroh_relay/server/client.rs.html
    index c098394ea5..ad306c75db 100644
    --- a/pr/3161/docs/src/iroh_relay/server/client.rs.html
    +++ b/pr/3161/docs/src/iroh_relay/server/client.rs.html
    @@ -887,7 +887,14 @@
     886
     887
     888
    -889
    //! The server-side representation of an ongoing client relaying connection.
    +889
    +890
    +891
    +892
    +893
    +894
    +895
    +896

    //! The server-side representation of an ongoing client relaying connection.
     
     use std::{
         collections::HashSet, future::Future, num::NonZeroU32, pin::Pin, sync::Arc, task::Poll,
    @@ -900,7 +907,7 @@
     use n0_future::{FutureExt, Sink, SinkExt, Stream, StreamExt};
     use nested_enum_utils::common_fields;
     use rand::Rng;
    -use snafu::{Backtrace, ResultExt, Snafu};
    +use snafu::{Backtrace, Snafu};
     use time::{Date, OffsetDateTime};
     use tokio::{
         sync::mpsc::{self, error::TrySendError},
    @@ -1219,6 +1226,8 @@
         }
     
         async fn run_inner(&mut self, done: CancellationToken) -> Result<(), RunError> {
    +        use snafu::ResultExt;
    +
             // Add some jitter to ping pong interactions, to avoid all pings being sent at the same time
             let next_interval = || {
                 let random_secs = rand::rngs::OsRng.gen_range(1..=5);
    @@ -1591,7 +1600,7 @@
     mod tests {
         use bytes::Bytes;
         use iroh_base::SecretKey;
    -    use testresult::TestResult;
    +    use n0_snafu::{TestResult, TestResultExt};
         use tokio_util::codec::Framed;
         use tracing::info;
         use tracing_test::traced_test;
    @@ -1643,7 +1652,7 @@
                 src: node_id,
                 data: Bytes::from(&data[..]),
             };
    -        send_queue_s.send(packet.clone()).await?;
    +        send_queue_s.send(packet.clone()).await.context("send")?;
             let frame = recv_frame(FrameType::RecvPacket, &mut io_rw).await?;
             assert_eq!(
                 frame,
    @@ -1655,7 +1664,10 @@
     
             // send disco packet
             println!("  send disco packet");
    -        disco_send_queue_s.send(packet.clone()).await?;
    +        disco_send_queue_s
    +            .send(packet.clone())
    +            .await
    +            .context("send")?;
             let frame = recv_frame(FrameType::RecvPacket, &mut io_rw).await?;
             assert_eq!(
                 frame,
    @@ -1667,7 +1679,7 @@
     
             // send peer_gone
             println!("send peer gone");
    -        peer_gone_s.send(node_id).await?;
    +        peer_gone_s.send(node_id).await.context("send")?;
             let frame = recv_frame(FrameType::PeerGone, &mut io_rw).await?;
             assert_eq!(frame, Frame::NodeGone { node_id });
     
    @@ -1693,7 +1705,8 @@
                     dst_key: target,
                     packet: Bytes::from_static(data),
                 })
    -            .await?;
    +            .await
    +            .context("send")?;
     
             // send disco packet
             println!("  send disco packet");
    @@ -1706,10 +1719,11 @@
                     dst_key: target,
                     packet: disco_data.clone().into(),
                 })
    -            .await?;
    +            .await
    +            .context("send")?;
     
             done.cancel();
    -        handle.await?;
    +        handle.await.context("join")?;
             Ok(())
         }
     
    @@ -1720,7 +1734,7 @@
             const MAX_FRAMES: u32 = 100;
     
             // Rate limiter allowing LIMIT bytes/s
    -        let quota = governor::Quota::per_second(NonZeroU32::try_from(LIMIT)?);
    +        let quota = governor::Quota::per_second(NonZeroU32::try_from(LIMIT).unwrap());
             let limiter = governor::RateLimiter::direct(quota);
     
             // Build the rate limited stream.
    @@ -1744,8 +1758,8 @@
     
             // Send a frame, it should arrive.
             info!("-- send packet");
    -        frame_writer.send(frame.clone()).await?;
    -        frame_writer.flush().await?;
    +        frame_writer.send(frame.clone()).await.context("send")?;
    +        frame_writer.flush().await.context("flush")?;
             let recv_frame = tokio::time::timeout(Duration::from_millis(500), stream.next())
                 .await
                 .expect("timeout")
    @@ -1755,8 +1769,8 @@
     
             // Next frame does not arrive.
             info!("-- send packet");
    -        frame_writer.send(frame.clone()).await?;
    -        frame_writer.flush().await?;
    +        frame_writer.send(frame.clone()).await.context("send")?;
    +        frame_writer.flush().await.context("flush")?;
             let res = tokio::time::timeout(Duration::from_millis(100), stream.next()).await;
             assert!(res.is_err(), "expecting a timeout");
             info!("-- timeout happened");
    diff --git a/pr/3161/docs/src/iroh_relay/server/clients.rs.html b/pr/3161/docs/src/iroh_relay/server/clients.rs.html
    index 6282ef5799..c29440b011 100644
    --- a/pr/3161/docs/src/iroh_relay/server/clients.rs.html
    +++ b/pr/3161/docs/src/iroh_relay/server/clients.rs.html
    @@ -283,7 +283,9 @@
     282
     283
     284
    -285
    //! The "Server" side of the client. Uses the `ClientConnManager`.
    +285
    +286
    +287

    //! The "Server" side of the client. Uses the `ClientConnManager`.
     // Based on tailscale/derp/derp_server.go
     
     use std::{
    @@ -487,6 +489,7 @@
     
         use bytes::Bytes;
         use iroh_base::SecretKey;
    +    use n0_snafu::{TestResult, TestResultExt};
         use tokio::io::DuplexStream;
         use tokio_util::codec::{Framed, FramedRead};
     
    @@ -514,7 +517,7 @@
         }
     
         #[tokio::test]
    -    async fn test_clients() -> anyhow::Result<()> {
    +    async fn test_clients() -> TestResult {
             let a_key = SecretKey::generate(rand::thread_rng()).public();
             let b_key = SecretKey::generate(rand::thread_rng()).public();
     
    @@ -562,7 +565,8 @@
                     tokio::time::sleep(Duration::from_millis(100)).await;
                 }
             })
    -        .await?;
    +        .await
    +        .context("timeout")?;
             clients.shutdown().await;
     
             Ok(())
    diff --git a/pr/3161/docs/src/iroh_relay/server/http_server.rs.html b/pr/3161/docs/src/iroh_relay/server/http_server.rs.html
    index f44d069798..957c527a9c 100644
    --- a/pr/3161/docs/src/iroh_relay/server/http_server.rs.html
    +++ b/pr/3161/docs/src/iroh_relay/server/http_server.rs.html
    @@ -1245,7 +1245,14 @@
     1244
     1245
     1246
    -1247
    use std::{
    +1247
    +1248
    +1249
    +1250
    +1251
    +1252
    +1253
    +1254
    use std::{
         collections::HashMap, future::Future, net::SocketAddr, pin::Pin, sync::Arc, time::Duration,
     };
     
    @@ -1263,7 +1270,7 @@
     use iroh_metrics::inc;
     use n0_future::{time::Elapsed, FutureExt, SinkExt};
     use nested_enum_utils::common_fields;
    -use snafu::{Backtrace, ResultExt, Snafu};
    +use snafu::{Backtrace, Snafu};
     use tokio::net::{TcpListener, TcpStream};
     use tokio_rustls_acme::AcmeAcceptor;
     use tokio_util::{codec::Framed, sync::CancellationToken, task::AbortOnDropHandle};
    @@ -1555,6 +1562,8 @@
     
         /// Builds and spawns an HTTP(S) Relay Server.
         pub(super) async fn spawn(self) -> Result<Server, SpawnError> {
    +        use snafu::ResultExt;
    +
             let cancel_token = CancellationToken::new();
     
             let service = RelayService::new(
    @@ -1831,6 +1840,8 @@
         /// [`AsyncRead`]: tokio::io::AsyncRead
         /// [`AsyncWrite`]: tokio::io::AsyncWrite
         async fn accept(&self, protocol: Protocol, io: MaybeTlsStream) -> Result<(), Error> {
    +        use snafu::ResultExt;
    +
             trace!(?protocol, "accept: start");
             let mut io = match protocol {
                 Protocol::Relay => {
    @@ -1926,6 +1937,8 @@
         ///
         /// If a `tls_config` is given, will serve the connection using HTTPS.
         async fn handle_connection(self, stream: TcpStream, tls_config: Option<TlsConfig>) {
    +        use snafu::ResultExt;
    +
             let res = match tls_config {
                 Some(tls_config) => {
                     debug!("HTTPS: serve connection");
    @@ -1957,6 +1970,8 @@
             stream: TcpStream,
             tls_config: TlsConfig,
         ) -> Result<(), Error> {
    +        use snafu::ResultExt;
    +
             let TlsConfig { acceptor, config } = tls_config;
             match acceptor {
                 TlsAcceptor::LetsEncrypt(a) => match a.accept(stream).await? {
    @@ -2032,11 +2047,12 @@
     mod tests {
         use std::sync::Arc;
     
    -    use anyhow::{bail, Context};
         use bytes::Bytes;
         use iroh_base::{PublicKey, SecretKey};
         use n0_future::{SinkExt, StreamExt};
    +    use n0_snafu::{TestResult, TestResultExt};
         use reqwest::Url;
    +    use snafu::whatever;
         use tracing::info;
         use tracing_test::traced_test;
     
    @@ -2045,7 +2061,7 @@
             client::{
                 conn::{Conn, ReceivedMessage, SendMessage},
                 streams::MaybeTlsStreamChained,
    -            Client, ClientBuilder,
    +            Client, ClientBuilder, ConnectError,
             },
             dns::DnsResolver,
         };
    @@ -2076,7 +2092,7 @@
     
         #[tokio::test]
         #[traced_test]
    -    async fn test_http_clients_and_server() -> anyhow::Result<()> {
    +    async fn test_http_clients_and_server() -> TestResult {
             let a_key = SecretKey::generate(rand::thread_rng());
             let b_key = SecretKey::generate(rand::thread_rng());
     
    @@ -2089,13 +2105,12 @@
     
             // get dial info
             let port = addr.port();
    -        let addr = {
    -            if let std::net::IpAddr::V4(ipv4_addr) = addr.ip() {
    -                ipv4_addr
    -            } else {
    -                bail!("cannot get ipv4 addr from socket addr {addr:?}");
    -            }
    +        let addr = if let std::net::IpAddr::V4(ipv4_addr) = addr.ip() {
    +            ipv4_addr
    +        } else {
    +            whatever!("cannot get ipv4 addr from socket addr {addr:?}");
             };
    +
             info!("addr: {addr}:{port}");
             let relay_addr: Url = format!("http://{addr}:{port}").parse().unwrap();
     
    @@ -2107,12 +2122,12 @@
     
             info!("ping a");
             client_a.send(SendMessage::Ping([1u8; 8])).await?;
    -        let pong = client_a.next().await.context("eos")??;
    +        let pong = client_a.next().await.expect("eos")?;
             assert!(matches!(pong, ReceivedMessage::Pong(_)));
     
             info!("ping b");
             client_b.send(SendMessage::Ping([2u8; 8])).await?;
    -        let pong = client_b.next().await.context("eos")??;
    +        let pong = client_b.next().await.expect("eos")?;
             assert!(matches!(pong, ReceivedMessage::Pong(_)));
     
             info!("sending message from a to b");
    @@ -2148,7 +2163,7 @@
         async fn create_test_client(
             key: SecretKey,
             server_url: Url,
    -    ) -> anyhow::Result<(PublicKey, Client)> {
    +    ) -> Result<(PublicKey, Client), ConnectError> {
             let public_key = key.public();
             let client =
                 ClientBuilder::new(server_url, key, DnsResolver::new()).insecure_skip_cert_verify(true);
    @@ -2158,7 +2173,7 @@
         }
     
         fn process_msg(
    -        msg: Option<anyhow::Result<ReceivedMessage, crate::client::RecvError>>,
    +        msg: Option<Result<ReceivedMessage, crate::client::RecvError>>,
         ) -> Option<(PublicKey, Bytes)> {
             match msg {
                 Some(Err(e)) => {
    @@ -2186,7 +2201,7 @@
     
         #[tokio::test]
         #[traced_test]
    -    async fn test_https_clients_and_server() -> anyhow::Result<()> {
    +    async fn test_https_clients_and_server() -> TestResult {
             let a_key = SecretKey::generate(rand::thread_rng());
             let b_key = SecretKey::generate(rand::thread_rng());
     
    @@ -2203,13 +2218,12 @@
     
             // get dial info
             let port = addr.port();
    -        let addr = {
    -            if let std::net::IpAddr::V4(ipv4_addr) = addr.ip() {
    -                ipv4_addr
    -            } else {
    -                bail!("cannot get ipv4 addr from socket addr {addr:?}");
    -            }
    +        let addr = if let std::net::IpAddr::V4(ipv4_addr) = addr.ip() {
    +            ipv4_addr
    +        } else {
    +            whatever!("cannot get ipv4 addr from socket addr {addr:?}");
             };
    +
             info!("Relay listening on: {addr}:{port}");
     
             let url: Url = format!("https://localhost:{port}").parse().unwrap();
    @@ -2222,12 +2236,12 @@
     
             info!("ping a");
             client_a.send(SendMessage::Ping([1u8; 8])).await?;
    -        let pong = client_a.next().await.context("eos")??;
    +        let pong = client_a.next().await.expect("eos")?;
             assert!(matches!(pong, ReceivedMessage::Pong(_)));
     
             info!("ping b");
             client_b.send(SendMessage::Ping([2u8; 8])).await?;
    -        let pong = client_b.next().await.context("eos")??;
    +        let pong = client_b.next().await.expect("eos")?;
             assert!(matches!(pong, ReceivedMessage::Pong(_)));
     
             info!("sending message from a to b");
    @@ -2256,7 +2270,7 @@
             client_a.close().await?;
             client_b.close().await?;
             server.shutdown();
    -        server.task_handle().await?;
    +        server.task_handle().await.context("join")?;
     
             Ok(())
         }
    @@ -2264,7 +2278,7 @@
         async fn make_test_client(
             client: tokio::io::DuplexStream,
             key: &SecretKey,
    -    ) -> anyhow::Result<Conn> {
    +    ) -> TestResult<Conn> {
             let client = MaybeTlsStreamChained::Mem(client);
             let client = Conn::new_relay(client, KeyCache::test(), key).await?;
             Ok(client)
    @@ -2272,7 +2286,7 @@
     
         #[tokio::test]
         #[traced_test]
    -    async fn test_server_basic() -> anyhow::Result<()> {
    +    async fn test_server_basic() -> TestResult {
             info!("Create the server.");
             let service = RelayService::new(
                 Default::default(),
    @@ -2292,7 +2306,7 @@
                     .await
             });
             let mut client_a = make_test_client(client_a, &key_a).await?;
    -        handler_task.await??;
    +        handler_task.await.context("join")??;
     
             info!("Create client B and connect it to the server.");
             let key_b = SecretKey::generate(rand::thread_rng());
    @@ -2304,14 +2318,14 @@
                     .await
             });
             let mut client_b = make_test_client(client_b, &key_b).await?;
    -        handler_task.await??;
    +        handler_task.await.context("join")??;
     
             info!("Send message from A to B.");
             let msg = Bytes::from_static(b"hello client b!!");
             client_a
                 .send(SendMessage::SendPacket(public_key_b, msg.clone()))
                 .await?;
    -        match client_b.next().await.context("eos")?? {
    +        match client_b.next().await.unwrap()? {
                 ReceivedMessage::ReceivedPacket {
                     remote_node_id,
                     data,
    @@ -2320,7 +2334,7 @@
                     assert_eq!(&msg[..], data);
                 }
                 msg => {
    -                bail!("expected ReceivedPacket msg, got {msg:?}");
    +                whatever!("expected ReceivedPacket msg, got {msg:?}");
                 }
             }
     
    @@ -2329,7 +2343,7 @@
             client_b
                 .send(SendMessage::SendPacket(public_key_a, msg.clone()))
                 .await?;
    -        match client_a.next().await.context("eos")?? {
    +        match client_a.next().await.unwrap()? {
                 ReceivedMessage::ReceivedPacket {
                     remote_node_id,
                     data,
    @@ -2338,7 +2352,7 @@
                     assert_eq!(&msg[..], data);
                 }
                 msg => {
    -                bail!("expected ReceivedPacket msg, got {msg:?}");
    +                whatever!("expected ReceivedPacket msg, got {msg:?}");
                 }
             }
     
    @@ -2359,7 +2373,7 @@
         }
     
         #[tokio::test]
    -    async fn test_server_replace_client() -> anyhow::Result<()> {
    +    async fn test_server_replace_client() -> TestResult {
             info!("Create the server.");
             let service = RelayService::new(
                 Default::default(),
    @@ -2379,7 +2393,7 @@
                     .await
             });
             let mut client_a = make_test_client(client_a, &key_a).await?;
    -        handler_task.await??;
    +        handler_task.await.context("join")??;
     
             info!("Create client B and connect it to the server.");
             let key_b = SecretKey::generate(rand::thread_rng());
    @@ -2391,14 +2405,14 @@
                     .await
             });
             let mut client_b = make_test_client(client_b, &key_b).await?;
    -        handler_task.await??;
    +        handler_task.await.context("join")??;
     
             info!("Send message from A to B.");
             let msg = Bytes::from_static(b"hello client b!!");
             client_a
                 .send(SendMessage::SendPacket(public_key_b, msg.clone()))
                 .await?;
    -        match client_b.next().await.context("eos")?? {
    +        match client_b.next().await.expect("eos")? {
                 ReceivedMessage::ReceivedPacket {
                     remote_node_id,
                     data,
    @@ -2407,7 +2421,7 @@
                     assert_eq!(&msg[..], data);
                 }
                 msg => {
    -                bail!("expected ReceivedPacket msg, got {msg:?}");
    +                whatever!("expected ReceivedPacket msg, got {msg:?}");
                 }
             }
     
    @@ -2416,7 +2430,7 @@
             client_b
                 .send(SendMessage::SendPacket(public_key_a, msg.clone()))
                 .await?;
    -        match client_a.next().await.context("eos")?? {
    +        match client_a.next().await.expect("eos")? {
                 ReceivedMessage::ReceivedPacket {
                     remote_node_id,
                     data,
    @@ -2425,7 +2439,7 @@
                     assert_eq!(&msg[..], data);
                 }
                 msg => {
    -                bail!("expected ReceivedPacket msg, got {msg:?}");
    +                whatever!("expected ReceivedPacket msg, got {msg:?}");
                 }
             }
     
    @@ -2437,7 +2451,7 @@
                     .await
             });
             let mut new_client_b = make_test_client(new_client_b, &key_b).await?;
    -        handler_task.await??;
    +        handler_task.await.context("join")??;
     
             // assert!(client_b.recv().await.is_err());
     
    @@ -2446,7 +2460,7 @@
             client_a
                 .send(SendMessage::SendPacket(public_key_b, msg.clone()))
                 .await?;
    -        match new_client_b.next().await.context("eos")?? {
    +        match new_client_b.next().await.expect("eos")? {
                 ReceivedMessage::ReceivedPacket {
                     remote_node_id,
                     data,
    @@ -2455,7 +2469,7 @@
                     assert_eq!(&msg[..], data);
                 }
                 msg => {
    -                bail!("expected ReceivedPacket msg, got {msg:?}");
    +                whatever!("expected ReceivedPacket msg, got {msg:?}");
                 }
             }
     
    @@ -2464,7 +2478,7 @@
             new_client_b
                 .send(SendMessage::SendPacket(public_key_a, msg.clone()))
                 .await?;
    -        match client_a.next().await.context("eos")?? {
    +        match client_a.next().await.expect("eos")? {
                 ReceivedMessage::ReceivedPacket {
                     remote_node_id,
                     data,
    @@ -2473,7 +2487,7 @@
                     assert_eq!(&msg[..], data);
                 }
                 msg => {
    -                bail!("expected ReceivedPacket msg, got {msg:?}");
    +                whatever!("expected ReceivedPacket msg, got {msg:?}");
                 }
             }
     
    diff --git a/pr/3161/docs/trait.impl/core/convert/trait.From.js b/pr/3161/docs/trait.impl/core/convert/trait.From.js
    index a32b1254e2..7e6a499346 100644
    --- a/pr/3161/docs/trait.impl/core/convert/trait.From.js
    +++ b/pr/3161/docs/trait.impl/core/convert/trait.From.js
    @@ -1,9 +1,9 @@
     (function() {
    -    var implementors = Object.fromEntries([["iroh",[["impl From<PkarrError> for DiscoveryError"],["impl From<AddNodeAddrError> for ConnectWithOptsError"],["impl From<ConnectWithOptsError> for ConnectError"],["impl From<ConnectionError> for AlpnError"],["impl From<ConnectionError> for ConnectError"],["impl From<ConnectionError> for Error"],["impl From<Box<dyn Error + Sync + Send>> for Error"],["impl From<Error> for Error"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for Error"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for Error"],["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<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<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for SecretKey"]]],["iroh_relay",[["impl From<DialError> for ConnectError"],["impl From<SendError> for Error"],["impl From<Error> for DialError"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<FrameType> for u8"],["impl From<u8> for FrameType"],["impl From<Error> for DialError"],["impl From<Error> for RecvError"],["impl From<Error> for SendError"],["impl From<Error> for Error"],["impl From<NodeInfo> for NodeAddr"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for Error"],["impl From<Elapsed> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Error> for SendError"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<JoinError> for SupervisorError"],["impl From<NoInitialCipherSuite> for Error"],["impl From<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RecvError> for Error"],["impl From<ResolveError> for Error"],["impl From<Resolver<GenericConnector<TokioRuntimeProvider>>> for DnsResolver"],["impl From<SignedPacketBuildError> for Error"],["impl From<TxtLookup> for TxtLookup"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl From<PkarrError> for DiscoveryError"],["impl From<AddNodeAddrError> for ConnectWithOptsError"],["impl From<ConnectWithOptsError> for ConnectError"],["impl From<ConnectionError> for AlpnError"],["impl From<ConnectionError> for ConnectError"],["impl From<ConnectionError> for Error"],["impl From<Box<dyn Error + Sync + Send>> for Error"],["impl From<Error> for Error"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for Error"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for Error"],["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<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<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for SecretKey"]]],["iroh_relay",[["impl From<DialError> for ConnectError"],["impl From<SendError> for Error"],["impl From<Error> for DialError"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<FrameType> for u8"],["impl From<u8> for FrameType"],["impl From<Error> for DialError"],["impl From<Error> for RecvError"],["impl From<Error> for SendError"],["impl From<Error> for Error"],["impl From<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for Error"],["impl From<Elapsed> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Error> for SendError"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<JoinError> for SupervisorError"],["impl From<NoInitialCipherSuite> for Error"],["impl From<RecvError> for Error"],["impl From<ResolveError> for Error"],["impl From<Resolver<GenericConnector<TokioRuntimeProvider>>> for DnsResolver"],["impl From<SignedPacketBuildError> for Error"],["impl From<TxtLookup> for TxtLookup"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[6154,4636,10324]} \ No newline at end of file +//{"start":57,"fragment_lengths":[6154,4636,10690]} \ No newline at end of file