mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-01 08:01:45 +00:00
deploy: 1f5693b8d7f17d16d641a9aade7f91233856498b
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Default TTL for the records in the pkarr signed packet."><title>DEFAULT_PKARR_TTL in iroh::address_lookup::pkarr - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">DEFAULT_PKARR_TTL</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>address_<wbr>lookup::<wbr>pkarr</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh</a>::<wbr><a href="../index.html">address_lookup</a>::<wbr><a href="index.html">pkarr</a></div><h1>Constant <span class="constant">DEFAULT_<wbr>PKARR_<wbr>TTL</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh/address_lookup/pkarr.rs.html#153">Source</a> </span></div><pre class="rust item-decl"><code>pub const DEFAULT_PKARR_TTL: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a> = 30;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Default TTL for the records in the pkarr signed packet.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Default TTL for the records in the pkarr signed packet."><title>DEFAULT_PKARR_TTL in iroh::address_lookup::pkarr - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">DEFAULT_PKARR_TTL</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>address_<wbr>lookup::<wbr>pkarr</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh</a>::<wbr><a href="../index.html">address_lookup</a>::<wbr><a href="index.html">pkarr</a></div><h1>Constant <span class="constant">DEFAULT_<wbr>PKARR_<wbr>TTL</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh/address_lookup/pkarr.rs.html#152">Source</a> </span></div><pre class="rust item-decl"><code>pub const DEFAULT_PKARR_TTL: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a> = 30;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Default TTL for the records in the pkarr signed packet.</p>
|
||||
<p>The Time To Live (TTL) tells DNS caches how long to store a record. It is ignored by the
|
||||
<code>iroh-dns-server</code>, e.g. as running on <a href="constant.N0_DNS_PKARR_RELAY_PROD.html" title="constant iroh::address_lookup::pkarr::N0_DNS_PKARR_RELAY_PROD"><code>N0_DNS_PKARR_RELAY_PROD</code></a>, as the home server
|
||||
keeps the records for the domain. When using the pkarr relay no DNS is involved and the
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Interval in which to republish the endpoint info even if unchanged: 5 minutes."><title>DEFAULT_REPUBLISH_INTERVAL in iroh::address_lookup::pkarr - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">DEFAULT_REPUBLISH_INTERVAL</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>address_<wbr>lookup::<wbr>pkarr</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh</a>::<wbr><a href="../index.html">address_lookup</a>::<wbr><a href="index.html">pkarr</a></div><h1>Constant <span class="constant">DEFAULT_<wbr>REPUBLISH_<wbr>INTERVAL</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh/address_lookup/pkarr.rs.html#156">Source</a> </span></div><pre class="rust item-decl"><code>pub const DEFAULT_REPUBLISH_INTERVAL: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Interval in which to republish the endpoint info even if unchanged: 5 minutes.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Interval in which to republish the endpoint info even if unchanged: 5 minutes."><title>DEFAULT_REPUBLISH_INTERVAL in iroh::address_lookup::pkarr - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">DEFAULT_REPUBLISH_INTERVAL</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>address_<wbr>lookup::<wbr>pkarr</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh</a>::<wbr><a href="../index.html">address_lookup</a>::<wbr><a href="index.html">pkarr</a></div><h1>Constant <span class="constant">DEFAULT_<wbr>REPUBLISH_<wbr>INTERVAL</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh/address_lookup/pkarr.rs.html#155">Source</a> </span></div><pre class="rust item-decl"><code>pub const DEFAULT_REPUBLISH_INTERVAL: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Interval in which to republish the endpoint info even if unchanged: 5 minutes.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The production pkarr relay run by number 0."><title>N0_DNS_PKARR_RELAY_PROD in iroh::address_lookup::pkarr - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">N0_DNS_PKARR_RELAY_PROD</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>address_<wbr>lookup::<wbr>pkarr</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh</a>::<wbr><a href="../index.html">address_lookup</a>::<wbr><a href="index.html">pkarr</a></div><h1>Constant <span class="constant">N0_<wbr>DNS_<wbr>PKARR_<wbr>RELAY_<wbr>PROD</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh/address_lookup/pkarr.rs.html#137">Source</a> </span></div><pre class="rust item-decl"><code>pub const N0_DNS_PKARR_RELAY_PROD: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "https://dns.iroh.link/pkarr";</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The production pkarr relay run by <a href="https://n0.computer">number 0</a>.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The production pkarr relay run by number 0."><title>N0_DNS_PKARR_RELAY_PROD in iroh::address_lookup::pkarr - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">N0_DNS_PKARR_RELAY_PROD</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>address_<wbr>lookup::<wbr>pkarr</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh</a>::<wbr><a href="../index.html">address_lookup</a>::<wbr><a href="index.html">pkarr</a></div><h1>Constant <span class="constant">N0_<wbr>DNS_<wbr>PKARR_<wbr>RELAY_<wbr>PROD</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh/address_lookup/pkarr.rs.html#136">Source</a> </span></div><pre class="rust item-decl"><code>pub const N0_DNS_PKARR_RELAY_PROD: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "https://dns.iroh.link/pkarr";</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The production pkarr relay run by <a href="https://n0.computer">number 0</a>.</p>
|
||||
<p>This server is both a pkarr relay server as well as a DNS resolver, see the <a href="index.html" title="mod iroh::address_lookup::pkarr">module
|
||||
documentation</a>. However it does not interact with the Mainline DHT, so is a more
|
||||
central service. It is a reliable service to use for address lookup.</p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The testing pkarr relay run by number 0."><title>N0_DNS_PKARR_RELAY_STAGING in iroh::address_lookup::pkarr - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">N0_DNS_PKARR_RELAY_STAGING</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>address_<wbr>lookup::<wbr>pkarr</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh</a>::<wbr><a href="../index.html">address_lookup</a>::<wbr><a href="index.html">pkarr</a></div><h1>Constant <span class="constant">N0_<wbr>DNS_<wbr>PKARR_<wbr>RELAY_<wbr>STAGING</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh/address_lookup/pkarr.rs.html#144">Source</a> </span></div><pre class="rust item-decl"><code>pub const N0_DNS_PKARR_RELAY_STAGING: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "https://staging-dns.iroh.link/pkarr";</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The testing pkarr relay run by <a href="https://n0.computer">number 0</a>.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The testing pkarr relay run by number 0."><title>N0_DNS_PKARR_RELAY_STAGING in iroh::address_lookup::pkarr - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">N0_DNS_PKARR_RELAY_STAGING</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>address_<wbr>lookup::<wbr>pkarr</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh</a>::<wbr><a href="../index.html">address_lookup</a>::<wbr><a href="index.html">pkarr</a></div><h1>Constant <span class="constant">N0_<wbr>DNS_<wbr>PKARR_<wbr>RELAY_<wbr>STAGING</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh/address_lookup/pkarr.rs.html#143">Source</a> </span></div><pre class="rust item-decl"><code>pub const N0_DNS_PKARR_RELAY_STAGING: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "https://staging-dns.iroh.link/pkarr";</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The testing pkarr relay run by <a href="https://n0.computer">number 0</a>.</p>
|
||||
<p>This server operates similarly to <a href="constant.N0_DNS_PKARR_RELAY_PROD.html" title="constant iroh::address_lookup::pkarr::N0_DNS_PKARR_RELAY_PROD"><code>N0_DNS_PKARR_RELAY_PROD</code></a> but is not as reliable.
|
||||
It is meant for more experimental use and testing purposes.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -4,10 +4,10 @@ them to the BitTorrent Mainline DHT. See the <a href="../index.html" title="mod
|
||||
<p>This implements the <a href="../../trait.AddressLookup.html" title="trait iroh::address_lookup::AddressLookup"><code>AddressLookup</code></a> trait to be used as an address lookup service which can
|
||||
be used as both a publisher and resolver. Calling <a href="struct.DhtAddressLookup.html#method.publish" title="method iroh::address_lookup::pkarr::dht::DhtAddressLookup::publish"><code>DhtAddressLookup::publish</code></a> will start
|
||||
a background task that periodically publishes the endpoint address.</p>
|
||||
<p><a href="struct.DhtAddressLookup.html" title="struct iroh::address_lookup::pkarr::dht::DhtAddressLookup"><code>DhtAddressLookup</code></a> filters published addresses based on the endpoint’s relay
|
||||
configuration by default: when relays are enabled, only relay addresses are published
|
||||
(<a href="../../struct.AddrFilter.html#method.relay_only" title="associated function iroh::address_lookup::AddrFilter::relay_only"><code>AddrFilter::relay_only</code></a>); when relays are disabled, all addresses are published
|
||||
(<a href="../../struct.AddrFilter.html#method.unfiltered" title="associated function iroh::address_lookup::AddrFilter::unfiltered"><code>AddrFilter::unfiltered</code></a>). You can override this via <a href="struct.Builder.html#method.addr_filter" title="method iroh::address_lookup::pkarr::dht::Builder::addr_filter"><code>Builder::addr_filter</code></a>.</p>
|
||||
<p><a href="struct.DhtAddressLookup.html" title="struct iroh::address_lookup::pkarr::dht::DhtAddressLookup"><code>DhtAddressLookup</code></a> filters published addresses: only relay addresses are published by default.
|
||||
To change this behavior, use <a href="struct.Builder.html#method.addr_filter" title="method iroh::address_lookup::pkarr::dht::Builder::addr_filter"><code>Builder::addr_filter</code></a> and set it to e.g. <a href="../../struct.AddrFilter.html#method.unfiltered" title="associated function iroh::address_lookup::AddrFilter::unfiltered"><code>AddrFilter::unfiltered</code></a>.
|
||||
This can be useful to enable publishing IP addresses if the iroh endpoint is reachable via public
|
||||
IP addresses.</p>
|
||||
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-DhtAddressLookup" class="impl"><a class="src rightside" href="../../../../src/iroh/address_lookup/pkarr/dht.rs.html#262-300">Source</a><a href="#impl-DhtAddressLookup" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.DhtAddressLookup.html" title="struct iroh::address_lookup::pkarr::dht::DhtAddressLookup">DhtAddressLookup</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.builder" class="method"><a class="src rightside" href="../../../../src/iroh/address_lookup/pkarr/dht.rs.html#264-266">Source</a><h4 class="code-header">pub fn <a href="#method.builder" class="fn">builder</a>() -> <a class="struct" href="struct.Builder.html" title="struct iroh::address_lookup::pkarr::dht::Builder">Builder</a></h4></section></summary><div class="docblock"><p>Creates a new builder for <a href="struct.DhtAddressLookup.html" title="struct iroh::address_lookup::pkarr::dht::DhtAddressLookup"><code>DhtAddressLookup</code></a>.</p>
|
||||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-AddressLookup-for-DhtAddressLookup" class="impl"><a class="src rightside" href="../../../../src/iroh/address_lookup/pkarr/dht.rs.html#302-345">Source</a><a href="#impl-AddressLookup-for-DhtAddressLookup" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../trait.AddressLookup.html" title="trait iroh::address_lookup::AddressLookup">AddressLookup</a> for <a class="struct" href="struct.DhtAddressLookup.html" title="struct iroh::address_lookup::pkarr::dht::DhtAddressLookup">DhtAddressLookup</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.publish" class="method trait-impl"><a class="src rightside" href="../../../../src/iroh/address_lookup/pkarr/dht.rs.html#303-328">Source</a><a href="#method.publish" class="anchor">§</a><h4 class="code-header">fn <a href="../../trait.AddressLookup.html#method.publish" class="fn">publish</a>(&self, data: &<a class="struct" href="../../struct.EndpointData.html" title="struct iroh::address_lookup::EndpointData">EndpointData</a>)</h4></section></summary><div class='docblock'>Publishes the given <a href="../../struct.EndpointData.html" title="struct iroh::address_lookup::EndpointData"><code>EndpointData</code></a> to the Address Lookup mechanism. <a href="../../trait.AddressLookup.html#method.publish">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.resolve" class="method trait-impl"><a class="src rightside" href="../../../../src/iroh/address_lookup/pkarr/dht.rs.html#330-344">Source</a><a href="#method.resolve" class="anchor">§</a><h4 class="code-header">fn <a href="../../trait.AddressLookup.html#method.resolve" class="fn">resolve</a>(
|
||||
&self,
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="An address lookup service which publishes and resolves endpoint information using a pkarr relay."><title>iroh::address_lookup::pkarr - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module pkarr</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module pkarr</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In iroh::<wbr>address_<wbr>lookup</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh</a>::<wbr><a href="../index.html">address_lookup</a></div><h1>Module <span>pkarr</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh/address_lookup/pkarr.rs.html#1-712">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An address lookup service which publishes and resolves endpoint information using a <a href="https://pkarr.org">pkarr</a> relay.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="An address lookup service which publishes and resolves endpoint information using a pkarr relay."><title>iroh::address_lookup::pkarr - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module pkarr</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module pkarr</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In iroh::<wbr>address_<wbr>lookup</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh</a>::<wbr><a href="../index.html">address_lookup</a></div><h1>Module <span>pkarr</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh/address_lookup/pkarr.rs.html#1-711">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An address lookup service which publishes and resolves endpoint information using a <a href="https://pkarr.org">pkarr</a> relay.</p>
|
||||
<p>Public-Key Addressable Resource Records, <a href="https://pkarr.org">pkarr</a>, is a system which allows publishing
|
||||
<a href="https://en.wikipedia.org/wiki/Domain_Name_System#Resource_records">DNS Resource Records</a> owned by a particular <a href="../../struct.SecretKey.html" title="struct iroh::SecretKey"><code>SecretKey</code></a> under a name derived from its
|
||||
corresponding <a href="../../struct.PublicKey.html" title="struct iroh::PublicKey"><code>PublicKey</code></a>, also known as the <a href="../../type.EndpointId.html" title="type iroh::EndpointId"><code>EndpointId</code></a>. Additionally this pkarr
|
||||
@@ -20,11 +20,10 @@ the Mainline DHT on behalf on the client as well as cache lookups performed on t
|
||||
to improve performance.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p><a href="struct.PkarrPublisher.html" title="struct iroh::address_lookup::pkarr::PkarrPublisher"><code>PkarrPublisher</code></a> filters published addresses based on the endpoint’s relay configuration
|
||||
by default: when relays are enabled, only relay addresses are published
|
||||
(<a href="../struct.AddrFilter.html#method.relay_only" title="associated function iroh::address_lookup::AddrFilter::relay_only"><code>AddrFilter::relay_only</code></a>); when relays are disabled, all addresses are published
|
||||
(<a href="../struct.AddrFilter.html#method.unfiltered" title="associated function iroh::address_lookup::AddrFilter::unfiltered"><code>AddrFilter::unfiltered</code></a>). You can override this via
|
||||
<a href="struct.PkarrPublisherBuilder.html#method.addr_filter" title="method iroh::address_lookup::pkarr::PkarrPublisherBuilder::addr_filter"><code>PkarrPublisherBuilder::addr_filter</code></a>.</p>
|
||||
<p><a href="struct.PkarrPublisher.html" title="struct iroh::address_lookup::pkarr::PkarrPublisher"><code>PkarrPublisher</code></a> filters published addresses: only relay addresses are published by default.
|
||||
To change this behavior, use <a href="struct.PkarrPublisherBuilder.html#method.addr_filter" title="method iroh::address_lookup::pkarr::PkarrPublisherBuilder::addr_filter"><code>PkarrPublisherBuilder::addr_filter</code></a> and set it to e.g. <a href="../struct.AddrFilter.html#method.unfiltered" title="associated function iroh::address_lookup::AddrFilter::unfiltered"><code>AddrFilter::unfiltered</code></a>.
|
||||
This can be useful to enable publishing IP addresses if the iroh endpoint is reachable via public
|
||||
IP addresses.</p>
|
||||
<p>For address lookup in iroh the pkarr Resource Records contain the addressing information,
|
||||
providing endpoints which retrieve the pkarr Resource Record with enough detail
|
||||
to contact the iroh endpoint.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -20,5 +20,5 @@ endpoint to <a href="trait.AddressLookupBuilder.html#tymethod.into_address_looku
|
||||
endpoint: &<a class="struct" href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><impl <a class="trait" href="trait.AddressLookup.html" title="trait iroh::address_lookup::AddressLookup">AddressLookup</a>, <a class="enum" href="enum.AddressLookupBuilderError.html" title="enum iroh::address_lookup::AddressLookupBuilderError">AddressLookupBuilderError</a>></h4></section></summary><div class="docblock"><p>Turns this builder into a ready-to-use <a href="trait.AddressLookup.html" title="trait iroh::address_lookup::AddressLookup"><code>AddressLookup</code></a>.</p>
|
||||
<p>If an error is returned, building the endpoint will fail with this error.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-AddressLookupBuilder-for-DnsAddressLookupBuilder" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup/dns.rs.html#103-113">Source</a><a href="#impl-AddressLookupBuilder-for-DnsAddressLookupBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for <a class="struct" href="dns/struct.DnsAddressLookupBuilder.html" title="struct iroh::address_lookup::dns::DnsAddressLookupBuilder">DnsAddressLookupBuilder</a></h3><span class="item-info"><div class="stab portability">Available on <strong>non-<code>wasm_browser</code></strong> only.</div></span></section><section id="impl-AddressLookupBuilder-for-MdnsAddressLookupBuilder" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup/mdns.rs.html#237-244">Source</a><a href="#impl-AddressLookupBuilder-for-MdnsAddressLookupBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for <a class="struct" href="mdns/struct.MdnsAddressLookupBuilder.html" title="struct iroh::address_lookup::mdns::MdnsAddressLookupBuilder">MdnsAddressLookupBuilder</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>address-lookup-mdns</code></strong> only.</div></span></section><section id="impl-AddressLookupBuilder-for-Builder" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup/pkarr/dht.rs.html#253-260">Source</a><a href="#impl-AddressLookupBuilder-for-Builder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for <a class="struct" href="pkarr/dht/struct.Builder.html" title="struct iroh::address_lookup::pkarr::dht::Builder">Builder</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>address-lookup-pkarr-dht</code></strong> only.</div></span></section><section id="impl-AddressLookupBuilder-for-PkarrPublisherBuilder" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup/pkarr.rs.html#249-261">Source</a><a href="#impl-AddressLookupBuilder-for-PkarrPublisherBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for <a class="struct" href="pkarr/struct.PkarrPublisherBuilder.html" title="struct iroh::address_lookup::pkarr::PkarrPublisherBuilder">PkarrPublisherBuilder</a></h3></section><section id="impl-AddressLookupBuilder-for-PkarrResolverBuilder" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup/pkarr.rs.html#485-497">Source</a><a href="#impl-AddressLookupBuilder-for-PkarrResolverBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for <a class="struct" href="pkarr/struct.PkarrResolverBuilder.html" title="struct iroh::address_lookup::pkarr::PkarrResolverBuilder">PkarrResolverBuilder</a></h3></section><section id="impl-AddressLookupBuilder-for-T" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup.rs.html#218-225">Source</a><a href="#impl-AddressLookupBuilder-for-T" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.AddressLookup.html" title="trait iroh::address_lookup::AddressLookup">AddressLookup</a>> <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for T</h3><div class="docblock"><p>Blanket no-op impl of <code>AddressLookupBuilder</code> for <code>T: AddressLookup</code>.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-AddressLookupBuilder-for-DnsAddressLookupBuilder" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup/dns.rs.html#103-113">Source</a><a href="#impl-AddressLookupBuilder-for-DnsAddressLookupBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for <a class="struct" href="dns/struct.DnsAddressLookupBuilder.html" title="struct iroh::address_lookup::dns::DnsAddressLookupBuilder">DnsAddressLookupBuilder</a></h3><span class="item-info"><div class="stab portability">Available on <strong>non-<code>wasm_browser</code></strong> only.</div></span></section><section id="impl-AddressLookupBuilder-for-MdnsAddressLookupBuilder" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup/mdns.rs.html#237-244">Source</a><a href="#impl-AddressLookupBuilder-for-MdnsAddressLookupBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for <a class="struct" href="mdns/struct.MdnsAddressLookupBuilder.html" title="struct iroh::address_lookup::mdns::MdnsAddressLookupBuilder">MdnsAddressLookupBuilder</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>address-lookup-mdns</code></strong> only.</div></span></section><section id="impl-AddressLookupBuilder-for-Builder" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup/pkarr/dht.rs.html#253-260">Source</a><a href="#impl-AddressLookupBuilder-for-Builder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for <a class="struct" href="pkarr/dht/struct.Builder.html" title="struct iroh::address_lookup::pkarr::dht::Builder">Builder</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>address-lookup-pkarr-dht</code></strong> only.</div></span></section><section id="impl-AddressLookupBuilder-for-PkarrPublisherBuilder" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup/pkarr.rs.html#248-260">Source</a><a href="#impl-AddressLookupBuilder-for-PkarrPublisherBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for <a class="struct" href="pkarr/struct.PkarrPublisherBuilder.html" title="struct iroh::address_lookup::pkarr::PkarrPublisherBuilder">PkarrPublisherBuilder</a></h3></section><section id="impl-AddressLookupBuilder-for-PkarrResolverBuilder" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup/pkarr.rs.html#484-496">Source</a><a href="#impl-AddressLookupBuilder-for-PkarrResolverBuilder" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for <a class="struct" href="pkarr/struct.PkarrResolverBuilder.html" title="struct iroh::address_lookup::pkarr::PkarrResolverBuilder">PkarrResolverBuilder</a></h3></section><section id="impl-AddressLookupBuilder-for-T" class="impl"><a class="src rightside" href="../../src/iroh/address_lookup.rs.html#218-225">Source</a><a href="#impl-AddressLookupBuilder-for-T" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.AddressLookup.html" title="trait iroh::address_lookup::AddressLookup">AddressLookup</a>> <a class="trait" href="trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a> for T</h3><div class="docblock"><p>Blanket no-op impl of <code>AddressLookupBuilder</code> for <code>T: AddressLookup</code>.</p>
|
||||
</div></section></div><script src="../../trait.impl/iroh/address_lookup/trait.AddressLookupBuilder.js" async></script></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Environment variable to force the use of staging relays."><title>ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">ENV_FORCE_STAGING_RELAYS</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Constant <span class="constant">ENV_<wbr>FORCE_<wbr>STAGING_<wbr>RELAYS</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1765">Source</a> </span></div><pre class="rust item-decl"><code>pub const ENV_FORCE_STAGING_RELAYS: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "IROH_FORCE_STAGING_RELAYS";</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Environment variable to force the use of staging relays.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Environment variable to force the use of staging relays."><title>ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">ENV_FORCE_STAGING_RELAYS</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Constant <span class="constant">ENV_<wbr>FORCE_<wbr>STAGING_<wbr>RELAYS</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1772">Source</a> </span></div><pre class="rust item-decl"><code>pub const ENV_FORCE_STAGING_RELAYS: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "IROH_FORCE_STAGING_RELAYS";</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Environment variable to force the use of staging relays.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns the default relay mode."><title>default_relay_mode in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">default_relay_mode</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Function <span class="fn">default_<wbr>relay_<wbr>mode</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1776-1782">Source</a> </span></div><pre class="rust item-decl"><code>pub fn default_relay_mode() -> <a class="enum" href="enum.RelayMode.html" title="enum iroh::endpoint::RelayMode">RelayMode</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the default relay mode.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns the default relay mode."><title>default_relay_mode in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">default_relay_mode</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Function <span class="fn">default_<wbr>relay_<wbr>mode</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1783-1789">Source</a> </span></div><pre class="rust item-decl"><code>pub fn default_relay_mode() -> <a class="enum" href="enum.RelayMode.html" title="enum iroh::endpoint::RelayMode">RelayMode</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the default relay mode.</p>
|
||||
<p>If the <code>IROH_FORCE_STAGING_RELAYS</code> environment variable is non empty, it will return <code>RelayMode::Staging</code>.
|
||||
Otherwise, it will return <code>RelayMode::Default</code>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns `true` if the use of staging relays is forced."><title>force_staging_infra in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">force_staging_infra</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Function <span class="fn">force_<wbr>staging_<wbr>infra</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1768-1770">Source</a> </span></div><pre class="rust item-decl"><code>pub fn force_staging_infra() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns <code>true</code> if the use of staging relays is forced.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns `true` if the use of staging relays is forced."><title>force_staging_infra in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">force_staging_infra</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Function <span class="fn">force_<wbr>staging_<wbr>infra</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1775-1777">Source</a> </span></div><pre class="rust item-decl"><code>pub fn force_staging_infra() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns <code>true</code> if the use of staging relays is forced.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The `Endpoint` allows establishing connections to other iroh endpoints."><title>iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module endpoint</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module endpoint</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate iroh</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a></div><h1>Module <span>endpoint</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1-3649">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> allows establishing connections to other iroh endpoints.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The `Endpoint` allows establishing connections to other iroh endpoints."><title>iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module endpoint</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module endpoint</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate iroh</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a></div><h1>Module <span>endpoint</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1-3656">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> allows establishing connections to other iroh endpoints.</p>
|
||||
<p>The <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> is the main API interface to manage a local iroh endpoint. It allows
|
||||
connecting to and accepting connections from other endpoints. See the <a href="../index.html" title="mod iroh">module docs</a> for
|
||||
more details on how iroh connections work.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -16,7 +16,7 @@ the peer are created using the <a href="struct.Connection.html#method.open_bi" t
|
||||
<a href="struct.Connection.html#method.open_uni" title="method iroh::endpoint::Connection::open_uni"><code>Connection::open_uni</code></a> and <a href="struct.Connection.html#method.open_bi" title="method iroh::endpoint::Connection::open_bi"><code>Connection::open_bi</code></a> functions.</p>
|
||||
<p>Note that due to the light-weight properties of streams a stream will only be accepted
|
||||
once the initiating peer has sent some data on it.</p>
|
||||
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Endpoint" class="impl"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#823-1594">Source</a><a href="#impl-Endpoint" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.builder" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#833-835">Source</a><h4 class="code-header">pub fn <a href="#method.builder" class="fn">builder</a>() -> <a class="struct" href="struct.Builder.html" title="struct iroh::endpoint::Builder">Builder</a></h4></section></summary><div class="docblock"><p>Returns the builder for an <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>, with a production configuration.</p>
|
||||
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Endpoint" class="impl"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#823-1601">Source</a><a href="#impl-Endpoint" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.builder" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#833-835">Source</a><h4 class="code-header">pub fn <a href="#method.builder" class="fn">builder</a>() -> <a class="struct" href="struct.Builder.html" title="struct iroh::endpoint::Builder">Builder</a></h4></section></summary><div class="docblock"><p>Returns the builder for an <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>, with a production configuration.</p>
|
||||
<p>This uses the <a href="presets/struct.N0.html" title="struct iroh::endpoint::presets::N0"><code>presets::N0</code></a> as the configuration.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.empty_builder" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#840-842">Source</a><h4 class="code-header">pub fn <a href="#method.empty_builder" class="fn">empty_builder</a>(relay_mode: <a class="enum" href="enum.RelayMode.html" title="enum iroh::endpoint::RelayMode">RelayMode</a>) -> <a class="struct" href="struct.Builder.html" title="struct iroh::endpoint::Builder">Builder</a></h4></section></summary><div class="docblock"><p>Returns the builder for an <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>, with an empty configuration.</p>
|
||||
<p>See <a href="struct.Builder.html#method.empty" title="associated function iroh::endpoint::Builder::empty"><code>Builder::empty</code></a> for details.</p>
|
||||
@@ -56,7 +56,7 @@ connection attempt will fail with an error.</p>
|
||||
<p>The <code>alpn</code>, or application-level protocol identifier, is also required. The remote
|
||||
endpoint must support this <code>alpn</code>, otherwise the connection attempt will fail with
|
||||
an error.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect_with_opts" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#960-1021">Source</a><h4 class="code-header">pub async fn <a href="#method.connect_with_opts" class="fn">connect_with_opts</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect_with_opts" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#960-1028">Source</a><h4 class="code-header">pub async fn <a href="#method.connect_with_opts" class="fn">connect_with_opts</a>(
|
||||
&self,
|
||||
endpoint_addr: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../struct.EndpointAddr.html" title="struct iroh::EndpointAddr">EndpointAddr</a>>,
|
||||
alpn: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>],
|
||||
@@ -76,17 +76,17 @@ security concerns.</li>
|
||||
establishing and maintaining direct connections. Carefully test settings you use and
|
||||
consider this currently as still rather experimental.</li>
|
||||
</ol>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.accept" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1031-1036">Source</a><h4 class="code-header">pub fn <a href="#method.accept" class="fn">accept</a>(&self) -> <a class="struct" href="struct.Accept.html" title="struct iroh::endpoint::Accept">Accept</a><'_> <a href="#" class="tooltip" data-notable-ty="Accept<'_>">ⓘ</a></h4></section></summary><div class="docblock"><p>Accepts an incoming connection on the endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.accept" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1038-1043">Source</a><h4 class="code-header">pub fn <a href="#method.accept" class="fn">accept</a>(&self) -> <a class="struct" href="struct.Accept.html" title="struct iroh::endpoint::Accept">Accept</a><'_> <a href="#" class="tooltip" data-notable-ty="Accept<'_>">ⓘ</a></h4></section></summary><div class="docblock"><p>Accepts an incoming connection on the endpoint.</p>
|
||||
<p>Only connections with the ALPNs configured in <a href="struct.Builder.html#method.alpns" title="method iroh::endpoint::Builder::alpns"><code>Builder::alpns</code></a> will be accepted.
|
||||
If multiple ALPNs have been configured the ALPN can be inspected before accepting
|
||||
the connection using <a href="struct.Connecting.html#method.alpn" title="method iroh::endpoint::Connecting::alpn"><code>Connecting::alpn</code></a>.</p>
|
||||
<p>The returned future will yield <code>None</code> if the endpoint is closed by calling
|
||||
<a href="struct.Endpoint.html#method.close" title="method iroh::endpoint::Endpoint::close"><code>Endpoint::close</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.secret_key" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1041-1043">Source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(&self) -> &<a class="struct" href="../struct.SecretKey.html" title="struct iroh::SecretKey">SecretKey</a></h4></section></summary><div class="docblock"><p>Returns the secret_key of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.id" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1049-1051">Source</a><h4 class="code-header">pub fn <a href="#method.id" class="fn">id</a>(&self) -> <a class="type" href="../type.EndpointId.html" title="type iroh::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Returns the endpoint id of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.secret_key" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1048-1050">Source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(&self) -> &<a class="struct" href="../struct.SecretKey.html" title="struct iroh::SecretKey">SecretKey</a></h4></section></summary><div class="docblock"><p>Returns the secret_key of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.id" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1056-1058">Source</a><h4 class="code-header">pub fn <a href="#method.id" class="fn">id</a>(&self) -> <a class="type" href="../type.EndpointId.html" title="type iroh::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Returns the endpoint id of this endpoint.</p>
|
||||
<p>This ID is the unique addressing information of this endpoint and other peers must know
|
||||
it to be able to connect to this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1065-1067">Source</a><h4 class="code-header">pub fn <a href="#method.addr" class="fn">addr</a>(&self) -> <a class="struct" href="../struct.EndpointAddr.html" title="struct iroh::EndpointAddr">EndpointAddr</a></h4></section></summary><div class="docblock"><p>Returns the current <a href="../struct.EndpointAddr.html" title="struct iroh::EndpointAddr"><code>EndpointAddr</code></a>.
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1072-1074">Source</a><h4 class="code-header">pub fn <a href="#method.addr" class="fn">addr</a>(&self) -> <a class="struct" href="../struct.EndpointAddr.html" title="struct iroh::EndpointAddr">EndpointAddr</a></h4></section></summary><div class="docblock"><p>Returns the current <a href="../struct.EndpointAddr.html" title="struct iroh::EndpointAddr"><code>EndpointAddr</code></a>.
|
||||
As long as the endpoint was able to bind to a network interface, some
|
||||
local addresses will be available.</p>
|
||||
<p>The state of other fields depends on the state of networking and connectivity.
|
||||
@@ -96,7 +96,7 @@ to ensure that the <code>EndpointAddr</code> will contain enough information to
|
||||
to be dialable by a remote endpoint over the internet.</p>
|
||||
<p>You can use the <a href="struct.Endpoint.html#method.watch_addr" title="method iroh::endpoint::Endpoint::watch_addr"><code>Endpoint::watch_addr</code></a> method to get updates when the <code>EndpointAddr</code>
|
||||
changes.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.watch_addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1133-1147">Source</a><h4 class="code-header">pub fn <a href="#method.watch_addr" class="fn">watch_addr</a>(&self) -> impl <a class="trait" href="../trait.Watcher.html" title="trait iroh::Watcher">Watcher</a><Value = <a class="struct" href="../struct.EndpointAddr.html" title="struct iroh::EndpointAddr">EndpointAddr</a>> + use<></h4></section><span class="item-info"><div class="stab portability">Available on <strong>non-<code>wasm_browser</code></strong> only.</div></span></summary><div class="docblock"><p>Returns a <a href="../trait.Watcher.html" title="trait iroh::Watcher"><code>Watcher</code></a> for the current <a href="../struct.EndpointAddr.html" title="struct iroh::EndpointAddr"><code>EndpointAddr</code></a> for this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.watch_addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1140-1154">Source</a><h4 class="code-header">pub fn <a href="#method.watch_addr" class="fn">watch_addr</a>(&self) -> impl <a class="trait" href="../trait.Watcher.html" title="trait iroh::Watcher">Watcher</a><Value = <a class="struct" href="../struct.EndpointAddr.html" title="struct iroh::EndpointAddr">EndpointAddr</a>> + use<></h4></section><span class="item-info"><div class="stab portability">Available on <strong>non-<code>wasm_browser</code></strong> only.</div></span></summary><div class="docblock"><p>Returns a <a href="../trait.Watcher.html" title="trait iroh::Watcher"><code>Watcher</code></a> for the current <a href="../struct.EndpointAddr.html" title="struct iroh::EndpointAddr"><code>EndpointAddr</code></a> for this endpoint.</p>
|
||||
<p>The observed <a href="../struct.EndpointAddr.html" title="struct iroh::EndpointAddr"><code>EndpointAddr</code></a> will have the current <a href="../struct.RelayUrl.html" title="struct iroh::RelayUrl"><code>RelayUrl</code></a> and direct addresses.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iroh::{Endpoint, Watcher};
|
||||
@@ -139,7 +139,7 @@ tokio::spawn(endpoint_closed.run_until(<span class="kw">async move </span>{
|
||||
}));
|
||||
<span class="comment">// Do fancy things, then close the endpoint.
|
||||
// Our task above will stop even if there are still clones of `Endpoint` alive somewhere.
|
||||
</span>endpoint.close().<span class="kw">await</span>;</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.online" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1216-1218">Source</a><h4 class="code-header">pub async fn <a href="#method.online" class="fn">online</a>(&self)</h4></section></summary><div class="docblock"><p>A convenience method that waits for the endpoint to be considered “online”.</p>
|
||||
</span>endpoint.close().<span class="kw">await</span>;</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.online" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1223-1225">Source</a><h4 class="code-header">pub async fn <a href="#method.online" class="fn">online</a>(&self)</h4></section></summary><div class="docblock"><p>A convenience method that waits for the endpoint to be considered “online”.</p>
|
||||
<p>This currently means at least one relay server was connected,
|
||||
and at least one local IP address is available.
|
||||
Even if no relays are configured, this will still wait for a relay connection.</p>
|
||||
@@ -172,25 +172,25 @@ let endpoint = Endpoint::bind().await;
|
||||
// After this await returns we have a connection to at least one relay
|
||||
// and holepunching should work as expected.
|
||||
endpoint.online().await;
|
||||
}</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.bound_sockets" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1273-1279">Source</a><h4 class="code-header">pub fn <a href="#method.bound_sockets" class="fn">bound_sockets</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>></h4></section><span class="item-info"><div class="stab portability">Available on <strong>non-<code>wasm_browser</code></strong> only.</div></span></summary><div class="docblock"><p>Returns the local socket addresses on which the underlying sockets are bound.</p>
|
||||
}</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.bound_sockets" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1280-1286">Source</a><h4 class="code-header">pub fn <a href="#method.bound_sockets" class="fn">bound_sockets</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>></h4></section><span class="item-info"><div class="stab portability">Available on <strong>non-<code>wasm_browser</code></strong> only.</div></span></summary><div class="docblock"><p>Returns the local socket addresses on which the underlying sockets are bound.</p>
|
||||
<p>The <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> always binds on an IPv4 address and also tries to bind on an IPv6
|
||||
address if available.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.dns_resolver" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1293-1298">Source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&<a class="struct" href="../dns/struct.DnsResolver.html" title="struct iroh::dns::DnsResolver">DnsResolver</a>, <a class="enum" href="enum.EndpointError.html" title="enum iroh::endpoint::EndpointError">EndpointError</a>></h4></section><span class="item-info"><div class="stab portability">Available on <strong>non-<code>wasm_browser</code></strong> only.</div></span></summary><div class="docblock"><p>Returns the DNS resolver used in this <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.dns_resolver" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1300-1305">Source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&<a class="struct" href="../dns/struct.DnsResolver.html" title="struct iroh::dns::DnsResolver">DnsResolver</a>, <a class="enum" href="enum.EndpointError.html" title="enum iroh::endpoint::EndpointError">EndpointError</a>></h4></section><span class="item-info"><div class="stab portability">Available on <strong>non-<code>wasm_browser</code></strong> only.</div></span></summary><div class="docblock"><p>Returns the DNS resolver used in this <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<h5 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h5>
|
||||
<p>Returns an <code>EndpointError::Closed</code> error if the endpoint is closed.</p>
|
||||
<p>See <a href="struct.Builder.html#method.dns_resolver" title="method iroh::endpoint::Builder::dns_resolver"><code>Builder::dns_resolver</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.tls_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1310-1312">Source</a><h4 class="code-header">pub fn <a href="#method.tls_config" class="fn">tls_config</a>(&self) -> &ClientConfig</h4></section></summary><div class="docblock"><p>Returns the [<code>rustls::ClientConfig</code>] used by the endpoint for connecting to external services.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.tls_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1317-1319">Source</a><h4 class="code-header">pub fn <a href="#method.tls_config" class="fn">tls_config</a>(&self) -> &ClientConfig</h4></section></summary><div class="docblock"><p>Returns the [<code>rustls::ClientConfig</code>] used by the endpoint for connecting to external services.</p>
|
||||
<p>This might be useful for address lookup services or other functions
|
||||
that want to use the same trust anchors as iroh does for verifying the
|
||||
validity of TLS certificates presented by external services.</p>
|
||||
<p>Note that this TLS config is unrelated to how iroh validates the authenticity
|
||||
of iroh connections itself.</p>
|
||||
<p>The config is based on the trust anchors set via <a href="struct.Builder.html#method.ca_roots_config" title="method iroh::endpoint::Builder::ca_roots_config"><code>Builder::ca_roots_config</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.address_lookup" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1321-1326">Source</a><h4 class="code-header">pub fn <a href="#method.address_lookup" class="fn">address_lookup</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&<a class="struct" href="../address_lookup/struct.ConcurrentAddressLookup.html" title="struct iroh::address_lookup::ConcurrentAddressLookup">ConcurrentAddressLookup</a>, <a class="enum" href="enum.EndpointError.html" title="enum iroh::endpoint::EndpointError">EndpointError</a>></h4></section></summary><div class="docblock"><p>Returns the Address Lookup service, if configured.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.address_lookup" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1328-1333">Source</a><h4 class="code-header">pub fn <a href="#method.address_lookup" class="fn">address_lookup</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&<a class="struct" href="../address_lookup/struct.ConcurrentAddressLookup.html" title="struct iroh::address_lookup::ConcurrentAddressLookup">ConcurrentAddressLookup</a>, <a class="enum" href="enum.EndpointError.html" title="enum iroh::endpoint::EndpointError">EndpointError</a>></h4></section></summary><div class="docblock"><p>Returns the Address Lookup service, if configured.</p>
|
||||
<h5 id="errors-1"><a class="doc-anchor" href="#errors-1">§</a>Errors</h5>
|
||||
<p>Returns a <code>EndpointError::Closed</code> error if the endpoint is closed.</p>
|
||||
<p>See <a href="struct.Builder.html#method.address_lookup" title="method iroh::endpoint::Builder::address_lookup"><code>Builder::address_lookup</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.metrics" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1443-1445">Source</a><h4 class="code-header">pub fn <a href="#method.metrics" class="fn">metrics</a>(&self) -> &<a class="struct" href="../metrics/struct.EndpointMetrics.html" title="struct iroh::metrics::EndpointMetrics">EndpointMetrics</a></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>metrics</code></strong> only.</div></span></summary><div class="docblock"><p>Returns metrics collected for this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.metrics" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1450-1452">Source</a><h4 class="code-header">pub fn <a href="#method.metrics" class="fn">metrics</a>(&self) -> &<a class="struct" href="../metrics/struct.EndpointMetrics.html" title="struct iroh::metrics::EndpointMetrics">EndpointMetrics</a></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>metrics</code></strong> only.</div></span></summary><div class="docblock"><p>Returns metrics collected for this endpoint.</p>
|
||||
<p>The endpoint internally collects various metrics about its operation.
|
||||
The returned <a href="../metrics/struct.EndpointMetrics.html" title="struct iroh::metrics::EndpointMetrics"><code>EndpointMetrics</code></a> struct contains all of these metrics.</p>
|
||||
<p>You can access individual metrics directly by using the public fields:</p>
|
||||
@@ -260,13 +260,13 @@ registry.write().unwrap().register_all(endpoint.metrics());
|
||||
</span>.std_context(<span class="string">"text"</span>)<span class="question-mark">?</span>;
|
||||
|
||||
<span class="macro">assert!</span>(res.contains(<span class="string">r#"TYPE socket_recv_datagrams counter"#</span>));
|
||||
<span class="macro">assert!</span>(res.contains(<span class="string">r#"socket_recv_datagrams_total 0"#</span>));</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1455-1460">Source</a><h4 class="code-header">pub async fn <a href="#method.remote_info" class="fn">remote_info</a>(&self, endpoint_id: <a class="type" href="../type.EndpointId.html" title="type iroh::EndpointId">EndpointId</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.RemoteInfo.html" title="struct iroh::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns addressing information about a recently used remote endpoint.</p>
|
||||
<span class="macro">assert!</span>(res.contains(<span class="string">r#"socket_recv_datagrams_total 0"#</span>));</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1462-1467">Source</a><h4 class="code-header">pub async fn <a href="#method.remote_info" class="fn">remote_info</a>(&self, endpoint_id: <a class="type" href="../type.EndpointId.html" title="type iroh::EndpointId">EndpointId</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.RemoteInfo.html" title="struct iroh::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns addressing information about a recently used remote endpoint.</p>
|
||||
<p>The returned <a href="struct.RemoteInfo.html" title="struct iroh::endpoint::RemoteInfo"><code>RemoteInfo</code></a> contains a list of all transport addresses for the remote
|
||||
that we know about. This is a snapshot in time and not a watcher.</p>
|
||||
<p>Returns <code>None</code> if the endpoint doesn’t have information about the remote or if the endpoint is closed.
|
||||
When remote endpoints are no longer used, our endpoint will keep information around
|
||||
for a little while, and then drop it. Afterwards, this will return <code>None</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.network_change" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1476-1482">Source</a><h4 class="code-header">pub async fn <a href="#method.network_change" class="fn">network_change</a>(&self)</h4></section></summary><div class="docblock"><p>Notifies the system of potential network changes.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.network_change" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1483-1489">Source</a><h4 class="code-header">pub async fn <a href="#method.network_change" class="fn">network_change</a>(&self)</h4></section></summary><div class="docblock"><p>Notifies the system of potential network changes.</p>
|
||||
<p>On many systems iroh is able to detect network changes by itself, however
|
||||
some systems like android do not expose this functionality to native code.
|
||||
Android does however provide this functionality to Java code. This
|
||||
@@ -275,14 +275,14 @@ this.</p>
|
||||
<p>Even when the network did not change, or iroh was already able to detect
|
||||
the network change itself, there is no harm in calling this function.</p>
|
||||
<p>If the endpoint is closed, this method will log a warning and ignore the request.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_user_data_for_address_lookup" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1496-1502">Source</a><h4 class="code-header">pub fn <a href="#method.set_user_data_for_address_lookup" class="fn">set_user_data_for_address_lookup</a>(&self, user_data: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../address_lookup/struct.UserData.html" title="struct iroh::address_lookup::UserData">UserData</a>>)</h4></section></summary><div class="docblock"><p>Sets the initial user-defined data to be published in Address Lookups for this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_user_data_for_address_lookup" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1503-1509">Source</a><h4 class="code-header">pub fn <a href="#method.set_user_data_for_address_lookup" class="fn">set_user_data_for_address_lookup</a>(&self, user_data: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../address_lookup/struct.UserData.html" title="struct iroh::address_lookup::UserData">UserData</a>>)</h4></section></summary><div class="docblock"><p>Sets the initial user-defined data to be published in Address Lookups for this endpoint.</p>
|
||||
<p>If the user-defined data passed to this function is different to the previous one,
|
||||
the endpoint will republish its endpoint info to the configured Address Lookups.</p>
|
||||
<p>See also <a href="struct.Builder.html#method.user_data_for_address_lookup" title="method iroh::endpoint::Builder::user_data_for_address_lookup"><code>Builder::user_data_for_address_lookup</code></a> for setting an initial value when
|
||||
building the endpoint.</p>
|
||||
<p>If the endpoint is closed, this method will log a warning and ignore the
|
||||
request.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.close" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1538-1540">Source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(&self)</h4></section></summary><div class="docblock"><p>Closes the QUIC endpoint and the socket.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.close" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1545-1547">Source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(&self)</h4></section></summary><div class="docblock"><p>Closes the QUIC endpoint and the socket.</p>
|
||||
<p>This will close any remaining open <a href="struct.Connection.html" title="struct iroh::endpoint::Connection"><code>Connection</code></a>s with an error code
|
||||
of <code>0</code> and an empty reason. Though it is best practice to close those
|
||||
explicitly before with a custom error code and reason.</p>
|
||||
@@ -308,8 +308,8 @@ while TCP sockets usually get closed and drained by the operating system in the
|
||||
kernel during the “Time-Wait” period of the TCP socket.</p>
|
||||
<p>Be aware however that the underlying UDP sockets are only closed once all clones of
|
||||
the the respective <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> are dropped.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_closed" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1543-1545">Source</a><h4 class="code-header">pub fn <a href="#method.is_closed" class="fn">is_closed</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check if this endpoint is still alive, or already closed.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.closed" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1564-1568">Source</a><h4 class="code-header">pub fn <a href="#method.closed" class="fn">closed</a>(&self) -> <a class="struct" href="struct.EndpointClosed.html" title="struct iroh::endpoint::EndpointClosed">EndpointClosed</a> <a href="#" class="tooltip" data-notable-ty="EndpointClosed">ⓘ</a></h4></section></summary><div class="docblock"><p>Returns a future that resolves once the endpoint closes.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_closed" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1550-1552">Source</a><h4 class="code-header">pub fn <a href="#method.is_closed" class="fn">is_closed</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check if this endpoint is still alive, or already closed.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.closed" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1571-1575">Source</a><h4 class="code-header">pub fn <a href="#method.closed" class="fn">closed</a>(&self) -> <a class="struct" href="struct.EndpointClosed.html" title="struct iroh::endpoint::EndpointClosed">EndpointClosed</a> <a href="#" class="tooltip" data-notable-ty="EndpointClosed">ⓘ</a></h4></section></summary><div class="docblock"><p>Returns a future that resolves once the endpoint closes.</p>
|
||||
<p>The returned future does not contain a clone or reference to the <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>,
|
||||
so keeping the returned future alive does not prevent the endpoint from being dropped.</p>
|
||||
<p>To run a task and stop it once the endpoint closes, you can use
|
||||
@@ -318,7 +318,7 @@ so keeping the returned future alive does not prevent the endpoint from being dr
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>endpoint = Endpoint::bind().<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
tokio::spawn(endpoint.closed().run_until(<span class="kw">async move </span>{
|
||||
<span class="comment">// the future will be aborted once the endpoint closes.
|
||||
</span>}));</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.create_server_config_builder" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1574-1577">Source</a><h4 class="code-header">pub fn <a href="#method.create_server_config_builder" class="fn">create_server_config_builder</a>(
|
||||
</span>}));</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.create_server_config_builder" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#1581-1584">Source</a><h4 class="code-header">pub fn <a href="#method.create_server_config_builder" class="fn">create_server_config_builder</a>(
|
||||
&self,
|
||||
alpns: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>>,
|
||||
) -> <a class="struct" href="struct.ServerConfigBuilder.html" title="struct iroh::endpoint::ServerConfigBuilder">ServerConfigBuilder</a></h4></section></summary><div class="docblock"><p>Create a <a href="struct.ServerConfigBuilder.html" title="struct iroh::endpoint::ServerConfigBuilder"><code>ServerConfigBuilder</code></a> for this endpoint that includes the given alpns.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Trait to track the state of a `Connection` at compile time."><title>ConnectionState in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">ConnectionState</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Connection<wbr>State</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Data" title="Data">Data</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Trait <span class="trait">Connection<wbr>State</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint/connection.rs.html#750-753">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ConnectionState: Sealed {
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Trait to track the state of a `Connection` at compile time."><title>ConnectionState in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">ConnectionState</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Connection<wbr>State</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Data" title="Data">Data</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Trait <span class="trait">Connection<wbr>State</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint/connection.rs.html#767-770">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ConnectionState: Sealed {
|
||||
type <a href="#associatedtype.Data" class="associatedtype">Data</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trait to track the state of a <a href="struct.Connection.html" title="struct iroh::endpoint::Connection"><code>Connection</code></a> at compile time.</p>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Data" class="method"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#752">Source</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></h4></section></summary><div class="docblock"><p>State-specific data stored in the <a href="struct.Connection.html" title="struct iroh::endpoint::Connection"><code>Connection</code></a>.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-ConnectionState-for-HandshakeCompleted" class="impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#768-770">Source</a><a href="#impl-ConnectionState-for-HandshakeCompleted" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ConnectionState.html" title="trait iroh::endpoint::ConnectionState">ConnectionState</a> for <a class="struct" href="struct.HandshakeCompleted.html" title="struct iroh::endpoint::HandshakeCompleted">HandshakeCompleted</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#769">Source</a><a href="#associatedtype.Data-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = HandshakeCompletedData</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ConnectionState-for-IncomingZeroRtt" class="impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#772-774">Source</a><a href="#impl-ConnectionState-for-IncomingZeroRtt" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ConnectionState.html" title="trait iroh::endpoint::ConnectionState">ConnectionState</a> for <a class="struct" href="struct.IncomingZeroRtt.html" title="struct iroh::endpoint::IncomingZeroRtt">IncomingZeroRtt</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#773">Source</a><a href="#associatedtype.Data-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = IncomingZeroRttData</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ConnectionState-for-OutgoingZeroRtt" class="impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#777-779">Source</a><a href="#impl-ConnectionState-for-OutgoingZeroRtt" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ConnectionState.html" title="trait iroh::endpoint::ConnectionState">ConnectionState</a> for <a class="struct" href="struct.OutgoingZeroRtt.html" title="struct iroh::endpoint::OutgoingZeroRtt">OutgoingZeroRtt</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#778">Source</a><a href="#associatedtype.Data-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = OutgoingZeroRttData</h4></section></div></details></div><script src="../../trait.impl/iroh/endpoint/connection/trait.ConnectionState.js" async></script></section></div></main></body></html>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Data" class="method"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#769">Source</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></h4></section></summary><div class="docblock"><p>State-specific data stored in the <a href="struct.Connection.html" title="struct iroh::endpoint::Connection"><code>Connection</code></a>.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-ConnectionState-for-HandshakeCompleted" class="impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#785-787">Source</a><a href="#impl-ConnectionState-for-HandshakeCompleted" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ConnectionState.html" title="trait iroh::endpoint::ConnectionState">ConnectionState</a> for <a class="struct" href="struct.HandshakeCompleted.html" title="struct iroh::endpoint::HandshakeCompleted">HandshakeCompleted</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#786">Source</a><a href="#associatedtype.Data-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = HandshakeCompletedData</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ConnectionState-for-IncomingZeroRtt" class="impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#789-791">Source</a><a href="#impl-ConnectionState-for-IncomingZeroRtt" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ConnectionState.html" title="trait iroh::endpoint::ConnectionState">ConnectionState</a> for <a class="struct" href="struct.IncomingZeroRtt.html" title="struct iroh::endpoint::IncomingZeroRtt">IncomingZeroRtt</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#790">Source</a><a href="#associatedtype.Data-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = IncomingZeroRttData</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ConnectionState-for-OutgoingZeroRtt" class="impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#794-796">Source</a><a href="#impl-ConnectionState-for-OutgoingZeroRtt" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ConnectionState.html" title="trait iroh::endpoint::ConnectionState">ConnectionState</a> for <a class="struct" href="struct.OutgoingZeroRtt.html" title="struct iroh::endpoint::OutgoingZeroRtt">OutgoingZeroRtt</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/iroh/endpoint/connection.rs.html#795">Source</a><a href="#associatedtype.Data-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = OutgoingZeroRttData</h4></section></div></details></div><script src="../../trait.impl/iroh/endpoint/connection/trait.ConnectionState.js" async></script></section></div></main></body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A QUIC connection on the server-side that can possibly accept 0-RTT data."><title>IncomingZeroRttConnection in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">IncomingZeroRttConnection</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Incoming<wbr>Zero<wbr>RttConnection</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Type Alias <span class="type">Incoming<wbr>Zero<wbr>RttConnection</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint/connection.rs.html#697">Source</a> </span></div><pre class="rust item-decl"><code>pub type IncomingZeroRttConnection = <a class="struct" href="struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a><<a class="struct" href="struct.IncomingZeroRtt.html" title="struct iroh::endpoint::IncomingZeroRtt">IncomingZeroRtt</a>>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A QUIC connection on the server-side that can possibly accept 0-RTT data.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A QUIC connection on the server-side that can possibly accept 0-RTT data."><title>IncomingZeroRttConnection in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">IncomingZeroRttConnection</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Incoming<wbr>Zero<wbr>RttConnection</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Type Alias <span class="type">Incoming<wbr>Zero<wbr>RttConnection</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint/connection.rs.html#714">Source</a> </span></div><pre class="rust item-decl"><code>pub type IncomingZeroRttConnection = <a class="struct" href="struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a><<a class="struct" href="struct.IncomingZeroRtt.html" title="struct iroh::endpoint::IncomingZeroRtt">IncomingZeroRtt</a>>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A QUIC connection on the server-side that can possibly accept 0-RTT data.</p>
|
||||
<p>It is very similar to a <code>Connection</code>, but the <code>IncomingZeroRttConnection::remote_id</code>
|
||||
and <code>IncomingZeroRttConnection::alpn</code> may not be set yet, since the handshake has
|
||||
not necessarily occurred yet.</p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The client side of a 0-RTT connection."><title>OutgoingZeroRttConnection in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">OutgoingZeroRttConnection</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Outgoing<wbr>Zero<wbr>RttConnection</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Type Alias <span class="type">Outgoing<wbr>Zero<wbr>RttConnection</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint/connection.rs.html#665">Source</a> </span></div><pre class="rust item-decl"><code>pub type OutgoingZeroRttConnection = <a class="struct" href="struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a><<a class="struct" href="struct.OutgoingZeroRtt.html" title="struct iroh::endpoint::OutgoingZeroRtt">OutgoingZeroRtt</a>>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The client side of a 0-RTT connection.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The client side of a 0-RTT connection."><title>OutgoingZeroRttConnection in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">OutgoingZeroRttConnection</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Outgoing<wbr>Zero<wbr>RttConnection</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></div><h1>Type Alias <span class="type">Outgoing<wbr>Zero<wbr>RttConnection</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint/connection.rs.html#682">Source</a> </span></div><pre class="rust item-decl"><code>pub type OutgoingZeroRttConnection = <a class="struct" href="struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a><<a class="struct" href="struct.OutgoingZeroRtt.html" title="struct iroh::endpoint::OutgoingZeroRtt">OutgoingZeroRtt</a>>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The client side of a 0-RTT connection.</p>
|
||||
<p>This is created using <a href="struct.Connecting.html#method.into_0rtt" title="method iroh::endpoint::Connecting::into_0rtt"><code>Connecting::into_0rtt</code></a>.</p>
|
||||
<p>Creating a <code>OutgoingZeroRttConnection</code> means that the endpoint is capable
|
||||
of attempting a 0-RTT connection with the remote. The remote may still
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Configurable DNS resolver for `iroh-relay` and `iroh`."><title>iroh_relay::dns - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh_relay" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module dns</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh_relay/index.html">iroh_<wbr>relay</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module dns</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate iroh_<wbr>relay</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh_relay</a></div><h1>Module <span>dns</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh_relay/dns.rs.html#1-907">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>non-<code>wasm_browser</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Configurable DNS resolver for <code>iroh-relay</code> and <code>iroh</code>.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Configurable DNS resolver for `iroh-relay` and `iroh`."><title>iroh_relay::dns - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh_relay" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module dns</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh_relay/index.html">iroh_<wbr>relay</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module dns</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate iroh_<wbr>relay</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh_relay</a></div><h1>Module <span>dns</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh_relay/dns.rs.html#1-830">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>non-<code>wasm_browser</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Configurable DNS resolver for <code>iroh-relay</code> and <code>iroh</code>.</p>
|
||||
<p>The main export is the <a href="struct.DnsResolver.html" title="struct iroh_relay::dns::DnsResolver"><code>DnsResolver</code></a> struct. It provides methods to resolve domain names
|
||||
to IPv4 and IPv6 addresses. Additionally, the resolver features methods to resolve the
|
||||
<a href="../endpoint_info/struct.EndpointInfo.html" title="struct iroh_relay::endpoint_info::EndpointInfo"><code>EndpointInfo</code></a> for an iroh [<code>EndpointId</code>] from <code>_iroh</code> TXT records.
|
||||
<a href="../endpoint_info/struct.EndpointInfo.html" title="struct iroh_relay::endpoint_info::EndpointInfo"><code>EndpointInfo</code></a> for an iroh <a href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId"><code>EndpointId</code></a> from <code>_iroh</code> TXT records.
|
||||
See the <a href="../endpoint_info/index.html" title="mod iroh_relay::endpoint_info"><code>endpoint_info</code></a> module documentation for details on how iroh endpoint records
|
||||
are structured.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Builder.html" title="struct iroh_relay::dns::Builder">Builder</a></dt><dd>Builder for <a href="struct.DnsResolver.html" title="struct iroh_relay::dns::DnsResolver"><code>DnsResolver</code></a>.</dd><dt><a class="struct" href="struct.DnsResolver.html" title="struct iroh_relay::dns::DnsResolver">DnsResolver</a></dt><dd>The DNS resolver used throughout <code>iroh</code>.</dd><dt><a class="struct" href="struct.StaggeredError.html" title="struct iroh_relay::dns::StaggeredError">Staggered<wbr>Error</a></dt><dd>Error returned when a staggered call fails.</dd><dt><a class="struct" href="struct.TxtRecordData.html" title="struct iroh_relay::dns::TxtRecordData">TxtRecord<wbr>Data</a></dt><dd>Record data for a TXT record.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.DnsError.html" title="enum iroh_relay::dns::DnsError">DnsError</a></dt><dd>Potential errors related to DNS operations.</dd><dt><a class="enum" href="enum.DnsProtocol.html" title="enum iroh_relay::dns::DnsProtocol">DnsProtocol</a></dt><dd>Protocols over which DNS records can be resolved.</dd><dt><a class="enum" href="enum.LookupError.html" title="enum iroh_relay::dns::LookupError">Lookup<wbr>Error</a></dt><dd>Potential errors related to DNS endpoint address lookups.</dd></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html" title="constant iroh_relay::dns::N0_DNS_ENDPOINT_ORIGIN_PROD">N0_<wbr>DNS_<wbr>ENDPOINT_<wbr>ORIGIN_<wbr>PROD</a></dt><dd>The n0 address lookup DNS origin, for production.</dd><dt><a class="constant" href="constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html" title="constant iroh_relay::dns::N0_DNS_ENDPOINT_ORIGIN_STAGING">N0_<wbr>DNS_<wbr>ENDPOINT_<wbr>ORIGIN_<wbr>STAGING</a></dt><dd>The n0 address lookup DNS origin, for testing.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Resolver.html" title="trait iroh_relay::dns::Resolver">Resolver</a></dt><dd>Trait for DNS resolvers used in iroh.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.BoxIter.html" title="type iroh_relay::dns::BoxIter">BoxIter</a></dt><dd>Boxed iterator alias.</dd></dl></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Support for handling DNS resource records for dialing by `EndpointId`."><title>iroh_relay::endpoint_info - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh_relay" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module endpoint_info</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh_relay/index.html">iroh_<wbr>relay</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module endpoint_<wbr>info</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate iroh_<wbr>relay</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh_relay</a></div><h1>Module <span>endpoint_<wbr>info</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh_relay/endpoint_info.rs.html#1-915">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Support for handling DNS resource records for dialing by [<code>EndpointId</code>].</p>
|
||||
<p>Dialing by [<code>EndpointId</code>] is supported by iroh endpoints publishing <a href="https://app.pkarr.org">Pkarr</a> records to DNS
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Support for handling DNS resource records for dialing by `EndpointId`."><title>iroh_relay::endpoint_info - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh_relay" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module endpoint_info</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh_relay/index.html">iroh_<wbr>relay</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module endpoint_<wbr>info</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate iroh_<wbr>relay</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh_relay</a></div><h1>Module <span>endpoint_<wbr>info</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh_relay/endpoint_info.rs.html#1-915">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Support for handling DNS resource records for dialing by <a href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId"><code>EndpointId</code></a>.</p>
|
||||
<p>Dialing by <a href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId"><code>EndpointId</code></a> is supported by iroh endpoints publishing <a href="https://app.pkarr.org">Pkarr</a> records to DNS
|
||||
servers or the Mainline DHT. This module supports creating and parsing these records.</p>
|
||||
<p>DNS records are published under the following names:</p>
|
||||
<p><code>_iroh.<z32-endpoint-id>.<origin-domain> TXT</code></p>
|
||||
@@ -8,7 +8,7 @@ servers or the Mainline DHT. This module supports creating and parsing these re
|
||||
<p><code>_iroh</code> is the record name as defined by <a href="constant.IROH_TXT_NAME.html" title="constant iroh_relay::endpoint_info::IROH_TXT_NAME"><code>IROH_TXT_NAME</code></a>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code><z32-endpoint-id></code> is the <a href="https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt">z-base-32</a> encoding of the [<code>EndpointId</code>].</p>
|
||||
<p><code><z32-endpoint-id></code> is the <a href="https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt">z-base-32</a> encoding of the <a href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId"><code>EndpointId</code></a>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code><origin-domain></code> is the domain name of the publishing DNS server,
|
||||
@@ -23,7 +23,7 @@ servers or the Mainline DHT. This module supports creating and parsing these re
|
||||
in <a href="https://www.rfc-editor.org/rfc/rfc1464">RFC1464</a>. The following attributes are defined:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>relay=<url></code>: The home <a href="iroh_base::RelayUrl"><code>RelayUrl</code></a> of this endpoint.</p>
|
||||
<p><code>relay=<url></code>: The home <a href="../../iroh_base/relay_url/struct.RelayUrl.html" title="struct iroh_base::relay_url::RelayUrl"><code>RelayUrl</code></a> of this endpoint.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>addr=<addr> <addr></code>: A space-separated list of sockets addresses for this iroh endpoint.
|
||||
@@ -31,5 +31,5 @@ Each address is an IPv4 or IPv6 address with a port.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.AddrFilter.html" title="struct iroh_relay::endpoint_info::AddrFilter">Addr<wbr>Filter</a></dt><dd>A filter and/or reordering function applied to transport addresses,
|
||||
typically used by AddressLookup services in iroh before publishing.</dd><dt><a class="struct" href="struct.EndpointData.html" title="struct iroh_relay::endpoint_info::EndpointData">Endpoint<wbr>Data</a></dt><dd>Data about an endpoint that may be published to and resolved from discovery services.</dd><dt><a class="struct" href="struct.EndpointInfo.html" title="struct iroh_relay::endpoint_info::EndpointInfo">Endpoint<wbr>Info</a></dt><dd>Information about an endpoint that may be published to and resolved from discovery services.</dd><dt><a class="struct" href="struct.MaxLengthExceededError.html" title="struct iroh_relay::endpoint_info::MaxLengthExceededError">MaxLength<wbr>Exceeded<wbr>Error</a></dt><dd>Error returned when an input value is too long for <a href="struct.UserData.html" title="struct iroh_relay::endpoint_info::UserData"><code>UserData</code></a>.</dd><dt><a class="struct" href="struct.UserData.html" title="struct iroh_relay::endpoint_info::UserData">User<wbr>Data</a></dt><dd>Under the hood this is a UTF-8 String is no longer than <a href="struct.UserData.html#associatedconstant.MAX_LENGTH" title="associated constant iroh_relay::endpoint_info::UserData::MAX_LENGTH"><code>UserData::MAX_LENGTH</code></a> bytes.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.DecodingError.html" title="enum iroh_relay::endpoint_info::DecodingError">Decoding<wbr>Error</a></dt><dt><a class="enum" href="enum.EncodingError.html" title="enum iroh_relay::endpoint_info::EncodingError">Encoding<wbr>Error</a></dt><dt><a class="enum" href="enum.ParseError.html" title="enum iroh_relay::endpoint_info::ParseError">Parse<wbr>Error</a></dt></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.IROH_TXT_NAME.html" title="constant iroh_relay::endpoint_info::IROH_TXT_NAME">IROH_<wbr>TXT_<wbr>NAME</a></dt><dd>The DNS name for the iroh TXT record.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.EndpointIdExt.html" title="trait iroh_relay::endpoint_info::EndpointIdExt">Endpoint<wbr>IdExt</a></dt><dd>Extension methods for [<code>EndpointId</code>] to encode to and decode from [<code>z32</code>],
|
||||
typically used by AddressLookup services in iroh before publishing.</dd><dt><a class="struct" href="struct.EndpointData.html" title="struct iroh_relay::endpoint_info::EndpointData">Endpoint<wbr>Data</a></dt><dd>Data about an endpoint that may be published to and resolved from discovery services.</dd><dt><a class="struct" href="struct.EndpointInfo.html" title="struct iroh_relay::endpoint_info::EndpointInfo">Endpoint<wbr>Info</a></dt><dd>Information about an endpoint that may be published to and resolved from discovery services.</dd><dt><a class="struct" href="struct.MaxLengthExceededError.html" title="struct iroh_relay::endpoint_info::MaxLengthExceededError">MaxLength<wbr>Exceeded<wbr>Error</a></dt><dd>Error returned when an input value is too long for <a href="struct.UserData.html" title="struct iroh_relay::endpoint_info::UserData"><code>UserData</code></a>.</dd><dt><a class="struct" href="struct.UserData.html" title="struct iroh_relay::endpoint_info::UserData">User<wbr>Data</a></dt><dd>Under the hood this is a UTF-8 String is no longer than <a href="struct.UserData.html#associatedconstant.MAX_LENGTH" title="associated constant iroh_relay::endpoint_info::UserData::MAX_LENGTH"><code>UserData::MAX_LENGTH</code></a> bytes.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.DecodingError.html" title="enum iroh_relay::endpoint_info::DecodingError">Decoding<wbr>Error</a></dt><dt><a class="enum" href="enum.EncodingError.html" title="enum iroh_relay::endpoint_info::EncodingError">Encoding<wbr>Error</a></dt><dt><a class="enum" href="enum.ParseError.html" title="enum iroh_relay::endpoint_info::ParseError">Parse<wbr>Error</a></dt></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.IROH_TXT_NAME.html" title="constant iroh_relay::endpoint_info::IROH_TXT_NAME">IROH_<wbr>TXT_<wbr>NAME</a></dt><dd>The DNS name for the iroh TXT record.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.EndpointIdExt.html" title="trait iroh_relay::endpoint_info::EndpointIdExt">Endpoint<wbr>IdExt</a></dt><dd>Extension methods for <a href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId"><code>EndpointId</code></a> to encode to and decode from [<code>z32</code>],
|
||||
which is the encoding used in [<code>pkarr</code>] domain names.</dd></dl></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,9 +1,9 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Extension methods for `EndpointId` to encode to and decode from `z32`, which is the encoding used in `pkarr` domain names."><title>EndpointIdExt in iroh_relay::endpoint_info - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh_relay" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">EndpointIdExt</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh_relay/index.html">iroh_<wbr>relay</a><span class="version">0.96.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Endpoint<wbr>IdExt</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.from_z32" title="from_z32">from_z32</a></li><li><a href="#tymethod.to_z32" title="to_z32">to_z32</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-EndpointIdExt-for-PublicKey" title="EndpointId">EndpointId</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In iroh_<wbr>relay::<wbr>endpoint_<wbr>info</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh_relay</a>::<wbr><a href="index.html">endpoint_info</a></div><h1>Trait <span class="trait">Endpoint<wbr>IdExt</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh_relay/endpoint_info.rs.html#84-94">Source</a> </span></div><pre class="rust item-decl"><code>pub trait EndpointIdExt {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.to_z32" class="fn">to_z32</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.from_z32" class="fn">from_z32</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><EndpointId, <a class="enum" href="enum.DecodingError.html" title="enum iroh_relay::endpoint_info::DecodingError">DecodingError</a>>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Extension methods for [<code>EndpointId</code>] to encode to and decode from [<code>z32</code>],
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.from_z32" class="fn">from_z32</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="type" href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId">EndpointId</a>, <a class="enum" href="enum.DecodingError.html" title="enum iroh_relay::endpoint_info::DecodingError">DecodingError</a>>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Extension methods for <a href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId"><code>EndpointId</code></a> to encode to and decode from [<code>z32</code>],
|
||||
which is the encoding used in [<code>pkarr</code>] domain names.</p>
|
||||
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.to_z32" class="method"><a class="src rightside" href="../../src/iroh_relay/endpoint_info.rs.html#88">Source</a><h4 class="code-header">fn <a href="#tymethod.to_z32" class="fn">to_z32</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Encodes a [<code>EndpointId</code>] in <a href="https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt"><code>z-base-32</code></a> encoding.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_z32" class="method"><a class="src rightside" href="../../src/iroh_relay/endpoint_info.rs.html#93">Source</a><h4 class="code-header">fn <a href="#tymethod.from_z32" class="fn">from_z32</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><EndpointId, <a class="enum" href="enum.DecodingError.html" title="enum iroh_relay::endpoint_info::DecodingError">DecodingError</a>></h4></section></summary><div class="docblock"><p>Parses a [<code>EndpointId</code>] from <a href="https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt"><code>z-base-32</code></a> encoding.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-EndpointIdExt-for-PublicKey" class="impl"><a class="src rightside" href="../../src/iroh_relay/endpoint_info.rs.html#96-111">Source</a><a href="#impl-EndpointIdExt-for-PublicKey" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.EndpointIdExt.html" title="trait iroh_relay::endpoint_info::EndpointIdExt">EndpointIdExt</a> for EndpointId</h3></section></summary><div class="impl-items"><section id="method.to_z32" class="method trait-impl"><a class="src rightside" href="../../src/iroh_relay/endpoint_info.rs.html#97-99">Source</a><a href="#method.to_z32" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_z32" class="fn">to_z32</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section><section id="method.from_z32" class="method trait-impl"><a class="src rightside" href="../../src/iroh_relay/endpoint_info.rs.html#101-110">Source</a><a href="#method.from_z32" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.from_z32" class="fn">from_z32</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><EndpointId, <a class="enum" href="enum.DecodingError.html" title="enum iroh_relay::endpoint_info::DecodingError">DecodingError</a>></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/iroh_relay/endpoint_info/trait.EndpointIdExt.js" data-ignore-extern-crates="iroh_base" async></script></section></div></main></body></html>
|
||||
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.to_z32" class="method"><a class="src rightside" href="../../src/iroh_relay/endpoint_info.rs.html#88">Source</a><h4 class="code-header">fn <a href="#tymethod.to_z32" class="fn">to_z32</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Encodes a <a href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId"><code>EndpointId</code></a> in <a href="https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt"><code>z-base-32</code></a> encoding.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_z32" class="method"><a class="src rightside" href="../../src/iroh_relay/endpoint_info.rs.html#93">Source</a><h4 class="code-header">fn <a href="#tymethod.from_z32" class="fn">from_z32</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="type" href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId">EndpointId</a>, <a class="enum" href="enum.DecodingError.html" title="enum iroh_relay::endpoint_info::DecodingError">DecodingError</a>></h4></section></summary><div class="docblock"><p>Parses a <a href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId"><code>EndpointId</code></a> from <a href="https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt"><code>z-base-32</code></a> encoding.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-EndpointIdExt-for-PublicKey" class="impl"><a class="src rightside" href="../../src/iroh_relay/endpoint_info.rs.html#96-111">Source</a><a href="#impl-EndpointIdExt-for-PublicKey" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.EndpointIdExt.html" title="trait iroh_relay::endpoint_info::EndpointIdExt">EndpointIdExt</a> for <a class="type" href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId">EndpointId</a></h3></section></summary><div class="impl-items"><section id="method.to_z32" class="method trait-impl"><a class="src rightside" href="../../src/iroh_relay/endpoint_info.rs.html#97-99">Source</a><a href="#method.to_z32" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_z32" class="fn">to_z32</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section><section id="method.from_z32" class="method trait-impl"><a class="src rightside" href="../../src/iroh_relay/endpoint_info.rs.html#101-110">Source</a><a href="#method.from_z32" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.from_z32" class="fn">from_z32</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="type" href="../../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId">EndpointId</a>, <a class="enum" href="enum.DecodingError.html" title="enum iroh_relay::endpoint_info::DecodingError">DecodingError</a>></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/iroh_relay/endpoint_info/trait.EndpointIdExt.js" data-ignore-extern-crates="iroh_base" async></script></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -25,7 +25,7 @@ Tailscale.</p>
|
||||
QAD support and expose metrics.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><dl class="item-table reexports"><dt id="reexport.MAX_PACKET_SIZE"><code>pub use protos::relay::<a class="constant" href="protos/relay/constant.MAX_PACKET_SIZE.html" title="constant iroh_relay::protos::relay::MAX_PACKET_SIZE">MAX_PACKET_SIZE</a>;</code></dt></dl><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="client/index.html" title="mod iroh_relay::client">client</a></dt><dd>Exposes <a href="client/struct.Client.html" title="struct iroh_relay::client::Client"><code>Client</code></a>, which allows to establish connections to a relay server.</dd><dt><a class="mod" href="defaults/index.html" title="mod iroh_relay::defaults">defaults</a></dt><dd>Default values used in the relay.</dd><dt><a class="mod" href="dns/index.html" title="mod iroh_relay::dns">dns</a><wbr><span class="stab portability" title="Available on non-`wasm_browser` only">Non-<code>wasm_browser</code></span></dt><dd>Configurable DNS resolver for <code>iroh-relay</code> and <code>iroh</code>.</dd><dt><a class="mod" href="endpoint_info/index.html" title="mod iroh_relay::endpoint_info">endpoint_<wbr>info</a></dt><dd>Support for handling DNS resource records for dialing by [<code>EndpointId</code>].</dd><dt><a class="mod" href="http/index.html" title="mod iroh_relay::http">http</a></dt><dd>HTTP-specific constants for the relay server and client.</dd><dt><a class="mod" href="protos/index.html" title="mod iroh_relay::protos">protos</a></dt><dd>Protocols used by the iroh-relay</dd><dt><a class="mod" href="quic/index.html" title="mod iroh_relay::quic">quic</a></dt><dd>Create a QUIC server that accepts connections
|
||||
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><dl class="item-table reexports"><dt id="reexport.MAX_PACKET_SIZE"><code>pub use protos::relay::<a class="constant" href="protos/relay/constant.MAX_PACKET_SIZE.html" title="constant iroh_relay::protos::relay::MAX_PACKET_SIZE">MAX_PACKET_SIZE</a>;</code></dt></dl><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="client/index.html" title="mod iroh_relay::client">client</a></dt><dd>Exposes <a href="client/struct.Client.html" title="struct iroh_relay::client::Client"><code>Client</code></a>, which allows to establish connections to a relay server.</dd><dt><a class="mod" href="defaults/index.html" title="mod iroh_relay::defaults">defaults</a></dt><dd>Default values used in the relay.</dd><dt><a class="mod" href="dns/index.html" title="mod iroh_relay::dns">dns</a><wbr><span class="stab portability" title="Available on non-`wasm_browser` only">Non-<code>wasm_browser</code></span></dt><dd>Configurable DNS resolver for <code>iroh-relay</code> and <code>iroh</code>.</dd><dt><a class="mod" href="endpoint_info/index.html" title="mod iroh_relay::endpoint_info">endpoint_<wbr>info</a></dt><dd>Support for handling DNS resource records for dialing by <a href="../iroh_base/key/type.EndpointId.html" title="type iroh_base::key::EndpointId"><code>EndpointId</code></a>.</dd><dt><a class="mod" href="http/index.html" title="mod iroh_relay::http">http</a></dt><dd>HTTP-specific constants for the relay server and client.</dd><dt><a class="mod" href="protos/index.html" title="mod iroh_relay::protos">protos</a></dt><dd>Protocols used by the iroh-relay</dd><dt><a class="mod" href="quic/index.html" title="mod iroh_relay::quic">quic</a></dt><dd>Create a QUIC server that accepts connections
|
||||
for QUIC address discovery.</dd><dt><a class="mod" href="server/index.html" title="mod iroh_relay::server">server</a><wbr><span class="stab portability" title="Available on crate feature `server` only"><code>server</code></span></dt><dd>A fully-fledged iroh-relay server over HTTP or HTTPS.</dd><dt><a class="mod" href="tls/index.html" title="mod iroh_relay::tls">tls</a></dt><dd>TLS verification configuration for iroh and iroh-relay.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.PingTracker.html" title="struct iroh_relay::PingTracker">Ping<wbr>Tracker</a></dt><dd>Tracks pings on a single relay connection.</dd><dt><a class="struct" href="struct.RelayConfig.html" title="struct iroh_relay::RelayConfig">Relay<wbr>Config</a></dt><dd>Information on a specific relay server.</dd><dt><a class="struct" href="struct.RelayMap.html" title="struct iroh_relay::RelayMap">Relay<wbr>Map</a></dt><dd>List of relay server configurations to be used in an iroh endpoint.</dd><dt><a class="struct" href="struct.RelayQuicConfig.html" title="struct iroh_relay::RelayQuicConfig">Relay<wbr>Quic<wbr>Config</a></dt><dd>Configuration for speaking to the QUIC endpoint on the relay
|
||||
server to do QUIC address discovery.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.KeyCache.html" title="enum iroh_relay::KeyCache">KeyCache</a></dt><dd>A cache for public keys.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.ExportKeyingMaterial.html" title="trait iroh_relay::ExportKeyingMaterial">Export<wbr>Keying<wbr>Material</a></dt><dd>This trait allows anything that ends up potentially
|
||||
wrapping a TLS stream use the underlying <a href="rustls::ConnectionCommon::export_keying_material"><code>export_keying_material</code></a>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.http_addr" class="method"><a class="src rightside" href="../../src/iroh_relay/server.rs.html#506-508">Source</a><h4 class="code-header">pub fn <a href="#method.http_addr" class="fn">http_addr</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>></h4></section></summary><div class="docblock"><p>The socket address the HTTP server is listening on.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.quic_addr" class="method"><a class="src rightside" href="../../src/iroh_relay/server.rs.html#511-513">Source</a><h4 class="code-header">pub fn <a href="#method.quic_addr" class="fn">quic_addr</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>></h4></section></summary><div class="docblock"><p>The socket address the QUIC server is listening on.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.certificates" class="method"><a class="src rightside" href="../../src/iroh_relay/server.rs.html#516-518">Source</a><h4 class="code-header">pub fn <a href="#method.certificates" class="fn">certificates</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><CertificateDer<'static>>></h4></section></summary><div class="docblock"><p>The certificates chain if configured with manual TLS certificates.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.https_url" class="method"><a class="src rightside" href="../../src/iroh_relay/server.rs.html#524-530">Source</a><h4 class="code-header">pub fn <a href="#method.https_url" class="fn">https_url</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><RelayUrl></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>test-utils</code></strong> only.</div></span></summary><div class="docblock"><p>Get the server’s https [<code>RelayUrl</code>].</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.https_url" class="method"><a class="src rightside" href="../../src/iroh_relay/server.rs.html#524-530">Source</a><h4 class="code-header">pub fn <a href="#method.https_url" class="fn">https_url</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../iroh_base/relay_url/struct.RelayUrl.html" title="struct iroh_base::relay_url::RelayUrl">RelayUrl</a>></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>test-utils</code></strong> only.</div></span></summary><div class="docblock"><p>Get the server’s https <a href="../../iroh_base/relay_url/struct.RelayUrl.html" title="struct iroh_base::relay_url::RelayUrl"><code>RelayUrl</code></a>.</p>
|
||||
<p>This uses <a href="struct.Server.html#method.https_addr" title="method iroh_relay::server::Server::https_addr"><code>Self::https_addr</code></a> so it’s mostly useful for local development.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.http_url" class="method"><a class="src rightside" href="../../src/iroh_relay/server.rs.html#536-542">Source</a><h4 class="code-header">pub fn <a href="#method.http_url" class="fn">http_url</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><RelayUrl></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>test-utils</code></strong> only.</div></span></summary><div class="docblock"><p>Get the server’s http [<code>RelayUrl</code>].</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.http_url" class="method"><a class="src rightside" href="../../src/iroh_relay/server.rs.html#536-542">Source</a><h4 class="code-header">pub fn <a href="#method.http_url" class="fn">http_url</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../iroh_base/relay_url/struct.RelayUrl.html" title="struct iroh_base::relay_url::RelayUrl">RelayUrl</a>></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>test-utils</code></strong> only.</div></span></summary><div class="docblock"><p>Get the server’s http <a href="../../iroh_base/relay_url/struct.RelayUrl.html" title="struct iroh_base::relay_url::RelayUrl"><code>RelayUrl</code></a>.</p>
|
||||
<p>This uses <a href="struct.Server.html#method.http_addr" title="method iroh_relay::server::Server::http_addr"><code>Self::http_addr</code></a> so it’s mostly useful for local development.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.metrics" class="method"><a class="src rightside" href="../../src/iroh_relay/server.rs.html#545-547">Source</a><h4 class="code-header">pub fn <a href="#method.metrics" class="fn">metrics</a>(&self) -> &<a class="struct" href="struct.RelayMetrics.html" title="struct iroh_relay::server::RelayMetrics">RelayMetrics</a></h4></section></summary><div class="docblock"><p>Returns the metrics collected in the relay server.</p>
|
||||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Server" class="impl"><a class="src rightside" href="../../src/iroh_relay/server.rs.html#243">Source</a><a href="#impl-Debug-for-Server" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Server.html" title="struct iroh_relay::server::Server">Server</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/iroh_relay/server.rs.html#243">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, __derive_more_f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Server" class="impl"><a href="#impl-Freeze-for-Server" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Server.html" title="struct iroh_relay::server::Server">Server</a></h3></section><section id="impl-RefUnwindSafe-for-Server" class="impl"><a href="#impl-RefUnwindSafe-for-Server" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Server.html" title="struct iroh_relay::server::Server">Server</a></h3></section><section id="impl-Send-for-Server" class="impl"><a href="#impl-Send-for-Server" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Server.html" title="struct iroh_relay::server::Server">Server</a></h3></section><section id="impl-Sync-for-Server" class="impl"><a href="#impl-Sync-for-Server" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Server.html" title="struct iroh_relay::server::Server">Server</a></h3></section><section id="impl-Unpin-for-Server" class="impl"><a href="#impl-Unpin-for-Server" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Server.html" title="struct iroh_relay::server::Server">Server</a></h3></section><section id="impl-UnwindSafe-for-Server" class="impl"><a href="#impl-UnwindSafe-for-Server" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Server.html" title="struct iroh_relay::server::Server">Server</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
rb_("RURtADswAAABAAAWAgMAhwgPAcsKBQHrGQAAOzAAAAEAALwDUgDjBQAA5QUAAOgFAQDsBQAA7gUBAPEFAQD1BQEA+AUGAAAGAwAJBgAACwYBAA8GAAARBgEAFAYVACsGAQAuBgEAMgYAADUGAQA4BgAAOwYAAD0GCgBJBgAATwYBAFIGCQBdBgIAYwYEAGkGAQBsBgMAcQYAAHQGAAB2BgMAewYBAH4GAQCBBgAAhAYRAJsGAwCgBgAAogYAAKQGAACmBgMAqwYAAK4GAACxBgUAvQYCAMQGBQDLBgcA1AYCANgGAADaBgAA3AYAAN4GAQDhBh4AAgcBAAUHAQAKBwAADAcAABQHAAAWBxEAKQcDADIHAAA0BwAANgcBADkHAAA7BwAAPQcFAEUHAABHBwMATQcAAFAHAgBWBwIAXAcDAGIHAABlBwMAagcCAG4HBAB2BwAA6A8FAZIVkwBEFw8B6hkAAOwZAABbIQAAOzAAAAEAAIsDHQBQBAAAwQwCAMUMBADLDAwA2QwFAOAMhgBpDRgAgw0cAKENGQC8DQEAxw4BAMoOowBvD2kA+RAAAPsQAAChFAAApRRyACYWAgArFgEALhYPAD8WMABzFhQAiRYEAI8WRQDXFgAA2RZOACkXFQBAFwMAqx8AADswAAABAAAFAxcASAQAAGUEAADfBAAAUQYAAJ0KAADfDAAAZw0BAKANAAC7DQAAxQ0AABwRAACIEhIAPxcAANQYFADqGMIArhkaAMoZAAARGgAAwR0FAcseyADpIB8AmiEAADgjAAA7MAAAAQAA7AEkAJwBAABFBAAAVgQAAGoEAABsBAAA3gQAAFMHAACjCQAAmgoAAMkKAQDrDQAAjQ4AAOMPAAD3EAEA+hAAAPYSAACkFAAAHBUEAHgVAADBGAAA1BkAANYZAADYGQAA2hkAABYaHwA3GgAADhsAABAbDwEnHJMADCIAAIQiAABnIwAAhCMAAJwjAgCaJQAAlyYAADswAAABAAAtASMAWQQAAGMEAAATBgAAOAwAAIINAABpDgAAhg4AAKQOAADBDgAA8RAAACkRAQCIEQAAAhIAACYVAQBDFQAAYBUAANUWAQDYFgAAxxgAAK0ZAADJGQAA1RkAANkZAAC7HAUBox8AAKUfAAD2HwEA4yEAAO0hAAAYJQEAPiUAAEolAACYJQEAuCYAAMQmAAA7MAAAAQAANAAWAHUEAAB3BxUA8AkAAHgKAABtDAAA+Q0AAPwQCQCJEQAAARIAANMSAAD+EgAAohQBAIcVAADXGQAA2xkAAPEhAAB9IgAATSMAAJAjAABTJQAAhCUAALolAAA6MAAAAQAAAAAAIwAQAAAA7wLnA/EDFwQYBCsEnAq4CocM4w0rESUSVBhVGFYYVxhYGFkYWhhbGMIYwxjBH+Yf5x9KIYcikSKSIqUjpSSmJPUkGiUbJWMmOjAAAAEAAAAAAA4AEAAAAFcD2ANMCJ8JoQmlCqYKpwqoCr0MUg4XEnwVSiPXJTswAAABAAAdAg8AagAFAZ0BBQGFAwAAigMBANkDAQDeAwAA4QMAAFEOAAAHEwAAgxUAAPoZAQDlHwAALSEAAOEhAACTIgIAOjAAAAEAAAAAABEAEAAAAEYEbQSbEjYUsx+1H8Ifwx/GH8cfyh/LH2MhZSFnIWkhBCUFJQRpAAAAVQQAABETAABDJQAAAfohAAAC6B8AAAAiAAA7MAAAAQAABwADACYmAwBLJgEAmCYBAAFTIQAABfwZAADEHwAAyB8AAMwfAABKJgAAAAE/BAAAAAAAAAAAAAAAAAABiSIAAEtkAAAAOzAAAAEAAA8BCwAmFgIAKxYBAC4WDwA/FjAAcxYUAIkWBACPFkUA1xYAANkWTgApFxUAQBcDAAAAAlkEAACCDQAAAtMSAACEJQAAAeMNAAAAOzAAAAEAABACBgBqAAUBnQEFAdkDAQDeAwAA4QMAAFEOAAAAAmkAAABVBAAAAAHoHwAAAAFTIQAABPwZAADEHwAAyB8AAMwfAAAAAT8EAAAAAAAAAAAAAAAAAAGJIgAAQ24AAAAAAAAAAAAAOzAAAAEAAAsCAgBqAAUBnQEFAQAAAAAAAVMhAAAAAAE/BAAAAAAAAAAAAAAAAAABiSIAAENmAAAAAAAAAAAAADswAAABAAALAgIAagAFAZ0BBQEAAAAAAAAAAAAAAAAAAAAAAAAAAAGJIgAA")
|
||||
@@ -1 +0,0 @@
|
||||
rb_("RUVhADswAAABAAAWAgMAhwgPAcsKBQHrGQAAOzAAAAEAALwDUgDjBQAA5QUAAOgFAQDsBQAA7gUBAPEFAQD1BQEA+AUGAAAGAwAJBgAACwYBAA8GAAARBgEAFAYVACsGAQAuBgEAMgYAADUGAQA4BgAAOwYAAD0GCgBJBgAATwYBAFIGCQBdBgIAYwYEAGkGAQBsBgMAcQYAAHQGAAB2BgMAewYBAH4GAACBBgAAgwYSAJsGAwCgBgAAogYAAKQGAACmBgMAqwYAAK4GAACxBgUAvQYCAMQGBQDLBgcA1AYCANgGAADaBgAA3AYAAN4GAQDhBh4AAgcBAAUHAQAKBwAADAcAABQHAAAWBxEAKQcDADIHAAA0BwAANgcBADkHAAA7BwAAPQcFAEUHAABHBwMATQcAAFAHAgBWBwIAXAcDAGIHAABlBwMAagcCAG4HBAB2BwAA6A8FAZIVkwBEFw8B6hkAAOwZAABbIQAAOzAAAAEAAIsDHgBQBAAAwQwCAMUMBADLDAwA2QwFAOAMhgBpDRgAgw0cAKENGQC8DQEAxw4BAMoOowBvD2kA+RAAAPsQAAChFAAApRRyACYWAgArFgEALhYPAD8WMAByFgAAdBYTAIkWAwCOFkYA1xYAANkWTgApFxUAQBcDAKsfAAA7MAAAAQAABQMXAEgEAABlBAAA3wQAAFEGAACdCgAA3wwAAGcNAQCgDQAAuw0AAMUNAAAcEQAAiBISAD8XAADUGBQA6hjCAK4ZGgDKGQAAERoAAMEdBQHLHsgA6SAfAJohAAA4IwAAOzAAAAEAAOwBJACcAQAARQQAAFYEAABqBAAAbAQAAN4EAABTBwAAowkAAJoKAADJCgEA6w0AAI0OAADjDwAA9xABAPoQAAD2EgAApBQAABwVBAB4FQAAwRgAANQZAADWGQAA2BkAANoZAAAWGh8ANxoAAA4bAAAQGw8BJxyTAAwiAACEIgAAZyMAAIQjAACcIwIAmiUAAJcmAAA7MAAAAQAALQEjAFkEAABjBAAAEwYAADgMAACCDQAAaQ4AAIYOAACkDgAAwQ4AAPEQAAApEQEAiBEAAAISAAAmFQEAQxUAAGAVAADVFgEA2BYAAMcYAACtGQAAyRkAANUZAADZGQAAuxwFAaMfAAClHwAA9h8BAOMhAADtIQAAGCUBAD4lAABKJQAAmCUBALgmAADEJgAAOzAAAAEAADQAFgB1BAAAdwcVAPAJAAB4CgAAbQwAAPkNAAD8EAkAiREAAAESAADTEgAA/hIAAKIUAQCHFQAA1xkAANsZAADxIQAAfSIAAE0jAACQIwAAUyUAAIQlAAC6JQAAOjAAAAEAAAAAACMAEAAAAO8C5wPxAxcEGAQrBJwKuAqHDOMNKxElElQYVRhWGFcYWBhZGFoYWxjCGMMYwR/mH+cfSiGHIpEikiKlI6UkpiT1JBolGyVjJjowAAABAAAAAAAOABAAAABXA9gDTAifCaEJpQqmCqcKqAq9DFIOFxJ8FUoj1yU7MAAAAQAAHQIPAGoABQGdAQUBhQMAAIoDAQDZAwEA3gMAAOEDAABRDgAABxMAAIMVAAD6GQEA5R8AAC0hAADhIQAAkyICADowAAABAAAAAAARABAAAABGBG0EmxI2FLMftR/CH8Mfxh/HH8ofyx9jIWUhZyFpIQQlBSUEaQAAAFUEAAAREwAAQyUAAAH6IQAAAugfAAAAIgAAOzAAAAEAAAcAAwAmJgMASyYBAJgmAQABUyEAAAX8GQAAxB8AAMgfAADMHwAASiYAAAABPwQAAAAAAAAAAAAAAAAAAYkiAABLaAAAADswAAABAAAPAQwAJhYCACsWAQAuFg8APxYwAHIWAAB0FhMAiRYDAI4WRgDXFgAA2RZOACkXFQBAFwMAAAACWQQAAIINAAAC0xIAAIQlAAAB4w0AAAA7MAAAAQAAEAIGAGoABQGdAQUB2QMBAN4DAADhAwAAUQ4AAAACaQAAAFUEAAAAAegfAAAAAVMhAAAE/BkAAMQfAADIHwAAzB8AAAABPwQAAAAAAAAAAAAAAAAAAYkiAABDbgAAAAAAAAAAAAA7MAAAAQAACwICAGoABQGdAQUBAAAAAAABUyEAAAAAAT8EAAAAAAAAAAAAAAAAAAGJIgAAQ2YAAAAAAAAAAAAAOzAAAAEAAAsCAgBqAAUBnQEFAQAAAAAAAAAAAAAAAAAAAAAAAAAAAYkiAAA=")
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -42,10 +42,10 @@
|
||||
<a href=#42 id=42 data-nosnippet>42</a>/// be used as both a publisher and resolver. Calling [`DhtAddressLookup::publish`] will start
|
||||
<a href=#43 id=43 data-nosnippet>43</a>/// a background task that periodically publishes the endpoint address.
|
||||
<a href=#44 id=44 data-nosnippet>44</a>///
|
||||
<a href=#45 id=45 data-nosnippet>45</a>/// [`DhtAddressLookup`] filters published addresses based on the endpoint's relay
|
||||
<a href=#46 id=46 data-nosnippet>46</a>/// configuration by default: when relays are enabled, only relay addresses are published
|
||||
<a href=#47 id=47 data-nosnippet>47</a>/// ([`AddrFilter::relay_only`]); when relays are disabled, all addresses are published
|
||||
<a href=#48 id=48 data-nosnippet>48</a>/// ([`AddrFilter::unfiltered`]). You can override this via [`Builder::addr_filter`].
|
||||
<a href=#45 id=45 data-nosnippet>45</a>/// [`DhtAddressLookup`] filters published addresses: only relay addresses are published by default.
|
||||
<a href=#46 id=46 data-nosnippet>46</a>/// To change this behavior, use [`Builder::addr_filter`] and set it to e.g. [`AddrFilter::unfiltered`].
|
||||
<a href=#47 id=47 data-nosnippet>47</a>/// This can be useful to enable publishing IP addresses if the iroh endpoint is reachable via public
|
||||
<a href=#48 id=48 data-nosnippet>48</a>/// IP addresses.
|
||||
<a href=#49 id=49 data-nosnippet>49</a>///
|
||||
<a href=#50 id=50 data-nosnippet>50</a>/// [pkarr module]: super
|
||||
<a href=#51 id=51 data-nosnippet>51</a>/// [`AddrFilter::relay_only`]: crate::address_lookup::AddrFilter::relay_only
|
||||
|
||||
+2623
-2616
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,9 +1,9 @@
|
||||
(function() {
|
||||
var implementors = Object.fromEntries([["iroh_relay",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\" title=\"trait core::iter::traits::collect::FromIterator\">FromIterator</a><<a class=\"struct\" href=\"https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html\" title=\"struct alloc::boxed::Box\">Box</a><[<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>]>> for <a class=\"struct\" href=\"iroh_relay/dns/struct.TxtRecordData.html\" title=\"struct iroh_relay::dns::TxtRecordData\">TxtRecordData</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\" title=\"trait core::iter::traits::collect::FromIterator\">FromIterator</a><<a class=\"struct\" href=\"https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html\" title=\"struct alloc::sync::Arc\">Arc</a><<a class=\"struct\" href=\"iroh_relay/struct.RelayConfig.html\" title=\"struct iroh_relay::RelayConfig\">RelayConfig</a>>> for <a class=\"struct\" href=\"iroh_relay/struct.RelayMap.html\" title=\"struct iroh_relay::RelayMap\">RelayMap</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\" title=\"trait core::iter::traits::collect::FromIterator\">FromIterator</a><<a class=\"struct\" href=\"iroh_relay/struct.RelayConfig.html\" title=\"struct iroh_relay::RelayConfig\">RelayConfig</a>> for <a class=\"struct\" href=\"iroh_relay/struct.RelayMap.html\" title=\"struct iroh_relay::RelayMap\">RelayMap</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\" title=\"trait core::iter::traits::collect::FromIterator\">FromIterator</a><RelayUrl> for <a class=\"struct\" href=\"iroh_relay/struct.RelayMap.html\" title=\"struct iroh_relay::RelayMap\">RelayMap</a>"]]]]);
|
||||
var implementors = Object.fromEntries([["iroh_relay",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\" title=\"trait core::iter::traits::collect::FromIterator\">FromIterator</a><<a class=\"struct\" href=\"https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html\" title=\"struct alloc::boxed::Box\">Box</a><[<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>]>> for <a class=\"struct\" href=\"iroh_relay/dns/struct.TxtRecordData.html\" title=\"struct iroh_relay::dns::TxtRecordData\">TxtRecordData</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\" title=\"trait core::iter::traits::collect::FromIterator\">FromIterator</a><<a class=\"struct\" href=\"https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html\" title=\"struct alloc::sync::Arc\">Arc</a><<a class=\"struct\" href=\"iroh_relay/struct.RelayConfig.html\" title=\"struct iroh_relay::RelayConfig\">RelayConfig</a>>> for <a class=\"struct\" href=\"iroh_relay/struct.RelayMap.html\" title=\"struct iroh_relay::RelayMap\">RelayMap</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\" title=\"trait core::iter::traits::collect::FromIterator\">FromIterator</a><<a class=\"struct\" href=\"iroh_base/relay_url/struct.RelayUrl.html\" title=\"struct iroh_base::relay_url::RelayUrl\">RelayUrl</a>> for <a class=\"struct\" href=\"iroh_relay/struct.RelayMap.html\" title=\"struct iroh_relay::RelayMap\">RelayMap</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\" title=\"trait core::iter::traits::collect::FromIterator\">FromIterator</a><<a class=\"struct\" href=\"iroh_relay/struct.RelayConfig.html\" title=\"struct iroh_relay::RelayConfig\">RelayConfig</a>> for <a class=\"struct\" href=\"iroh_relay/struct.RelayMap.html\" title=\"struct iroh_relay::RelayMap\">RelayMap</a>"]]]]);
|
||||
if (window.register_implementors) {
|
||||
window.register_implementors(implementors);
|
||||
} else {
|
||||
window.pending_implementors = implementors;
|
||||
}
|
||||
})()
|
||||
//{"start":57,"fragment_lengths":[1940]}
|
||||
//{"start":57,"fragment_lengths":[2062]}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user