deploy: c31b515d577f9c8e46d9cdc0c51949da89a29386

This commit is contained in:
Frando
2026-07-17 12:21:31 +00:00
parent 4b42f6a23a
commit 95b8f71296
20 changed files with 3954 additions and 3953 deletions
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">1.0.2</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>&nbsp;<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#1971">Source</a> </span></div><pre class="rust item-decl"><code>pub const ENV_FORCE_STAGING_RELAYS: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;IROH_FORCE_STAGING_RELAYS&quot;;</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">1.0.2</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>&nbsp;<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#1972">Source</a> </span></div><pre class="rust item-decl"><code>pub const ENV_FORCE_STAGING_RELAYS: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;IROH_FORCE_STAGING_RELAYS&quot;;</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
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">1.0.2</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>&nbsp;<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#1982-1988">Source</a> </span></div><pre class="rust item-decl"><code>pub fn default_relay_mode() -&gt; <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">1.0.2</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>&nbsp;<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#1983-1989">Source</a> </span></div><pre class="rust item-decl"><code>pub fn default_relay_mode() -&gt; <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">1.0.2</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>&nbsp;<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#1974-1976">Source</a> </span></div><pre class="rust item-decl"><code>pub fn force_staging_infra() -&gt; <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">1.0.2</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>&nbsp;<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#1975-1977">Source</a> </span></div><pre class="rust item-decl"><code>pub fn force_staging_infra() -&gt; <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 -1
View File
@@ -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">1.0.2</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module endpoint</a></h2><h3><a href="#reexports">Module Items</a></h3><ul class="block"><li><a href="#reexports" title="Re-exports">Re-exports</a></li><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>&nbsp;<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-4125">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">1.0.2</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module endpoint</a></h2><h3><a href="#reexports">Module Items</a></h3><ul class="block"><li><a href="#reexports" title="Re-exports">Re-exports</a></li><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>&nbsp;<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-4126">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>
+29 -29
View File
@@ -2,12 +2,12 @@
<p>By default the endpoint will generate a new random <a href="../struct.SecretKey.html" title="struct iroh::SecretKey"><code>SecretKey</code></a>, which will result in a
new <a href="../type.EndpointId.html" title="type iroh::EndpointId"><code>EndpointId</code></a>.</p>
<p>To create the <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> call <a href="struct.Builder.html#method.bind" title="method iroh::endpoint::Builder::bind"><code>Builder::bind</code></a>.</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-Builder" class="impl"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#173-848">Source</a><a href="#impl-Builder" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Builder.html" title="struct iroh::endpoint::Builder">Builder</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#180-182">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(preset: impl <a class="trait" href="presets/trait.Preset.html" title="trait iroh::endpoint::presets::Preset">Preset</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new <a href="struct.Builder.html" title="struct iroh::endpoint::Builder"><code>Builder</code></a> using the given <a href="presets/trait.Preset.html" title="trait iroh::endpoint::presets::Preset"><code>Preset</code></a>.</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-Builder" class="impl"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#173-849">Source</a><a href="#impl-Builder" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Builder.html" title="struct iroh::endpoint::Builder">Builder</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#180-182">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(preset: impl <a class="trait" href="presets/trait.Preset.html" title="trait iroh::endpoint::presets::Preset">Preset</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new <a href="struct.Builder.html" title="struct iroh::endpoint::Builder"><code>Builder</code></a> using the given <a href="presets/trait.Preset.html" title="trait iroh::endpoint::presets::Preset"><code>Preset</code></a>.</p>
<p>See <a href="presets/index.html" title="mod iroh::endpoint::presets"><code>presets</code></a> for more.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.preset" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#185-188">Source</a><h4 class="code-header">pub fn <a href="#method.preset" class="fn">preset</a>(self, preset: impl <a class="trait" href="presets/trait.Preset.html" title="trait iroh::endpoint::presets::Preset">Preset</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Applies the given <a href="presets/trait.Preset.html" title="trait iroh::endpoint::presets::Preset"><code>Preset</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.empty" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#191-220">Source</a><h4 class="code-header">pub fn <a href="#method.empty" class="fn">empty</a>() -&gt; Self</h4></section></summary><div class="docblock"><p>Creates an empty builder with no address lookup services, and <a href="enum.RelayMode.html#variant.Disabled" title="variant iroh::endpoint::RelayMode::Disabled"><code>RelayMode::Disabled</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.bind" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#225-312">Source</a><h4 class="code-header">pub async fn <a href="#method.bind" class="fn">bind</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>, <a class="enum" href="enum.BindError.html" title="enum iroh::endpoint::BindError">BindError</a>&gt;</h4></section></summary><div class="docblock"><p>Binds the endpoint.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.bind_addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#367-373">Source</a><h4 class="code-header">pub fn <a href="#method.bind_addr" class="fn">bind_addr</a>&lt;A&gt;(self, addr: A) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="enum.InvalidSocketAddr.html" title="enum iroh::endpoint::InvalidSocketAddr">InvalidSocketAddr</a>&gt;<div class="where">where
</div></details><details class="toggle method-toggle" open><summary><section id="method.bind" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#225-313">Source</a><h4 class="code-header">pub async fn <a href="#method.bind" class="fn">bind</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>, <a class="enum" href="enum.BindError.html" title="enum iroh::endpoint::BindError">BindError</a>&gt;</h4></section></summary><div class="docblock"><p>Binds the endpoint.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.bind_addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#368-374">Source</a><h4 class="code-header">pub fn <a href="#method.bind_addr" class="fn">bind_addr</a>&lt;A&gt;(self, addr: A) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="enum.InvalidSocketAddr.html" title="enum iroh::endpoint::InvalidSocketAddr">InvalidSocketAddr</a>&gt;<div class="where">where
A: <a class="trait" href="trait.ToSocketAddr.html" title="trait iroh::endpoint::ToSocketAddr">ToSocketAddr</a>,
&lt;A as <a class="trait" href="trait.ToSocketAddr.html" title="trait iroh::endpoint::ToSocketAddr">ToSocketAddr</a>&gt;::<a class="associatedtype" href="trait.ToSocketAddr.html#associatedtype.Err" title="type iroh::endpoint::ToSocketAddr::Err">Err</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="enum.InvalidSocketAddr.html" title="enum iroh::endpoint::InvalidSocketAddr">InvalidSocketAddr</a>&gt;,</div></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>Binds an IP socket at the provided socket address.</p>
<p>This is an advanced API to tightly control the sockets used by the endpoint. Most
@@ -48,7 +48,7 @@ port <code>0</code> in the socket address assigns a random free port.</p>
.bind_addr(<span class="string">"127.0.0.1:0"</span>)<span class="question-mark">?
</span>.bind_addr(<span class="string">"[::1]:0"</span>)<span class="question-mark">?
</span>.bind()
.<span class="kw">await</span><span class="question-mark">?</span>;</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.bind_addr_with_opts" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#447-503">Source</a><h4 class="code-header">pub fn <a href="#method.bind_addr_with_opts" class="fn">bind_addr_with_opts</a>&lt;A&gt;(
.<span class="kw">await</span><span class="question-mark">?</span>;</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.bind_addr_with_opts" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#448-504">Source</a><h4 class="code-header">pub fn <a href="#method.bind_addr_with_opts" class="fn">bind_addr_with_opts</a>&lt;A&gt;(
self,
addr: A,
opts: <a class="struct" href="struct.BindOpts.html" title="struct iroh::endpoint::BindOpts">BindOpts</a>,
@@ -107,16 +107,16 @@ routing with the prefix length and default route as described above does not app
.bind_addr_with_opts(<span class="string">"127.0.0.1:0"</span>, BindOpts::default().set_prefix_len(<span class="number">24</span>))<span class="question-mark">?
</span>.bind_addr_with_opts(<span class="string">"[::1]:0"</span>, BindOpts::default().set_prefix_len(<span class="number">48</span>))<span class="question-mark">?
</span>.bind()
.<span class="kw">await</span><span class="question-mark">?</span>;</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.clear_ip_transports" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#507-511">Source</a><h4 class="code-header">pub fn <a href="#method.clear_ip_transports" class="fn">clear_ip_transports</a>(self) -&gt; Self</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>Removes all IP based transports.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clear_relay_transports" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#514-518">Source</a><h4 class="code-header">pub fn <a href="#method.clear_relay_transports" class="fn">clear_relay_transports</a>(self) -&gt; Self</h4></section></summary><div class="docblock"><p>Removes all relay based transports.</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#528-531">Source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(self, secret_key: <a class="struct" href="../struct.SecretKey.html" title="struct iroh::SecretKey">SecretKey</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets a secret key to authenticate with other peers.</p>
.<span class="kw">await</span><span class="question-mark">?</span>;</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.clear_ip_transports" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#508-512">Source</a><h4 class="code-header">pub fn <a href="#method.clear_ip_transports" class="fn">clear_ip_transports</a>(self) -&gt; Self</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>Removes all IP based transports.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clear_relay_transports" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#515-519">Source</a><h4 class="code-header">pub fn <a href="#method.clear_relay_transports" class="fn">clear_relay_transports</a>(self) -&gt; Self</h4></section></summary><div class="docblock"><p>Removes all relay based transports.</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#529-532">Source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(self, secret_key: <a class="struct" href="../struct.SecretKey.html" title="struct iroh::SecretKey">SecretKey</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets a secret key to authenticate with other peers.</p>
<p>This secret key’s public key will be the <a href="../struct.PublicKey.html" title="struct iroh::PublicKey"><code>PublicKey</code></a> of this endpoint and thus
also its <a href="../type.EndpointId.html" title="type iroh::EndpointId"><code>EndpointId</code></a></p>
<p>If not set, a new secret key will be generated.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.alpns" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#539-542">Source</a><h4 class="code-header">pub fn <a href="#method.alpns" class="fn">alpns</a>(self, alpn_protocols: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the <a href="https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation">ALPN</a> protocols that this endpoint will accept on incoming connections.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.alpns" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#540-543">Source</a><h4 class="code-header">pub fn <a href="#method.alpns" class="fn">alpns</a>(self, alpn_protocols: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the <a href="https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation">ALPN</a> protocols that this endpoint will accept on incoming connections.</p>
<p>Not setting this will still allow creating connections, but to accept incoming
connections at least one <a href="https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation">ALPN</a> must be set.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.relay_mode" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#561-581">Source</a><h4 class="code-header">pub fn <a href="#method.relay_mode" class="fn">relay_mode</a>(self, relay_mode: <a class="enum" href="enum.RelayMode.html" title="enum iroh::endpoint::RelayMode">RelayMode</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the relay servers to assist in establishing connectivity.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.relay_mode" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#562-582">Source</a><h4 class="code-header">pub fn <a href="#method.relay_mode" class="fn">relay_mode</a>(self, relay_mode: <a class="enum" href="enum.RelayMode.html" title="enum iroh::endpoint::RelayMode">RelayMode</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the relay servers to assist in establishing connectivity.</p>
<p>Relay servers are used to establish initial connection with another iroh endpoint.
They also perform various functions related to hole punching, see the <a href="../index.html" title="mod iroh">crate docs</a>
for more details.</p>
@@ -124,11 +124,11 @@ for more details.</p>
<p>When using <a href="enum.RelayMode.html#variant.Custom" title="variant iroh::endpoint::RelayMode::Custom">RelayMode::Custom</a>, the provided <code>relay_map</code> must contain at least one
configured relay endpoint. If an invalid RelayMap is provided <a href="struct.Builder.html#method.bind" title="method iroh::endpoint::Builder::bind"><code>bind</code></a>
will result in an error.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clear_address_lookup" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#589-592">Source</a><h4 class="code-header">pub fn <a href="#method.clear_address_lookup" class="fn">clear_address_lookup</a>(self) -&gt; Self</h4></section></summary><div class="docblock"><p>Removes all Address Lookup services from the builder.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clear_address_lookup" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#590-593">Source</a><h4 class="code-header">pub fn <a href="#method.clear_address_lookup" class="fn">clear_address_lookup</a>(self) -&gt; Self</h4></section></summary><div class="docblock"><p>Removes all Address Lookup services from the builder.</p>
<p>If no Address Lookup is set, connecting to an endpoint without providing its
direct addresses or relay URLs will fail.</p>
<p>See the documentation of the <a href="../address_lookup/trait.AddressLookup.html" title="trait iroh::address_lookup::AddressLookup"><code>crate::address_lookup::AddressLookup</code></a> trait for details.</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#609-612">Source</a><h4 class="code-header">pub fn <a href="#method.address_lookup" class="fn">address_lookup</a>(self, address_lookup: impl <a class="trait" href="../address_lookup/trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Adds an additional Address Lookup for this endpoint.</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#610-613">Source</a><h4 class="code-header">pub fn <a href="#method.address_lookup" class="fn">address_lookup</a>(self, address_lookup: impl <a class="trait" href="../address_lookup/trait.AddressLookupBuilder.html" title="trait iroh::address_lookup::AddressLookupBuilder">AddressLookupBuilder</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Adds an additional Address Lookup for this endpoint.</p>
<p>Once the endpoint is created the provided <a href="../address_lookup/trait.AddressLookupBuilder.html#tymethod.into_address_lookup" title="method iroh::address_lookup::AddressLookupBuilder::into_address_lookup"><code>AddressLookupBuilder::into_address_lookup</code></a> will be
called. This allows Address Lookup’s to finalize their configuration by e.g. using
the secret key from the endpoint which can be needed to sign published information.</p>
@@ -139,25 +139,25 @@ will be combined using an internal instance of the
<p>If no Address Lookup is set, connecting to an endpoint without providing its
direct addresses or relay URLs will fail.</p>
<p>See the documentation of the <a href="../address_lookup/trait.AddressLookup.html" title="trait iroh::address_lookup::AddressLookup"><code>crate::address_lookup::AddressLookup</code></a> trait for details.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.addr_filter" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#621-624">Source</a><h4 class="code-header">pub fn <a href="#method.addr_filter" class="fn">addr_filter</a>(self, filter: <a class="struct" href="../address_lookup/struct.AddrFilter.html" title="struct iroh::address_lookup::AddrFilter">AddrFilter</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the address filter applied to all address data before publishing.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.addr_filter" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#622-625">Source</a><h4 class="code-header">pub fn <a href="#method.addr_filter" class="fn">addr_filter</a>(self, filter: <a class="struct" href="../address_lookup/struct.AddrFilter.html" title="struct iroh::address_lookup::AddrFilter">AddrFilter</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the address filter applied to all address data before publishing.</p>
<p>This filter is applied once, at the <a href="../address_lookup/struct.AddressLookupServices.html" title="struct iroh::address_lookup::AddressLookupServices"><code>AddressLookupServices</code></a> level, before
distributing data to any individual address lookup service. This ensures
consistent filtering regardless of how the services are configured.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clear_addr_filter" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#630-633">Source</a><h4 class="code-header">pub fn <a href="#method.clear_addr_filter" class="fn">clear_addr_filter</a>(self) -&gt; Self</h4></section></summary><div class="docblock"><p>Clears the address filter, allowing all addresses to be published.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clear_addr_filter" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#631-634">Source</a><h4 class="code-header">pub fn <a href="#method.clear_addr_filter" class="fn">clear_addr_filter</a>(self) -&gt; Self</h4></section></summary><div class="docblock"><p>Clears the address filter, allowing all addresses to be published.</p>
<p>This removes any filter previously set via <a href="struct.Builder.html#method.addr_filter" title="method iroh::endpoint::Builder::addr_filter"><code>Self::addr_filter</code></a>, including
filters set by presets.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.user_data_for_address_lookup" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#643-646">Source</a><h4 class="code-header">pub fn <a href="#method.user_data_for_address_lookup" class="fn">user_data_for_address_lookup</a>(self, user_data: <a class="struct" href="../address_lookup/struct.UserData.html" title="struct iroh::address_lookup::UserData">UserData</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the initial user-defined data to be published in Address Lookup’s for this node.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.user_data_for_address_lookup" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#644-647">Source</a><h4 class="code-header">pub fn <a href="#method.user_data_for_address_lookup" class="fn">user_data_for_address_lookup</a>(self, user_data: <a class="struct" href="../address_lookup/struct.UserData.html" title="struct iroh::address_lookup::UserData">UserData</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the initial user-defined data to be published in Address Lookup’s for this node.</p>
<p>When using Address Lookup’s, this string of <a href="../address_lookup/struct.UserData.html" title="struct iroh::address_lookup::UserData"><code>UserData</code></a> will be published together
with the endpoint’s addresses and relay URL. When other endpoints discover this endpoint,
they retrieve the <a href="../address_lookup/struct.UserData.html" title="struct iroh::address_lookup::UserData"><code>UserData</code></a> in addition to the addressing info.</p>
<p>Iroh itself does not interpret the user-defined data in any way, it is purely left
for applications to parse and use.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.external_addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#655-658">Source</a><h4 class="code-header">pub fn <a href="#method.external_addr" class="fn">external_addr</a>(self, addr: <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>) -&gt; Self</h4></section></summary><div class="docblock"><p>Adds an external address on which this endpoint is directly reachable.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.external_addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#656-659">Source</a><h4 class="code-header">pub fn <a href="#method.external_addr" class="fn">external_addr</a>(self, addr: <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>) -&gt; Self</h4></section></summary><div class="docblock"><p>Adds an external address on which this endpoint is directly reachable.</p>
<p>This address will be advertised to peers together with any discovered external addresses
and will be used in NAT traversal and to establish direct connections.</p>
<p>Can be called multiple times. See also <a href="struct.Endpoint.html#method.add_external_addr" title="method iroh::endpoint::Endpoint::add_external_addr"><code>Endpoint::add_external_addr</code></a> for
adding addresses at runtime.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.transport_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#673-676">Source</a><h4 class="code-header">pub fn <a href="#method.transport_config" class="fn">transport_config</a>(self, transport_config: <a class="struct" href="struct.QuicTransportConfig.html" title="struct iroh::endpoint::QuicTransportConfig">QuicTransportConfig</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets a custom <a href="struct.QuicTransportConfig.html" title="struct iroh::endpoint::QuicTransportConfig"><code>QuicTransportConfig</code></a> for this endpoint.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.transport_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#674-677">Source</a><h4 class="code-header">pub fn <a href="#method.transport_config" class="fn">transport_config</a>(self, transport_config: <a class="struct" href="struct.QuicTransportConfig.html" title="struct iroh::endpoint::QuicTransportConfig">QuicTransportConfig</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets a custom <a href="struct.QuicTransportConfig.html" title="struct iroh::endpoint::QuicTransportConfig"><code>QuicTransportConfig</code></a> for this endpoint.</p>
<p>The transport config contains parameters governing the QUIC state machine.</p>
<p>If unset, the default config is used. Default values should be suitable for most
internet applications. Applications protocols which forbid remotely-initiated
@@ -165,38 +165,38 @@ streams should set <code>max_concurrent_bidi_streams</code> and <code>max_concur
zero.</p>
<p>Please be aware that changing some settings may have adverse effects on establishing
and maintaining direct connections.</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#688-691">Source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(self, dns_resolver: <a class="struct" href="../dns/struct.DnsResolver.html" title="struct iroh::dns::DnsResolver">DnsResolver</a>) -&gt; Self</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>Optionally sets a custom DNS resolver to use for this endpoint.</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#689-692">Source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(self, dns_resolver: <a class="struct" href="../dns/struct.DnsResolver.html" title="struct iroh::dns::DnsResolver">DnsResolver</a>) -&gt; Self</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>Optionally sets a custom DNS resolver to use for this endpoint.</p>
<p>The DNS resolver is used to resolve relay hostnames, and endpoint addresses if
<a href="../address_lookup/dns/struct.DnsAddressLookup.html" title="struct iroh::address_lookup::dns::DnsAddressLookup"><code>crate::address_lookup::DnsAddressLookup</code></a> is configured.</p>
<p>By default, a new DNS resolver is created which is configured to use the
host system’s DNS configuration. You can pass a custom instance of <a href="../dns/struct.DnsResolver.html" title="struct iroh::dns::DnsResolver"><code>DnsResolver</code></a>
here to use a differently configured DNS resolver for this endpoint, or to share
a <a href="../dns/struct.DnsResolver.html" title="struct iroh::dns::DnsResolver"><code>DnsResolver</code></a> between multiple endpoints.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.proxy_url" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#694-697">Source</a><h4 class="code-header">pub fn <a href="#method.proxy_url" class="fn">proxy_url</a>(self, url: <a class="struct" href="https://docs.rs/url/2.5.7/url/struct.Url.html" title="struct url::Url">Url</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets an explicit proxy url to proxy all HTTP(S) traffic through.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.proxy_from_env" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#705-708">Source</a><h4 class="code-header">pub fn <a href="#method.proxy_from_env" class="fn">proxy_from_env</a>(self) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the proxy url from the environment, in this order:</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.proxy_url" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#695-698">Source</a><h4 class="code-header">pub fn <a href="#method.proxy_url" class="fn">proxy_url</a>(self, url: <a class="struct" href="https://docs.rs/url/2.5.7/url/struct.Url.html" title="struct url::Url">Url</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets an explicit proxy url to proxy all HTTP(S) traffic through.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.proxy_from_env" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#706-709">Source</a><h4 class="code-header">pub fn <a href="#method.proxy_from_env" class="fn">proxy_from_env</a>(self) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the proxy url from the environment, in this order:</p>
<ul>
<li><code>HTTP_PROXY</code></li>
<li><code>http_proxy</code></li>
<li><code>HTTPS_PROXY</code></li>
<li><code>https_proxy</code></li>
</ul>
</div></details><details class="toggle method-toggle" open><summary><section id="method.ca_tls_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#717-720">Source</a><h4 class="code-header">pub fn <a href="#method.ca_tls_config" class="fn">ca_tls_config</a>(self, ca_tls_config: <a class="struct" href="../tls/struct.CaTlsConfig.html" title="struct iroh::tls::CaTlsConfig">CaTlsConfig</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the trusted CA root certificates for non-iroh TLS connections.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.ca_tls_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#718-721">Source</a><h4 class="code-header">pub fn <a href="#method.ca_tls_config" class="fn">ca_tls_config</a>(self, ca_tls_config: <a class="struct" href="../tls/struct.CaTlsConfig.html" title="struct iroh::tls::CaTlsConfig">CaTlsConfig</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the trusted CA root certificates for non-iroh TLS connections.</p>
<p>These Certificate Authority roots are used as trust anchors for verifying
the validity of TLS certificates presented by external services, such as
iroh relays, pkarr servers, or DNS-over-HTTPS resolvers.
They don’t need to be trusted for the integrity or authenticity of native
iroh connections, which rely on iroh’s own cryptographic authentication mechanisms.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.ca_roots_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#724-726">Source</a><h4 class="code-header">pub fn <a href="#method.ca_roots_config" class="fn">ca_roots_config</a>(self, ca_roots_config: <a class="struct" href="../tls/struct.CaTlsConfig.html" title="struct iroh::tls::CaTlsConfig">CaTlsConfig</a>) -&gt; Self</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.0.0: Renamed to <code>ca_tls_config</code></span></div></span></summary><div class="docblock"><p>Renamed to <a href="struct.Builder.html#method.ca_tls_config" title="method iroh::endpoint::Builder::ca_tls_config"><code>Builder::ca_tls_config</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.keylog" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#735-738">Source</a><h4 class="code-header">pub fn <a href="#method.keylog" class="fn">keylog</a>(self, keylog: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Enables saving the TLS pre-master key for connections.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.ca_roots_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#725-727">Source</a><h4 class="code-header">pub fn <a href="#method.ca_roots_config" class="fn">ca_roots_config</a>(self, ca_roots_config: <a class="struct" href="../tls/struct.CaTlsConfig.html" title="struct iroh::tls::CaTlsConfig">CaTlsConfig</a>) -&gt; Self</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.0.0: Renamed to <code>ca_tls_config</code></span></div></span></summary><div class="docblock"><p>Renamed to <a href="struct.Builder.html#method.ca_tls_config" title="method iroh::endpoint::Builder::ca_tls_config"><code>Builder::ca_tls_config</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.keylog" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#736-739">Source</a><h4 class="code-header">pub fn <a href="#method.keylog" class="fn">keylog</a>(self, keylog: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Enables saving the TLS pre-master key for connections.</p>
<p>This key should normally remain secret but can be useful to debug networking issues
by decrypting captured traffic.</p>
<p>If <em>keylog</em> is <code>true</code> then setting the <code>SSLKEYLOGFILE</code> environment variable to a
filename will result in this file being used to log the TLS pre-master keys.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.max_tls_tickets" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#746-749">Source</a><h4 class="code-header">pub fn <a href="#method.max_tls_tickets" class="fn">max_tls_tickets</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Set the maximum number of TLS tickets to cache.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.max_tls_tickets" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#747-750">Source</a><h4 class="code-header">pub fn <a href="#method.max_tls_tickets" class="fn">max_tls_tickets</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Set the maximum number of TLS tickets to cache.</p>
<p>Set this to a larger value if you want to do 0rtt connections to a large
number of clients.</p>
<p>The default is 256, taking about 150 KiB in memory.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.crypto_provider" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#765-768">Source</a><h4 class="code-header">pub fn <a href="#method.crypto_provider" class="fn">crypto_provider</a>(self, crypto_provider: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;CryptoProvider&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Specify the rustls cryptography to use for all TLS operations.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.crypto_provider" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#766-769">Source</a><h4 class="code-header">pub fn <a href="#method.crypto_provider" class="fn">crypto_provider</a>(self, crypto_provider: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;CryptoProvider&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Specify the rustls cryptography to use for all TLS operations.</p>
<p>This includes</p>
<ul>
<li>TLS for encryption and authentication of iroh connections themselves, but also</li>
@@ -208,28 +208,28 @@ number of clients.</p>
<p>If either the <code>tls-ring</code> or <code>tls-aws-lc-rs</code> feature is set in iroh, this function doesn’t
need to be called.</p>
<p>If none of these features are set, then calling this function in the builder is mandatory.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.hooks" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#780-783">Source</a><h4 class="code-header">pub fn <a href="#method.hooks" class="fn">hooks</a>(self, hooks: impl <a class="trait" href="trait.EndpointHooks.html" title="trait iroh::endpoint::EndpointHooks">EndpointHooks</a> + 'static) -&gt; Self</h4></section></summary><div class="docblock"><p>Install hooks onto the endpoint.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.hooks" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#781-784">Source</a><h4 class="code-header">pub fn <a href="#method.hooks" class="fn">hooks</a>(self, hooks: impl <a class="trait" href="trait.EndpointHooks.html" title="trait iroh::endpoint::EndpointHooks">EndpointHooks</a> + 'static) -&gt; Self</h4></section></summary><div class="docblock"><p>Install hooks onto the endpoint.</p>
<p>Endpoint hooks intercept the connection establishment process of an <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
<p>You can install multiple <a href="trait.EndpointHooks.html" title="trait iroh::endpoint::EndpointHooks"><code>EndpointHooks</code></a> by calling this function multiple times.
Order matters: hooks are invoked in the order they were installed onto the endpoint
builder. Once a hook returns reject, further processing
is aborted and other hooks won’t be invoked.</p>
<p>See <a href="trait.EndpointHooks.html" title="trait iroh::endpoint::EndpointHooks"><code>EndpointHooks</code></a> for details on the possible interception points in the connection lifecycle.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.portmapper_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#790-793">Source</a><h4 class="code-header">pub fn <a href="#method.portmapper_config" class="fn">portmapper_config</a>(self, config: <a class="enum" href="enum.PortmapperConfig.html" title="enum iroh::endpoint::PortmapperConfig">PortmapperConfig</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Configures the portmapper service (UPnP, PCP, NAT-PMP).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.portmapper_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#791-794">Source</a><h4 class="code-header">pub fn <a href="#method.portmapper_config" class="fn">portmapper_config</a>(self, config: <a class="enum" href="enum.PortmapperConfig.html" title="enum iroh::endpoint::PortmapperConfig">PortmapperConfig</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Configures the portmapper service (UPnP, PCP, NAT-PMP).</p>
<p>Defaults to <a href="enum.PortmapperConfig.html#variant.Enabled" title="variant iroh::endpoint::PortmapperConfig::Enabled"><code>PortmapperConfig::Enabled</code></a>. Pass
<a href="enum.PortmapperConfig.html#variant.Disabled" title="variant iroh::endpoint::PortmapperConfig::Disabled"><code>PortmapperConfig::Disabled</code></a> to avoid gateway probing (e.g. if it
triggers firewall prompts).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.net_report_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#802-805">Source</a><h4 class="code-header">pub fn <a href="#method.net_report_config" class="fn">net_report_config</a>(self, config: <a class="struct" href="../struct.NetReportConfig.html" title="struct iroh::NetReportConfig">NetReportConfig</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Configures the net report.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.net_report_config" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#803-806">Source</a><h4 class="code-header">pub fn <a href="#method.net_report_config" class="fn">net_report_config</a>(self, config: <a class="struct" href="../struct.NetReportConfig.html" title="struct iroh::NetReportConfig">NetReportConfig</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Configures the net report.</p>
<p>The net report component is responsible for figuring out if and how the endpoint is connected to the internet.
It does this by doing various probes to the configured relay servers to get public addresses, NAT behaviour, and
relay latencies. In addition it tries to detect captive portals.</p>
<p>Some non-essential features of the net report component can be disabled via this configuration.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_custom_transport" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#817-820">Source</a><h4 class="code-header">pub fn <a href="#method.add_custom_transport" class="fn">add_custom_transport</a>(self, factory: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;dyn <a class="trait" href="transports/trait.CustomTransport.html" title="trait iroh::endpoint::transports::CustomTransport">CustomTransport</a>&gt;) -&gt; Self</h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>unstable-custom-transports</code></strong> only.</div></span></summary><div class="docblock"><p>Adds a custom transport to the endpoint.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_custom_transport" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#818-821">Source</a><h4 class="code-header">pub fn <a href="#method.add_custom_transport" class="fn">add_custom_transport</a>(self, factory: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;dyn <a class="trait" href="transports/trait.CustomTransport.html" title="trait iroh::endpoint::transports::CustomTransport">CustomTransport</a>&gt;) -&gt; Self</h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>unstable-custom-transports</code></strong> only.</div></span></summary><div class="docblock"><p>Adds a custom transport to the endpoint.</p>
<div class="warning">
<p>This API is unstable and gated behind the <code>unstable-custom-transport</code> feature.
It is not covered by semantic versioning guarantees and may change in any release
without a major version bump.</p>
</div></div></details><details class="toggle method-toggle" open><summary><section id="method.path_selector" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#844-847">Source</a><h4 class="code-header">pub fn <a href="#method.path_selector" class="fn">path_selector</a>(self, selector: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;dyn <a class="trait" href="transports/trait.PathSelector.html" title="trait iroh::endpoint::transports::PathSelector">PathSelector</a>&gt;) -&gt; Self</h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>unstable-custom-transports</code></strong> only.</div></span></summary><div class="docblock"><p>Sets a custom <a href="transports/trait.PathSelector.html" title="trait iroh::endpoint::transports::PathSelector"><code>PathSelector</code></a> for this endpoint.</p>
</div></div></details><details class="toggle method-toggle" open><summary><section id="method.path_selector" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#845-848">Source</a><h4 class="code-header">pub fn <a href="#method.path_selector" class="fn">path_selector</a>(self, selector: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;dyn <a class="trait" href="transports/trait.PathSelector.html" title="trait iroh::endpoint::transports::PathSelector">PathSelector</a>&gt;) -&gt; Self</h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>unstable-custom-transports</code></strong> only.</div></span></summary><div class="docblock"><p>Sets a custom <a href="transports/trait.PathSelector.html" title="trait iroh::endpoint::transports::PathSelector"><code>PathSelector</code></a> for this endpoint.</p>
<p>The path selector decides which path to use among the candidate paths to a
remote endpoint. By default iroh uses a built-in selector that sorts paths by
biased RTT (with IPv6 preferred over IPv4 and relay treated as backup) and is
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
@@ -217,7 +217,7 @@
<a href=#217 id=217 data-nosnippet>217</a> Json(Health {
<a href=#218 id=218 data-nosnippet>218</a> status: <span class="string">"ok"</span>,
<a href=#219 id=219 data-nosnippet>219</a> version: <span class="macro">env!</span>(<span class="string">"CARGO_PKG_VERSION"</span>),
<a href=#220 id=220 data-nosnippet>220</a> git_hash: <span class="macro">option_env!</span>(<span class="string">"VERGEN_GIT_SHA"</span>).unwrap_or(<span class="string">"unknown"</span>),
<a href=#220 id=220 data-nosnippet>220</a> git_hash: <span class="string">"unknown"</span>,
<a href=#221 id=221 data-nosnippet>221</a> })
<a href=#222 id=222 data-nosnippet>222</a>}
<a href=#223 id=223 data-nosnippet>223</a>
+1 -1
View File
@@ -1098,7 +1098,7 @@
<a href=#1098 id=1098 data-nosnippet>1098</a> <span class="kw">let </span>health = Health {
<a href=#1099 id=1099 data-nosnippet>1099</a> status: <span class="string">"ok"</span>,
<a href=#1100 id=1100 data-nosnippet>1100</a> version: <span class="macro">env!</span>(<span class="string">"CARGO_PKG_VERSION"</span>),
<a href=#1101 id=1101 data-nosnippet>1101</a> git_hash: <span class="macro">option_env!</span>(<span class="string">"VERGEN_GIT_SHA"</span>).unwrap_or(<span class="string">"unknown"</span>),
<a href=#1101 id=1101 data-nosnippet>1101</a> git_hash: <span class="string">"unknown"</span>,
<a href=#1102 id=1102 data-nosnippet>1102</a> };
<a href=#1103 id=1103 data-nosnippet>1103</a> <span class="kw">let </span>body = serde_json::to_string(<span class="kw-2">&amp;</span>health).unwrap_or_else(|<span class="kw">_</span>| <span class="string">r#"{"status":"error"}"#</span>.into());
<a href=#1104 id=1104 data-nosnippet>1104</a> <span class="kw">let </span>body: BytesBody = Box::new(Full::from(body));