pub struct ClientBuilder { /* private fields */ }Expand description
Build a Client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn new(
- url: impl Into<RelayUrl>,
- secret_key: SecretKey,
+ url: impl Into<RelayUrl>,
+ secret_key: SecretKey,
dns_resolver: DnsResolver,
) -> Self
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
Sourcepub fn address_family_selector<S>(self, selector: S) -> Selfwhere
diff --git a/pr/3465/docs/iroh_relay/dns/struct.DnsResolver.html b/pr/3465/docs/iroh_relay/dns/struct.DnsResolver.html
index af25b3ce3d..fa6cfb502a 100644
--- a/pr/3465/docs/iroh_relay/dns/struct.DnsResolver.html
+++ b/pr/3465/docs/iroh_relay/dns/struct.DnsResolver.html
@@ -73,9 +73,9 @@ at T+0ms, T+200ms and T+300ms. The timeout is applied as stated in
summary of all errors otherwise.
pub fn address_family_selector<S>(self, selector: S) -> Selfwhere
diff --git a/pr/3465/docs/iroh_relay/dns/struct.DnsResolver.html b/pr/3465/docs/iroh_relay/dns/struct.DnsResolver.html
index af25b3ce3d..fa6cfb502a 100644
--- a/pr/3465/docs/iroh_relay/dns/struct.DnsResolver.html
+++ b/pr/3465/docs/iroh_relay/dns/struct.DnsResolver.html
@@ -73,9 +73,9 @@ at T+0ms, T+200ms and T+300ms. The timeout is applied as stated in
summary of all errors otherwise.
timeout is applied as stated in
summary of all errors otherwise.
Sourcepub async fn lookup_node_by_id(
&self,
- node_id: &NodeId,
+ node_id: &NodeId,
origin: &str,
-) -> Result<NodeInfo, LookupError>
pub async fn lookup_node_by_id( &self, - node_id: &NodeId, + node_id: &NodeId, origin: &str, -) -> Result<NodeInfo, LookupError>
Looks up node info by [NodeId] and origin domain name.
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.
Sourcepub async fn lookup_node_by_domain_name(
@@ -93,10 +93,10 @@ at T+0ms, T+200ms and T+300ms. The result of the first successful call is return
summary of all errors otherwise.
pub async fn lookup_node_by_domain_name( @@ -93,10 +93,10 @@ at T+0ms, T+200ms and T+300ms. The result of the first successful call is return summary of all errors otherwise.
Sourcepub async fn lookup_node_by_id_staggered(
&self,
- node_id: &NodeId,
+ node_id: &NodeId,
origin: &str,
delays_ms: &[u64],
-) -> Result<NodeInfo, StaggeredError<LookupError>>
pub async fn lookup_node_by_id_staggered( &self, - node_id: &NodeId, + node_id: &NodeId, origin: &str, delays_ms: &[u64], -) -> Result<NodeInfo, StaggeredError<LookupError>>
Looks up node info by [NodeId] and origin domain name.
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/3465/docs/iroh_relay/index.html b/pr/3465/docs/iroh_relay/index.html
index 9dd0d5205d..d5b305c8bf 100644
--- a/pr/3465/docs/iroh_relay/index.html
+++ b/pr/3465/docs/iroh_relay/index.html
@@ -25,6 +25,6 @@ Tailscale.
Re-exports§
pub use protos::relay::MAX_PACKET_SIZE;
Modules§
- client
- Exposes
Client, which allows to establish connections to a relay server. - defaults
- Default values used in the relay.
- dns
Non- wasm_browser - DNS resolver
- http
- HTTP-specific constants for the relay server and client.
- node_
info - Support for handling DNS resource records for dialing by [
NodeId]. - protos
- Protocols used by the iroh-relay
- quic
- Create a QUIC server that accepts connections +
Re-exports§
pub use protos::relay::MAX_PACKET_SIZE;
Modules§
- client
- Exposes
Client, which allows to establish connections to a relay server. - defaults
- Default values used in the relay.
- dns
Non- wasm_browser - DNS resolver
- http
- HTTP-specific constants for the relay server and client.
- node_
info - Support for handling DNS resource records for dialing by
NodeId. - protos
- Protocols used by the iroh-relay
- quic
- Create a QUIC server that accepts connections for QUIC address discovery.
- server
server - A fully-fledged iroh-relay server over HTTP or HTTPS.
Structs§
- Ping
Tracker - Tracks pings on a single relay connection.
- Relay
Map - Configuration of all the relay servers that can be used.
- Relay
Node - Information on a specific relay server.
- Relay
Quic Config - Configuration for speaking to the QUIC endpoint on the relay server to do QUIC address discovery.
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
+
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
_iroh is the record name as defined by IROH_TXT_NAME.
<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:
Structs§
- MaxLength
Exceeded Error - Error returned when an input value is too long for
UserData. - Node
Data - Data about a node that may be published to and resolved from discovery services.
- Node
Info - Information about a node that may be published to and resolved from discovery services.
- User
Data - Under the hood this is a UTF-8 String is no longer than
UserData::MAX_LENGTHbytes.
Enums§
Constants§
- IROH_
TXT_ NAME - The DNS name for the iroh TXT record.
Traits§
- Node
IdExt - Extension methods for [
NodeId] to encode to and decode from [z32], +
Structs§
- MaxLength
Exceeded Error - Error returned when an input value is too long for
UserData. - Node
Data - Data about a node that may be published to and resolved from discovery services.
- Node
Info - Information about a node that may be published to and resolved from discovery services.
- User
Data - Under the hood this is a UTF-8 String is no longer than
UserData::MAX_LENGTHbytes.
Enums§
Constants§
- IROH_
TXT_ NAME - The DNS name for the iroh TXT record.
Traits§
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
impl NodeData
Sourcepub fn new(
- relay_url: Option<RelayUrl>,
+ relay_url: Option<RelayUrl>,
direct_addresses: BTreeSet<SocketAddr>,
) -> Self
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.
Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node data.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node data.
Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> Self
pub fn with_direct_addresses( self, direct_addresses: BTreeSet<SocketAddr>, ) -> Self
Sets the direct addresses and returns the updated node data.
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
pub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node data.
-Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
pub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
Sourcepub fn clear_direct_addresses(&mut self)
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.
-Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
+Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
pub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Trait Implementations§
impl Eq for NodeData
impl StructuralPartialEq for NodeData
Auto Trait Implementations§
impl Freeze for NodeData
impl RefUnwindSafe for NodeData
impl Send for NodeData
impl Sync for NodeData
impl Unpin for NodeData
impl UnwindSafe for NodeData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/node_info/struct.NodeInfo.html b/pr/3465/docs/iroh_relay/node_info/struct.NodeInfo.html
index 9c1b73e9af..3911604c04 100644
--- a/pr/3465/docs/iroh_relay/node_info/struct.NodeInfo.html
+++ b/pr/3465/docs/iroh_relay/node_info/struct.NodeInfo.html
@@ -1,20 +1,20 @@
NodeInfo in iroh_relay::node_info - Rust 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: NodeIdThe [NodeId] of the node this is about.
+
+Fields§
§node_id: NodeIdThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
+Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> Self
Sets the direct addresses and returns the updated node info.
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a [NodeAddr] by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a [NodeAddr] without cloning.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
@@ -24,12 +24,12 @@
) -> Result<Self, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
Sourcepub fn to_pkarr_signed_packet(
&self,
- secret_key: &SecretKey,
+ secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
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.
Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
Sourcepub fn clear_direct_addresses(&mut self)
Removes all direct addresses from the node data.
@@ -37,9 +37,9 @@
&mut self,
addrs: impl IntoIterator<Item = SocketAddr>,
)Adds direct addresses to the node data.
-Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
+Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html b/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
index b3f095d994..b3969acf4e 100644
--- a/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
+++ b/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
@@ -1,9 +1,9 @@
NodeIdExt in iroh_relay::node_info - Rust pub trait NodeIdExt {
// Required methods
fn to_z32(&self) -> String;
- fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
-}
Expand description
Extension methods for [NodeId] to encode to and decode from [z32],
+ fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
+}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-
Required Methods§
Sourcefn from_z32(s: &str) -> Result<NodeId, DecodingError>
Parses a [NodeId] from [z-base-32] encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
\ No newline at end of file
+Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
\ No newline at end of file
diff --git a/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html b/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
index 41f454cb89..2918f99189 100644
--- a/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
+++ b/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
@@ -2,7 +2,7 @@
Ping([u8; 8]),
Pong([u8; 8]),
Datagrams {
- dst_node_id: NodeId,
+ dst_node_id: NodeId,
datagrams: Datagrams,
},
}Expand description
Messages that clients send to relays.
@@ -11,7 +11,7 @@ other side with a §Pong([u8; 8])
Reply to a RelayToClientMsg::Ping from a server
with the payload sent previously in the ping.
§Datagrams
Request from the client to relay datagrams to given remote node.
-Fields
§dst_node_id: NodeIdThe remote node to relay to.
+Trait Implementations§
Source§impl Clone for ClientToRelayMsg
Source§fn clone(&self) -> ClientToRelayMsg
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for ClientToRelayMsg
Source§impl PartialEq for ClientToRelayMsg
Source§impl Sink<ClientToRelayMsg> for Client
Source§fn poll_ready(
diff --git a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
index bbe27aa923..aecef8901d 100644
--- a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
+++ b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
@@ -1,9 +1,9 @@
RelayToClientMsg in iroh_relay::protos::relay - Rust pub enum RelayToClientMsg {
Datagrams {
- remote_node_id: NodeId,
+ remote_node_id: NodeId,
datagrams: Datagrams,
},
- NodeGone(NodeId),
+ NodeGone(NodeId),
Health {
problem: String,
},
@@ -15,9 +15,9 @@
Pong([u8; 8]),
}
Expand description
The messages that a relay sends to clients or the clients receive from the relay.
Variants§
§Datagrams
Represents datagrams sent from relays (originally sent to them by another client).
-Fields
§NodeGone(NodeId)
Indicates that the client identified by the underlying public key had previously sent you a
packet but has now disconnected from the relay.
§Health
A one-way message from relay to client, declaring the connection health state.
Fields
§problem: StringIf set, is a description of why the connection is unhealthy.
diff --git a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
index 3601d02512..2f4eeb9a4d 100644
--- a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
+++ b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
@@ -1,10 +1,10 @@
AccessConfig in iroh_relay::server - Rust 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
Implementations§
Source§impl AccessConfig
Sourcepub async fn is_allowed(&self, node: NodeId) -> bool
Is this node allowed?
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for AccessConfig
§impl !RefUnwindSafe for AccessConfig
§impl Send for AccessConfig
§impl Sync for AccessConfig
§impl Unpin for AccessConfig
§impl !UnwindSafe for AccessConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/server/struct.Server.html b/pr/3465/docs/iroh_relay/server/struct.Server.html
index f630205751..d4e45ff773 100644
--- a/pr/3465/docs/iroh_relay/server/struct.Server.html
+++ b/pr/3465/docs/iroh_relay/server/struct.Server.html
@@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.
Sourcepub fn http_addr(&self) -> Option<SocketAddr>
The socket address the HTTP server is listening on.
Sourcepub fn quic_addr(&self) -> Option<SocketAddr>
The socket address the QUIC server is listening on.
Sourcepub fn certificates(&self) -> Option<Vec<CertificateDer<'static>>>
The certificates chain if configured with manual TLS certificates.
-Sourcepub fn https_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s https [RelayUrl].
+Sourcepub 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.
-Sourcepub fn http_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s http [RelayUrl].
+Sourcepub 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.
Sourcepub fn metrics(&self) -> &RelayMetrics
Returns the metrics collected in the relay server.
Trait Implementations§
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 Twhere
diff --git a/pr/3465/docs/iroh_relay/struct.RelayMap.html b/pr/3465/docs/iroh_relay/struct.RelayMap.html
index f9778ec53a..35f0e5e28b 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayMap.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayMap.html
@@ -1,15 +1,15 @@
RelayMap in iroh_relay - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
-Implementations§
Source§impl RelayMap
Implementations§
Trait Implementations§
Trait Implementations§
Source§impl FromIterator<RelayNode> for RelayMap
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§impl FromIterator<RelayUrl> for RelayMap
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/3465/docs/iroh_relay/struct.RelayNode.html b/pr/3465/docs/iroh_relay/struct.RelayNode.html
index 541da09b8c..8ba5cf3bc8 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayNode.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayNode.html
@@ -1,14 +1,14 @@
RelayNode in iroh_relay - Rust pub struct RelayNode {
- pub url: RelayUrl,
+ pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
-Fields§
§url: RelayUrlThe [RelayUrl] where this relay server can be dialed.
+Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
§quic: Option<RelayQuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
Trait Implementations§
Source§impl<'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 moreSource§impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayNode> for RelayMap
Source§impl Ord for RelayNode
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/3465/docs/trait.impl/core/convert/trait.From.js b/pr/3465/docs/trait.impl/core/convert/trait.From.js
index 602aaa99e5..bfeaa20a83 100644
--- a/pr/3465/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/3465/docs/trait.impl/core/convert/trait.From.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RecvError> for Error"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
+ var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["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<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<RecvError> for Error"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[7257,4938,10893]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[7257,4938,11503]}
\ No newline at end of file
diff --git a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
index bdc1bf6fa3..8c038d8a54 100644
--- a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
+++ b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayNode> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]);
+ var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayNode> for RelayMap"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[1356]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[1478]}
\ No newline at end of file
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/node_info/struct.NodeInfo.html b/pr/3465/docs/iroh_relay/node_info/struct.NodeInfo.html
index 9c1b73e9af..3911604c04 100644
--- a/pr/3465/docs/iroh_relay/node_info/struct.NodeInfo.html
+++ b/pr/3465/docs/iroh_relay/node_info/struct.NodeInfo.html
@@ -1,20 +1,20 @@
NodeInfo in iroh_relay::node_info - Rust 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: NodeIdThe [NodeId] of the node this is about.
+
+Fields§
§node_id: NodeIdThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
+Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> Self
Sets the direct addresses and returns the updated node info.
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a [NodeAddr] by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a [NodeAddr] without cloning.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
@@ -24,12 +24,12 @@
) -> Result<Self, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
Sourcepub fn to_pkarr_signed_packet(
&self,
- secret_key: &SecretKey,
+ secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
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.
Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
Sourcepub fn clear_direct_addresses(&mut self)
Removes all direct addresses from the node data.
@@ -37,9 +37,9 @@
&mut self,
addrs: impl IntoIterator<Item = SocketAddr>,
)Adds direct addresses to the node data.
-Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
+Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html b/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
index b3f095d994..b3969acf4e 100644
--- a/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
+++ b/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
@@ -1,9 +1,9 @@
NodeIdExt in iroh_relay::node_info - Rust pub trait NodeIdExt {
// Required methods
fn to_z32(&self) -> String;
- fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
-}
Expand description
Extension methods for [NodeId] to encode to and decode from [z32],
+ fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
+}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-
Required Methods§
Sourcefn from_z32(s: &str) -> Result<NodeId, DecodingError>
Parses a [NodeId] from [z-base-32] encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
\ No newline at end of file
+Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
\ No newline at end of file
diff --git a/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html b/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
index 41f454cb89..2918f99189 100644
--- a/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
+++ b/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
@@ -2,7 +2,7 @@
Ping([u8; 8]),
Pong([u8; 8]),
Datagrams {
- dst_node_id: NodeId,
+ dst_node_id: NodeId,
datagrams: Datagrams,
},
}Expand description
Messages that clients send to relays.
@@ -11,7 +11,7 @@ other side with a §Pong([u8; 8])
Reply to a RelayToClientMsg::Ping from a server
with the payload sent previously in the ping.
§Datagrams
Request from the client to relay datagrams to given remote node.
-Fields
§dst_node_id: NodeIdThe remote node to relay to.
+Trait Implementations§
Source§impl Clone for ClientToRelayMsg
Source§fn clone(&self) -> ClientToRelayMsg
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for ClientToRelayMsg
Source§impl PartialEq for ClientToRelayMsg
Source§impl Sink<ClientToRelayMsg> for Client
Source§fn poll_ready(
diff --git a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
index bbe27aa923..aecef8901d 100644
--- a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
+++ b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
@@ -1,9 +1,9 @@
RelayToClientMsg in iroh_relay::protos::relay - Rust pub enum RelayToClientMsg {
Datagrams {
- remote_node_id: NodeId,
+ remote_node_id: NodeId,
datagrams: Datagrams,
},
- NodeGone(NodeId),
+ NodeGone(NodeId),
Health {
problem: String,
},
@@ -15,9 +15,9 @@
Pong([u8; 8]),
}
Expand description
The messages that a relay sends to clients or the clients receive from the relay.
Variants§
§Datagrams
Represents datagrams sent from relays (originally sent to them by another client).
-Fields
§NodeGone(NodeId)
Indicates that the client identified by the underlying public key had previously sent you a
packet but has now disconnected from the relay.
§Health
A one-way message from relay to client, declaring the connection health state.
Fields
§problem: StringIf set, is a description of why the connection is unhealthy.
diff --git a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
index 3601d02512..2f4eeb9a4d 100644
--- a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
+++ b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
@@ -1,10 +1,10 @@
AccessConfig in iroh_relay::server - Rust 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
Implementations§
Source§impl AccessConfig
Sourcepub async fn is_allowed(&self, node: NodeId) -> bool
Is this node allowed?
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for AccessConfig
§impl !RefUnwindSafe for AccessConfig
§impl Send for AccessConfig
§impl Sync for AccessConfig
§impl Unpin for AccessConfig
§impl !UnwindSafe for AccessConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/server/struct.Server.html b/pr/3465/docs/iroh_relay/server/struct.Server.html
index f630205751..d4e45ff773 100644
--- a/pr/3465/docs/iroh_relay/server/struct.Server.html
+++ b/pr/3465/docs/iroh_relay/server/struct.Server.html
@@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.
Sourcepub fn http_addr(&self) -> Option<SocketAddr>
The socket address the HTTP server is listening on.
Sourcepub fn quic_addr(&self) -> Option<SocketAddr>
The socket address the QUIC server is listening on.
Sourcepub fn certificates(&self) -> Option<Vec<CertificateDer<'static>>>
The certificates chain if configured with manual TLS certificates.
-Sourcepub fn https_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s https [RelayUrl].
+Sourcepub 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.
-Sourcepub fn http_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s http [RelayUrl].
+Sourcepub 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.
Sourcepub fn metrics(&self) -> &RelayMetrics
Returns the metrics collected in the relay server.
Trait Implementations§
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 Twhere
diff --git a/pr/3465/docs/iroh_relay/struct.RelayMap.html b/pr/3465/docs/iroh_relay/struct.RelayMap.html
index f9778ec53a..35f0e5e28b 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayMap.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayMap.html
@@ -1,15 +1,15 @@
RelayMap in iroh_relay - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
-Implementations§
Source§impl RelayMap
Implementations§
Trait Implementations§
Trait Implementations§
Source§impl FromIterator<RelayNode> for RelayMap
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§impl FromIterator<RelayUrl> for RelayMap
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/3465/docs/iroh_relay/struct.RelayNode.html b/pr/3465/docs/iroh_relay/struct.RelayNode.html
index 541da09b8c..8ba5cf3bc8 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayNode.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayNode.html
@@ -1,14 +1,14 @@
RelayNode in iroh_relay - Rust pub struct RelayNode {
- pub url: RelayUrl,
+ pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
-Fields§
§url: RelayUrlThe [RelayUrl] where this relay server can be dialed.
+Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
§quic: Option<RelayQuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
Trait Implementations§
Source§impl<'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 moreSource§impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayNode> for RelayMap
Source§impl Ord for RelayNode
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/3465/docs/trait.impl/core/convert/trait.From.js b/pr/3465/docs/trait.impl/core/convert/trait.From.js
index 602aaa99e5..bfeaa20a83 100644
--- a/pr/3465/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/3465/docs/trait.impl/core/convert/trait.From.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RecvError> for Error"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
+ var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["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<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<RecvError> for Error"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[7257,4938,10893]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[7257,4938,11503]}
\ No newline at end of file
diff --git a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
index bdc1bf6fa3..8c038d8a54 100644
--- a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
+++ b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayNode> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]);
+ var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayNode> for RelayMap"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[1356]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[1478]}
\ No newline at end of file
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: NodeIdThe [NodeId] of the node this is about.
Fields§
§node_id: NodeIdThe NodeId of the node this is about.
data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
pub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
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
impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
pub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> Self
pub fn with_direct_addresses( self, direct_addresses: BTreeSet<SocketAddr>, ) -> Self
Sets the direct addresses and returns the updated node info.
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
pub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
pub fn to_node_addr(&self) -> NodeAddr
Converts into a [NodeAddr] by cloning the needed fields.
Sourcepub fn into_node_addr(self) -> NodeAddr
pub fn into_node_addr(self) -> NodeAddr
Converts into a [NodeAddr] without cloning.
Sourcepub fn to_node_addr(&self) -> NodeAddr
pub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
Sourcepub fn into_node_addr(self) -> NodeAddr
pub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
@@ -24,12 +24,12 @@
) -> Result<Self, ParseError>
pub fn from_txt_lookup( domain_name: String, lookup: impl Iterator<Item = TxtRecordData>, @@ -24,12 +24,12 @@ ) -> Result<Self, ParseError>
Parses a NodeInfo from a [pkarr::SignedPacket].
Sourcepub fn to_pkarr_signed_packet(
&self,
- secret_key: &SecretKey,
+ secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
pub fn to_pkarr_signed_packet( &self, - secret_key: &SecretKey, + secret_key: &SecretKey, ttl: u32, ) -> Result<SignedPacket, EncodingError>
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.
Sourcepub fn to_txt_strings(&self) -> Vec<String>
pub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
pub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
Sourcepub fn clear_direct_addresses(&mut self)
pub fn clear_direct_addresses(&mut self)
Removes all direct addresses from the node data.
@@ -37,9 +37,9 @@ &mut self, addrs: impl IntoIterator<Item = SocketAddr>, )Adds direct addresses to the node data.
-Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
+Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
pub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Trait Implementations§
impl Eq for NodeInfo
impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
impl Freeze for NodeInfo
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html b/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
index b3f095d994..b3969acf4e 100644
--- a/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
+++ b/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
@@ -1,9 +1,9 @@
NodeIdExt in iroh_relay::node_info - Rust pub trait NodeIdExt {
// Required methods
fn to_z32(&self) -> String;
- fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
-}
Expand description
Extension methods for [NodeId] to encode to and decode from [z32],
+ fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
+}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-
Required Methods§
Sourcefn from_z32(s: &str) -> Result<NodeId, DecodingError>
Parses a [NodeId] from [z-base-32] encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
\ No newline at end of file
+Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
\ No newline at end of file
diff --git a/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html b/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
index 41f454cb89..2918f99189 100644
--- a/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
+++ b/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
@@ -2,7 +2,7 @@
Ping([u8; 8]),
Pong([u8; 8]),
Datagrams {
- dst_node_id: NodeId,
+ dst_node_id: NodeId,
datagrams: Datagrams,
},
}Expand description
Messages that clients send to relays.
@@ -11,7 +11,7 @@ other side with a §Pong([u8; 8])
Reply to a RelayToClientMsg::Ping from a server
with the payload sent previously in the ping.
§Datagrams
Request from the client to relay datagrams to given remote node.
-Fields
§dst_node_id: NodeIdThe remote node to relay to.
+Trait Implementations§
Source§impl Clone for ClientToRelayMsg
Source§fn clone(&self) -> ClientToRelayMsg
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for ClientToRelayMsg
Source§impl PartialEq for ClientToRelayMsg
Source§impl Sink<ClientToRelayMsg> for Client
Source§fn poll_ready(
diff --git a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
index bbe27aa923..aecef8901d 100644
--- a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
+++ b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
@@ -1,9 +1,9 @@
RelayToClientMsg in iroh_relay::protos::relay - Rust pub enum RelayToClientMsg {
Datagrams {
- remote_node_id: NodeId,
+ remote_node_id: NodeId,
datagrams: Datagrams,
},
- NodeGone(NodeId),
+ NodeGone(NodeId),
Health {
problem: String,
},
@@ -15,9 +15,9 @@
Pong([u8; 8]),
}
Expand description
The messages that a relay sends to clients or the clients receive from the relay.
Variants§
§Datagrams
Represents datagrams sent from relays (originally sent to them by another client).
-Fields
§NodeGone(NodeId)
Indicates that the client identified by the underlying public key had previously sent you a
packet but has now disconnected from the relay.
§Health
A one-way message from relay to client, declaring the connection health state.
Fields
§problem: StringIf set, is a description of why the connection is unhealthy.
diff --git a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
index 3601d02512..2f4eeb9a4d 100644
--- a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
+++ b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
@@ -1,10 +1,10 @@
AccessConfig in iroh_relay::server - Rust 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
Implementations§
Source§impl AccessConfig
Sourcepub async fn is_allowed(&self, node: NodeId) -> bool
Is this node allowed?
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for AccessConfig
§impl !RefUnwindSafe for AccessConfig
§impl Send for AccessConfig
§impl Sync for AccessConfig
§impl Unpin for AccessConfig
§impl !UnwindSafe for AccessConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/server/struct.Server.html b/pr/3465/docs/iroh_relay/server/struct.Server.html
index f630205751..d4e45ff773 100644
--- a/pr/3465/docs/iroh_relay/server/struct.Server.html
+++ b/pr/3465/docs/iroh_relay/server/struct.Server.html
@@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.
Sourcepub fn http_addr(&self) -> Option<SocketAddr>
The socket address the HTTP server is listening on.
Sourcepub fn quic_addr(&self) -> Option<SocketAddr>
The socket address the QUIC server is listening on.
Sourcepub fn certificates(&self) -> Option<Vec<CertificateDer<'static>>>
The certificates chain if configured with manual TLS certificates.
-Sourcepub fn https_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s https [RelayUrl].
+Sourcepub 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.
-Sourcepub fn http_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s http [RelayUrl].
+Sourcepub 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.
Sourcepub fn metrics(&self) -> &RelayMetrics
Returns the metrics collected in the relay server.
Trait Implementations§
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 Twhere
diff --git a/pr/3465/docs/iroh_relay/struct.RelayMap.html b/pr/3465/docs/iroh_relay/struct.RelayMap.html
index f9778ec53a..35f0e5e28b 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayMap.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayMap.html
@@ -1,15 +1,15 @@
RelayMap in iroh_relay - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
-Implementations§
Source§impl RelayMap
Implementations§
Trait Implementations§
Trait Implementations§
Source§impl FromIterator<RelayNode> for RelayMap
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§impl FromIterator<RelayUrl> for RelayMap
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/3465/docs/iroh_relay/struct.RelayNode.html b/pr/3465/docs/iroh_relay/struct.RelayNode.html
index 541da09b8c..8ba5cf3bc8 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayNode.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayNode.html
@@ -1,14 +1,14 @@
RelayNode in iroh_relay - Rust pub struct RelayNode {
- pub url: RelayUrl,
+ pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
-Fields§
§url: RelayUrlThe [RelayUrl] where this relay server can be dialed.
+Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
§quic: Option<RelayQuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
Trait Implementations§
Source§impl<'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 moreSource§impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayNode> for RelayMap
Source§impl Ord for RelayNode
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/3465/docs/trait.impl/core/convert/trait.From.js b/pr/3465/docs/trait.impl/core/convert/trait.From.js
index 602aaa99e5..bfeaa20a83 100644
--- a/pr/3465/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/3465/docs/trait.impl/core/convert/trait.From.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RecvError> for Error"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
+ var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["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<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<RecvError> for Error"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[7257,4938,10893]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[7257,4938,11503]}
\ No newline at end of file
diff --git a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
index bdc1bf6fa3..8c038d8a54 100644
--- a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
+++ b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayNode> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]);
+ var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayNode> for RelayMap"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[1356]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[1478]}
\ No newline at end of file
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html b/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
index b3f095d994..b3969acf4e 100644
--- a/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
+++ b/pr/3465/docs/iroh_relay/node_info/trait.NodeIdExt.html
@@ -1,9 +1,9 @@
NodeIdExt in iroh_relay::node_info - Rust pub trait NodeIdExt {
// Required methods
fn to_z32(&self) -> String;
- fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
-}
Expand description
Extension methods for [NodeId] to encode to and decode from [z32],
+ fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
+}Expand description
Extension methods for NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-
Required Methods§
Sourcefn from_z32(s: &str) -> Result<NodeId, DecodingError>
Parses a [NodeId] from [z-base-32] encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
\ No newline at end of file
+Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
\ No newline at end of file
diff --git a/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html b/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
index 41f454cb89..2918f99189 100644
--- a/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
+++ b/pr/3465/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html
@@ -2,7 +2,7 @@
Ping([u8; 8]),
Pong([u8; 8]),
Datagrams {
- dst_node_id: NodeId,
+ dst_node_id: NodeId,
datagrams: Datagrams,
},
}Expand description
Messages that clients send to relays.
@@ -11,7 +11,7 @@ other side with a §Pong([u8; 8])
Reply to a RelayToClientMsg::Ping from a server
with the payload sent previously in the ping.
§Datagrams
Request from the client to relay datagrams to given remote node.
-Fields
§dst_node_id: NodeIdThe remote node to relay to.
+Trait Implementations§
Source§impl Clone for ClientToRelayMsg
Source§fn clone(&self) -> ClientToRelayMsg
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for ClientToRelayMsg
Source§impl PartialEq for ClientToRelayMsg
Source§impl Sink<ClientToRelayMsg> for Client
Source§fn poll_ready(
diff --git a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
index bbe27aa923..aecef8901d 100644
--- a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
+++ b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
@@ -1,9 +1,9 @@
RelayToClientMsg in iroh_relay::protos::relay - Rust pub enum RelayToClientMsg {
Datagrams {
- remote_node_id: NodeId,
+ remote_node_id: NodeId,
datagrams: Datagrams,
},
- NodeGone(NodeId),
+ NodeGone(NodeId),
Health {
problem: String,
},
@@ -15,9 +15,9 @@
Pong([u8; 8]),
}
Expand description
The messages that a relay sends to clients or the clients receive from the relay.
Variants§
§Datagrams
Represents datagrams sent from relays (originally sent to them by another client).
-Fields
§NodeGone(NodeId)
Indicates that the client identified by the underlying public key had previously sent you a
packet but has now disconnected from the relay.
§Health
A one-way message from relay to client, declaring the connection health state.
Fields
§problem: StringIf set, is a description of why the connection is unhealthy.
diff --git a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
index 3601d02512..2f4eeb9a4d 100644
--- a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
+++ b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
@@ -1,10 +1,10 @@
AccessConfig in iroh_relay::server - Rust 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
Implementations§
Source§impl AccessConfig
Sourcepub async fn is_allowed(&self, node: NodeId) -> bool
Is this node allowed?
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for AccessConfig
§impl !RefUnwindSafe for AccessConfig
§impl Send for AccessConfig
§impl Sync for AccessConfig
§impl Unpin for AccessConfig
§impl !UnwindSafe for AccessConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/server/struct.Server.html b/pr/3465/docs/iroh_relay/server/struct.Server.html
index f630205751..d4e45ff773 100644
--- a/pr/3465/docs/iroh_relay/server/struct.Server.html
+++ b/pr/3465/docs/iroh_relay/server/struct.Server.html
@@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.
Sourcepub fn http_addr(&self) -> Option<SocketAddr>
The socket address the HTTP server is listening on.
Sourcepub fn quic_addr(&self) -> Option<SocketAddr>
The socket address the QUIC server is listening on.
Sourcepub fn certificates(&self) -> Option<Vec<CertificateDer<'static>>>
The certificates chain if configured with manual TLS certificates.
-Sourcepub fn https_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s https [RelayUrl].
+Sourcepub 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.
-Sourcepub fn http_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s http [RelayUrl].
+Sourcepub 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.
Sourcepub fn metrics(&self) -> &RelayMetrics
Returns the metrics collected in the relay server.
Trait Implementations§
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 Twhere
diff --git a/pr/3465/docs/iroh_relay/struct.RelayMap.html b/pr/3465/docs/iroh_relay/struct.RelayMap.html
index f9778ec53a..35f0e5e28b 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayMap.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayMap.html
@@ -1,15 +1,15 @@
RelayMap in iroh_relay - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
-Implementations§
Source§impl RelayMap
Implementations§
Trait Implementations§
Trait Implementations§
Source§impl FromIterator<RelayNode> for RelayMap
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§impl FromIterator<RelayUrl> for RelayMap
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/3465/docs/iroh_relay/struct.RelayNode.html b/pr/3465/docs/iroh_relay/struct.RelayNode.html
index 541da09b8c..8ba5cf3bc8 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayNode.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayNode.html
@@ -1,14 +1,14 @@
RelayNode in iroh_relay - Rust pub struct RelayNode {
- pub url: RelayUrl,
+ pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
-Fields§
§url: RelayUrlThe [RelayUrl] where this relay server can be dialed.
+Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
§quic: Option<RelayQuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
Trait Implementations§
Source§impl<'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 moreSource§impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayNode> for RelayMap
Source§impl Ord for RelayNode
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/3465/docs/trait.impl/core/convert/trait.From.js b/pr/3465/docs/trait.impl/core/convert/trait.From.js
index 602aaa99e5..bfeaa20a83 100644
--- a/pr/3465/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/3465/docs/trait.impl/core/convert/trait.From.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RecvError> for Error"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
+ var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["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<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<RecvError> for Error"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[7257,4938,10893]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[7257,4938,11503]}
\ No newline at end of file
diff --git a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
index bdc1bf6fa3..8c038d8a54 100644
--- a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
+++ b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayNode> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]);
+ var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayNode> for RelayMap"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[1356]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[1478]}
\ No newline at end of file
pub trait NodeIdExt {
// Required methods
fn to_z32(&self) -> String;
- fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
-}Expand description
Extension methods for [ Extension methods for NodeId] to encode to and decode from [z32],
+ fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
+}Expand description
NodeId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
Required Methods§
Sourcefn from_z32(s: &str) -> Result<NodeId, DecodingError>
fn from_z32(s: &str) -> Result<NodeId, DecodingError>
Parses a [NodeId] from [z-base-32] encoding.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
Expand description
Messages that clients send to relays.
@@ -11,7 +11,7 @@ other side with a §Pong([u8; 8])
Reply to a RelayToClientMsg::Ping from a server
with the payload sent previously in the ping.
Datagrams
Request from the client to relay datagrams to given remote node.
-Fields
dst_node_id: NodeIdThe remote node to relay to.
+Trait Implementations§
Source§impl Clone for ClientToRelayMsg
impl Clone for ClientToRelayMsg
Source§fn clone(&self) -> ClientToRelayMsg
fn clone(&self) -> ClientToRelayMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientToRelayMsg
impl Debug for ClientToRelayMsg
Source§impl PartialEq for ClientToRelayMsg
impl PartialEq for ClientToRelayMsg
Source§impl Sink<ClientToRelayMsg> for Client
impl Sink<ClientToRelayMsg> for Client
Source§fn poll_ready(
diff --git a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
index bbe27aa923..aecef8901d 100644
--- a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
+++ b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
@@ -1,9 +1,9 @@
RelayToClientMsg in iroh_relay::protos::relay - Rust pub enum RelayToClientMsg {
Datagrams {
- remote_node_id: NodeId,
+ remote_node_id: NodeId,
datagrams: Datagrams,
},
- NodeGone(NodeId),
+ NodeGone(NodeId),
Health {
problem: String,
},
@@ -15,9 +15,9 @@
Pong([u8; 8]),
}
Expand description
The messages that a relay sends to clients or the clients receive from the relay.
Variants§
§Datagrams
Represents datagrams sent from relays (originally sent to them by another client).
-Fields
§NodeGone(NodeId)
Indicates that the client identified by the underlying public key had previously sent you a
packet but has now disconnected from the relay.
§Health
A one-way message from relay to client, declaring the connection health state.
Fields
§problem: StringIf set, is a description of why the connection is unhealthy.
diff --git a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
index 3601d02512..2f4eeb9a4d 100644
--- a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
+++ b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
@@ -1,10 +1,10 @@
AccessConfig in iroh_relay::server - Rust 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
Implementations§
Source§impl AccessConfig
Sourcepub async fn is_allowed(&self, node: NodeId) -> bool
Is this node allowed?
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for AccessConfig
§impl !RefUnwindSafe for AccessConfig
§impl Send for AccessConfig
§impl Sync for AccessConfig
§impl Unpin for AccessConfig
§impl !UnwindSafe for AccessConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/server/struct.Server.html b/pr/3465/docs/iroh_relay/server/struct.Server.html
index f630205751..d4e45ff773 100644
--- a/pr/3465/docs/iroh_relay/server/struct.Server.html
+++ b/pr/3465/docs/iroh_relay/server/struct.Server.html
@@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.
Sourcepub fn http_addr(&self) -> Option<SocketAddr>
The socket address the HTTP server is listening on.
Sourcepub fn quic_addr(&self) -> Option<SocketAddr>
The socket address the QUIC server is listening on.
Sourcepub fn certificates(&self) -> Option<Vec<CertificateDer<'static>>>
The certificates chain if configured with manual TLS certificates.
-Sourcepub fn https_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s https [RelayUrl].
+Sourcepub 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.
-Sourcepub fn http_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s http [RelayUrl].
+Sourcepub 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.
Sourcepub fn metrics(&self) -> &RelayMetrics
Returns the metrics collected in the relay server.
Trait Implementations§
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 Twhere
diff --git a/pr/3465/docs/iroh_relay/struct.RelayMap.html b/pr/3465/docs/iroh_relay/struct.RelayMap.html
index f9778ec53a..35f0e5e28b 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayMap.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayMap.html
@@ -1,15 +1,15 @@
RelayMap in iroh_relay - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
-Implementations§
Source§impl RelayMap
Implementations§
Trait Implementations§
Trait Implementations§
Source§impl FromIterator<RelayNode> for RelayMap
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§impl FromIterator<RelayUrl> for RelayMap
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/3465/docs/iroh_relay/struct.RelayNode.html b/pr/3465/docs/iroh_relay/struct.RelayNode.html
index 541da09b8c..8ba5cf3bc8 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayNode.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayNode.html
@@ -1,14 +1,14 @@
RelayNode in iroh_relay - Rust pub struct RelayNode {
- pub url: RelayUrl,
+ pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
-Fields§
§url: RelayUrlThe [RelayUrl] where this relay server can be dialed.
+Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
§quic: Option<RelayQuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
Trait Implementations§
Source§impl<'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 moreSource§impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayNode> for RelayMap
Source§impl Ord for RelayNode
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/3465/docs/trait.impl/core/convert/trait.From.js b/pr/3465/docs/trait.impl/core/convert/trait.From.js
index 602aaa99e5..bfeaa20a83 100644
--- a/pr/3465/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/3465/docs/trait.impl/core/convert/trait.From.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RecvError> for Error"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
+ var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["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<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<RecvError> for Error"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[7257,4938,10893]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[7257,4938,11503]}
\ No newline at end of file
diff --git a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
index bdc1bf6fa3..8c038d8a54 100644
--- a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
+++ b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayNode> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]);
+ var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayNode> for RelayMap"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[1356]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[1478]}
\ No newline at end of file
fn poll_ready(
diff --git a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
index bbe27aa923..aecef8901d 100644
--- a/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
+++ b/pr/3465/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html
@@ -1,9 +1,9 @@
RelayToClientMsg in iroh_relay::protos::relay - Rust pub enum RelayToClientMsg {
Datagrams {
- remote_node_id: NodeId,
+ remote_node_id: NodeId,
datagrams: Datagrams,
},
- NodeGone(NodeId),
+ NodeGone(NodeId),
Health {
problem: String,
},
@@ -15,9 +15,9 @@
Pong([u8; 8]),
}
Expand description
The messages that a relay sends to clients or the clients receive from the relay.
Variants§
§Datagrams
Represents datagrams sent from relays (originally sent to them by another client).
-Fields
§NodeGone(NodeId)
Indicates that the client identified by the underlying public key had previously sent you a
packet but has now disconnected from the relay.
§Health
A one-way message from relay to client, declaring the connection health state.
Fields
§problem: StringIf set, is a description of why the connection is unhealthy.
diff --git a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
index 3601d02512..2f4eeb9a4d 100644
--- a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
+++ b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html
@@ -1,10 +1,10 @@
AccessConfig in iroh_relay::server - Rust 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
Implementations§
Source§impl AccessConfig
Sourcepub async fn is_allowed(&self, node: NodeId) -> bool
Is this node allowed?
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for AccessConfig
§impl !RefUnwindSafe for AccessConfig
§impl Send for AccessConfig
§impl Sync for AccessConfig
§impl Unpin for AccessConfig
§impl !UnwindSafe for AccessConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/server/struct.Server.html b/pr/3465/docs/iroh_relay/server/struct.Server.html
index f630205751..d4e45ff773 100644
--- a/pr/3465/docs/iroh_relay/server/struct.Server.html
+++ b/pr/3465/docs/iroh_relay/server/struct.Server.html
@@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.
Sourcepub fn http_addr(&self) -> Option<SocketAddr>
The socket address the HTTP server is listening on.
Sourcepub fn quic_addr(&self) -> Option<SocketAddr>
The socket address the QUIC server is listening on.
Sourcepub fn certificates(&self) -> Option<Vec<CertificateDer<'static>>>
The certificates chain if configured with manual TLS certificates.
-Sourcepub fn https_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s https [RelayUrl].
+Sourcepub 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.
-Sourcepub fn http_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
Get the server’s http [RelayUrl].
+Sourcepub 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.
Sourcepub fn metrics(&self) -> &RelayMetrics
Returns the metrics collected in the relay server.
Trait Implementations§
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 Twhere
diff --git a/pr/3465/docs/iroh_relay/struct.RelayMap.html b/pr/3465/docs/iroh_relay/struct.RelayMap.html
index f9778ec53a..35f0e5e28b 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayMap.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayMap.html
@@ -1,15 +1,15 @@
RelayMap in iroh_relay - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
-Implementations§
Source§impl RelayMap
Implementations§
Trait Implementations§
Trait Implementations§
Source§impl FromIterator<RelayNode> for RelayMap
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§impl FromIterator<RelayUrl> for RelayMap
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/3465/docs/iroh_relay/struct.RelayNode.html b/pr/3465/docs/iroh_relay/struct.RelayNode.html
index 541da09b8c..8ba5cf3bc8 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayNode.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayNode.html
@@ -1,14 +1,14 @@
RelayNode in iroh_relay - Rust pub struct RelayNode {
- pub url: RelayUrl,
+ pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
-Fields§
§url: RelayUrlThe [RelayUrl] where this relay server can be dialed.
+Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
§quic: Option<RelayQuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
Trait Implementations§
Source§impl<'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 moreSource§impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayNode> for RelayMap
Source§impl Ord for RelayNode
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/3465/docs/trait.impl/core/convert/trait.From.js b/pr/3465/docs/trait.impl/core/convert/trait.From.js
index 602aaa99e5..bfeaa20a83 100644
--- a/pr/3465/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/3465/docs/trait.impl/core/convert/trait.From.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RecvError> for Error"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
+ var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["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<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<RecvError> for Error"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[7257,4938,10893]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[7257,4938,11503]}
\ No newline at end of file
diff --git a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
index bdc1bf6fa3..8c038d8a54 100644
--- a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
+++ b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayNode> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]);
+ var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayNode> for RelayMap"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[1356]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[1478]}
\ No newline at end of file
pub enum RelayToClientMsg {
Datagrams {
- remote_node_id: NodeId,
+ remote_node_id: NodeId,
datagrams: Datagrams,
},
- NodeGone(NodeId),
+ NodeGone(NodeId),
Health {
problem: String,
},
@@ -15,9 +15,9 @@
Pong([u8; 8]),
}Expand description
The messages that a relay sends to clients or the clients receive from the relay.
Variants§
Datagrams
Represents datagrams sent from relays (originally sent to them by another client).
-Fields
NodeGone(NodeId)
Indicates that the client identified by the underlying public key had previously sent you a packet but has now disconnected from the relay.
Health
A one-way message from relay to client, declaring the connection health state.
Fields
problem: StringIf set, is a description of why the connection is unhealthy.
diff --git a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html index 3601d02512..2f4eeb9a4d 100644 --- a/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html +++ b/pr/3465/docs/iroh_relay/server/enum.AccessConfig.html @@ -1,10 +1,10 @@pub enum AccessConfig {
Everyone,
- Restricted(Box<dyn Fn(NodeId) -> Boxed<Access> + Send + Sync + 'static>),
+ Restricted(Box<dyn Fn(NodeId) -> Boxed<Access> + Send + Sync + 'static>),
}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
impl AccessConfig
Implementations§
Source§impl AccessConfig
impl AccessConfig
Sourcepub async fn is_allowed(&self, node: NodeId) -> bool
pub async fn is_allowed(&self, node: NodeId) -> bool
Is this node allowed?
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccessConfig
impl !RefUnwindSafe for AccessConfig
impl Send for AccessConfig
impl Sync for AccessConfig
impl Unpin for AccessConfig
impl !UnwindSafe for AccessConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/server/struct.Server.html b/pr/3465/docs/iroh_relay/server/struct.Server.html
index f630205751..d4e45ff773 100644
--- a/pr/3465/docs/iroh_relay/server/struct.Server.html
+++ b/pr/3465/docs/iroh_relay/server/struct.Server.html
@@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3465/docs/iroh_relay/server/struct.Server.html b/pr/3465/docs/iroh_relay/server/struct.Server.html
index f630205751..d4e45ff773 100644
--- a/pr/3465/docs/iroh_relay/server/struct.Server.html
+++ b/pr/3465/docs/iroh_relay/server/struct.Server.html
@@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.
Sourcepub fn http_addr(&self) -> Option<SocketAddr>
pub fn http_addr(&self) -> Option<SocketAddr>
The socket address the HTTP server is listening on.
Sourcepub fn quic_addr(&self) -> Option<SocketAddr>
pub fn quic_addr(&self) -> Option<SocketAddr>
The socket address the QUIC server is listening on.
Sourcepub fn certificates(&self) -> Option<Vec<CertificateDer<'static>>>
pub fn certificates(&self) -> Option<Vec<CertificateDer<'static>>>
The certificates chain if configured with manual TLS certificates.
-Sourcepub fn https_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
pub fn https_url(&self) -> Option<RelayUrl>
test-utils only.Get the server’s https [RelayUrl].
Sourcepub fn https_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
pub fn https_url(&self) -> Option<RelayUrl>
test-utils only.Get the server’s https RelayUrl.
This uses Self::https_addr so it’s mostly useful for local development.
Sourcepub fn http_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
pub fn http_url(&self) -> Option<RelayUrl>
test-utils only.Get the server’s http [RelayUrl].
Sourcepub fn http_url(&self) -> Option<RelayUrl>
Available on crate feature test-utils only.
pub fn http_url(&self) -> Option<RelayUrl>
test-utils only.Get the server’s http RelayUrl.
This uses Self::http_addr so it’s mostly useful for local development.
Sourcepub fn metrics(&self) -> &RelayMetrics
pub fn metrics(&self) -> &RelayMetrics
Returns the metrics collected in the relay server.
Trait Implementations§
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 Twhere
diff --git a/pr/3465/docs/iroh_relay/struct.RelayMap.html b/pr/3465/docs/iroh_relay/struct.RelayMap.html
index f9778ec53a..35f0e5e28b 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayMap.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayMap.html
@@ -1,15 +1,15 @@
RelayMap in iroh_relay - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
-Implementations§
Source§impl RelayMap
Implementations§
Trait Implementations§
Trait Implementations§
Source§impl FromIterator<RelayNode> for RelayMap
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§impl FromIterator<RelayUrl> for RelayMap
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/3465/docs/iroh_relay/struct.RelayNode.html b/pr/3465/docs/iroh_relay/struct.RelayNode.html
index 541da09b8c..8ba5cf3bc8 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayNode.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayNode.html
@@ -1,14 +1,14 @@
RelayNode in iroh_relay - Rust pub struct RelayNode {
- pub url: RelayUrl,
+ pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
-Fields§
§url: RelayUrlThe [RelayUrl] where this relay server can be dialed.
+Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
§quic: Option<RelayQuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
Trait Implementations§
Source§impl<'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 moreSource§impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayNode> for RelayMap
Source§impl Ord for RelayNode
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/3465/docs/trait.impl/core/convert/trait.From.js b/pr/3465/docs/trait.impl/core/convert/trait.From.js
index 602aaa99e5..bfeaa20a83 100644
--- a/pr/3465/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/3465/docs/trait.impl/core/convert/trait.From.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RecvError> for Error"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
+ var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["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<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<RecvError> for Error"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[7257,4938,10893]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[7257,4938,11503]}
\ No newline at end of file
diff --git a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
index bdc1bf6fa3..8c038d8a54 100644
--- a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
+++ b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayNode> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]);
+ var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayNode> for RelayMap"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[1356]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[1478]}
\ No newline at end of file
impl<T> Any for Twhere
diff --git a/pr/3465/docs/iroh_relay/struct.RelayMap.html b/pr/3465/docs/iroh_relay/struct.RelayMap.html
index f9778ec53a..35f0e5e28b 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayMap.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayMap.html
@@ -1,15 +1,15 @@
RelayMap in iroh_relay - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
-Implementations§
Source§impl RelayMap
Implementations§
Trait Implementations§
Trait Implementations§
Source§impl FromIterator<RelayNode> for RelayMap
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§impl FromIterator<RelayUrl> for RelayMap
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/3465/docs/iroh_relay/struct.RelayNode.html b/pr/3465/docs/iroh_relay/struct.RelayNode.html
index 541da09b8c..8ba5cf3bc8 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayNode.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayNode.html
@@ -1,14 +1,14 @@
RelayNode in iroh_relay - Rust pub struct RelayNode {
- pub url: RelayUrl,
+ pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
-Fields§
§url: RelayUrlThe [RelayUrl] where this relay server can be dialed.
+Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
§quic: Option<RelayQuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
Trait Implementations§
Source§impl<'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 moreSource§impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayNode> for RelayMap
Source§impl Ord for RelayNode
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/3465/docs/trait.impl/core/convert/trait.From.js b/pr/3465/docs/trait.impl/core/convert/trait.From.js
index 602aaa99e5..bfeaa20a83 100644
--- a/pr/3465/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/3465/docs/trait.impl/core/convert/trait.From.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RecvError> for Error"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
+ var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["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<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<RecvError> for Error"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[7257,4938,10893]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[7257,4938,11503]}
\ No newline at end of file
diff --git a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
index bdc1bf6fa3..8c038d8a54 100644
--- a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
+++ b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayNode> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]);
+ var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayNode> for RelayMap"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[1356]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[1478]}
\ No newline at end of file
pub struct RelayMap { /* private fields */ }Expand description
Configuration of all the relay servers that can be used.
-Implementations§
Source§impl RelayMap
impl RelayMap
Implementations§
Trait Implementations§
Trait Implementations§
Source§impl FromIterator<RelayNode> for RelayMap
impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayUrl> for RelayMap
impl FromIterator<RelayUrl> for RelayMap
Source§fn from_iter<T: IntoIterator<Item = RelayUrl>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = RelayUrl>>(iter: T) -> Self
Creates a RelayMap from an iterator of [RelayUrl].
Source§impl FromIterator<RelayNode> for RelayMap
impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayUrl> for RelayMap
impl FromIterator<RelayUrl> for RelayMap
Source§impl PartialEq for RelayMap
impl PartialEq for RelayMap
Source§fn eq(&self, other: &RelayMap) -> bool
fn eq(&self, other: &RelayMap) -> bool
self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
!=. The default implementation is almost always sufficient,
diff --git a/pr/3465/docs/iroh_relay/struct.RelayNode.html b/pr/3465/docs/iroh_relay/struct.RelayNode.html
index 541da09b8c..8ba5cf3bc8 100644
--- a/pr/3465/docs/iroh_relay/struct.RelayNode.html
+++ b/pr/3465/docs/iroh_relay/struct.RelayNode.html
@@ -1,14 +1,14 @@
pub struct RelayNode {
- pub url: RelayUrl,
+ pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
-Fields§
§url: RelayUrlThe [RelayUrl] where this relay server can be dialed.
Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
quic: Option<RelayQuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RelayNode
impl<'de> Deserialize<'de> for RelayNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Source§impl FromIterator<RelayNode> for RelayMap
impl FromIterator<RelayNode> for RelayMap
Source§impl FromIterator<RelayNode> for RelayMap
impl FromIterator<RelayNode> for RelayMap
Source§impl Ord for RelayNode
impl Ord for RelayNode
Source§impl PartialEq for RelayNode
impl PartialEq for RelayNode
Source§fn eq(&self, other: &RelayNode) -> bool
fn eq(&self, other: &RelayNode) -> bool
self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
!=. The default implementation is almost always sufficient,
diff --git a/pr/3465/docs/trait.impl/core/convert/trait.From.js b/pr/3465/docs/trait.impl/core/convert/trait.From.js
index 602aaa99e5..bfeaa20a83 100644
--- a/pr/3465/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/3465/docs/trait.impl/core/convert/trait.From.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["impl From<NodeInfo> for NodeAddr"],["impl From<RelayNode> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<NodeAddr> for NodeData"],["impl From<NodeAddr> for NodeInfo"],["impl From<RecvError> for Error"],["impl From<RelayUrl> for RelayMap"],["impl From<RelayUrl> for RelayNode"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
+ var implementors = Object.fromEntries([["iroh",[["impl From<IntoDiscoveryError> for BindError"],["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 AcceptError"],["impl From<Box<dyn Error + Send + Sync>> for AcceptError"],["impl From<Error> for AcceptError"],["impl From<DiscoveryItem> for NodeInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteInfo> for NodeAddr"],["impl From<RemoteNodeIdError> for AcceptError"],["impl<T> From<T> for ConcurrentDiscovery"],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["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 ParseError"],["impl From<Error> for KeyParsingError"],["impl From<Error> for ParseError"],["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<DnsError> for DialError"],["impl From<DecodingError> for ParseError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for RecvError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Error> for DialError"],["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<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["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<RecvError> for Error"],["impl From<ResolveError> for DnsError"],["impl From<SignedPacketBuildError> for EncodingError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[7257,4938,10893]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[7257,4938,11503]}
\ No newline at end of file
diff --git a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
index bdc1bf6fa3..8c038d8a54 100644
--- a/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
+++ b/pr/3465/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js
@@ -1,9 +1,9 @@
(function() {
- var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayNode> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]);
+ var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayNode> for RelayMap"]]]]);
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
-//{"start":57,"fragment_lengths":[1356]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[1478]}
\ No newline at end of file