diff --git a/pr/3460/docs/help.html b/pr/3460/docs/help.html index 47be7dd0a4..ec1ee32b0e 100644 --- a/pr/3460/docs/help.html +++ b/pr/3460/docs/help.html @@ -1 +1 @@ -
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Quinn(Connection),
-}pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Quinn(Endpoint),
-}pub async fn connect_client(
- server_addr: NodeAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: NodeAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Create a client endpoint and client connection
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>Take the provided endpoint and run the server
+pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (NodeAddr, Endpoint)Creates a server endpoint which runs on the given runtime
+) -> (NodeAddr, Endpoint)Creates a server endpoint which runs on the given runtime
pub struct ClientBuilder { /* private fields */ }Build a Client.
Create a new ClientBuilder
timeout is applied as stated in
summary of all errors otherwise.
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.
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/3460/docs/iroh_relay/index.html b/pr/3460/docs/iroh_relay/index.html
index 75301d8145..bddfdcd376 100644
--- a/pr/3460/docs/iroh_relay/index.html
+++ b/pr/3460/docs/iroh_relay/index.html
@@ -25,6 +25,6 @@ Tailscale.
pub use protos::relay::MAX_PACKET_SIZE;Client, which allows to establish connections to a relay server.wasm_browserNodeId].pub use protos::relay::MAX_PACKET_SIZE;Client, which allows to establish connections to a relay server.wasm_browserNodeId.serverSupport for handling DNS resource records for dialing by [NodeId].
Dialing by [NodeId] is supported by iroh nodes publishing Pkarr records to DNS
+
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:
UserData.UserData::MAX_LENGTH bytes.wasm_browserNodeId] to encode to and decode from [z32],
+UserData.UserData::MAX_LENGTH bytes.wasm_browserpub struct NodeData { /* private fields */ }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.
Creates a new NodeData with a relay URL and a set of direct addresses.
Sets the relay URL and returns the updated node data.
+Sets the relay URL and returns the updated node data.
Sets the direct addresses and returns the updated node data.
Sets the user-defined data and returns the updated node data.
-Returns the optional user-defined data of the node.
Returns the direct addresses of the node.
Removes all direct addresses from the node data.
@@ -22,9 +22,9 @@ node. See IntoIterator<Item = SocketAddr>, )Adds direct addresses to the node data.
-Sets the relay URL of the node data.
+Sets the relay URL of the node data.
Sets the user-defined data of the node data.
-pub struct NodeInfo {
- pub node_id: NodeId,
+ pub node_id: NodeId,
pub data: NodeData,
}Information about a node that may be published to and resolved from discovery services.
-This struct couples a [NodeId] with its associated NodeData.
node_id: NodeIdThe [NodeId] of the node this is about.
node_id: NodeIdThe NodeId of the node this is about.
data: NodeDataThe information published about the node.
-Creates a new NodeInfo from its parts.
Sets the relay URL and returns the updated node info.
+Creates a new NodeInfo from its parts.
Sets the relay URL and returns the updated node info.
Sets the direct addresses and returns the updated node info.
Sets the user-defined data and returns the updated node info.
-Converts into a [NodeAddr] by cloning the needed fields.
Converts into a [NodeAddr] without cloning.
Converts into a NodeAddr by cloning the needed fields.
Converts into a NodeAddr without cloning.
wasm_browser only.Parses a NodeInfo from a TXT records lookup.
Parses a NodeInfo from a [pkarr::SignedPacket].
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a [SecretKey].
This constructs a DNS packet and signs it with a SecretKey.
Converts into a list of {key}={value} strings.
Returns the optional user-defined data of the node.
Returns the direct addresses of the node.
Removes all direct addresses from the node data.
@@ -34,9 +34,9 @@ &mut self, addrs: impl IntoIterator<Item = SocketAddr>, )Adds direct addresses to the node data.
-Sets the relay URL of the node data.
+Sets the relay URL of the node data.
Sets the user-defined data of the node data.
-pub trait NodeIdExt {
// Required methods
fn to_z32(&self) -> String;
- fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
-}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.
Parses a [NodeId] from [z-base-32] encoding.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Messages that clients send to relays.
@@ -11,7 +11,7 @@ other side with a §Reply to a RelayToClientMsg::Ping from a server
with the payload sent previously in the ping.
Request from the client to relay datagrams to given remote node.
-dst_node_id: NodeIdThe remote node to relay to.
+source. Read morepub 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]),
}The messages that a relay sends to clients or the clients receive from the relay.
Represents datagrams sent from relays (originally sent to them by another client).
-Indicates that the client identified by the underlying public key had previously sent you a packet but has now disconnected from the relay.
A one-way message from relay to client, declaring the connection health state.
problem: StringIf set, is a description of why the connection is unhealthy.
diff --git a/pr/3460/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3460/docs/iroh_relay/server/enum.AccessConfig.html index 3601d02512..2f4eeb9a4d 100644 --- a/pr/3460/docs/iroh_relay/server/enum.AccessConfig.html +++ b/pr/3460/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.Controls which nodes are allowed to use the relay.
Everyone
-Only nodes for which the function returns Access::Allow.
Is this node allowed?
The socket address the HTTP server is listening on.
The socket address the QUIC server is listening on.
The certificates chain if configured with manual TLS certificates.
-test-utils only.Get the server’s https [RelayUrl].
test-utils only.Get the server’s https RelayUrl.
This uses Self::https_addr so it’s mostly useful for local development.
test-utils only.Get the server’s http [RelayUrl].
test-utils only.Get the server’s http RelayUrl.
This uses Self::http_addr so it’s mostly useful for local development.
Returns the metrics collected in the relay server.
pub struct RelayMap { /* private fields */ }Configuration of all the relay servers that can be used.
-Creates a RelayMap from an iterator of [RelayUrl].
self and other values to be equal, and is used by ==.!=. The default implementation is almost always sufficient,
diff --git a/pr/3460/docs/iroh_relay/struct.RelayNode.html b/pr/3460/docs/iroh_relay/struct.RelayNode.html
index 1abc6132d1..168ddc4c34 100644
--- a/pr/3460/docs/iroh_relay/struct.RelayNode.html
+++ b/pr/3460/docs/iroh_relay/struct.RelayNode.html
@@ -1,14 +1,14 @@
pub struct RelayNode {
- pub url: RelayUrl,
+ pub url: RelayUrl,
pub quic: Option<RelayQuicConfig>,
}Information on a specific relay server.
Includes the Url where it can be dialed.
-url: RelayUrlThe [RelayUrl] where this relay server can be dialed.
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.
self and other values to be equal, and is used by ==.!=. The default implementation is almost always sufficient,
diff --git a/pr/3460/docs/settings.html b/pr/3460/docs/settings.html
index 0049af3c74..b4d5f9de23 100644
--- a/pr/3460/docs/settings.html
+++ b/pr/3460/docs/settings.html
@@ -1 +1 @@
-