mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-03 16:01:53 +00:00
deploy: 8800145b1ea05b8b17db788c26bd751ef9cf8f8b
This commit is contained in:
@@ -1 +1 @@
|
||||
<!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="API documentation for the Rust `run_iroh` fn in crate `bulk`."><title>run_iroh in bulk - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bulk" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bulk/index.html">bulk</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../bulk/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">bulk</a>::<wbr><a class="fn" href="#">run_iroh</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/bulk/bulk.rs.html#33-134">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn run_iroh(opt: <a class="struct" href="../iroh_net_bench/struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></pre></section></div></main></body></html>
|
||||
<!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="API documentation for the Rust `run_iroh` fn in crate `bulk`."><title>run_iroh in bulk - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bulk" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bulk/index.html">bulk</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../bulk/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">bulk</a>::<wbr><a class="fn" href="#">run_iroh</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/bulk/bulk.rs.html#33-134">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn run_iroh(opt: <a class="struct" href="../iroh_net_bench/struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></pre></section></div></main></body></html>
|
||||
@@ -1 +1 @@
|
||||
<!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="API documentation for the Rust `run_quinn` fn in crate `bulk`."><title>run_quinn in bulk - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bulk" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bulk/index.html">bulk</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../bulk/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">bulk</a>::<wbr><a class="fn" href="#">run_quinn</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/bulk/bulk.rs.html#137-178">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn run_quinn(opt: <a class="struct" href="../iroh_net_bench/struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></pre></section></div></main></body></html>
|
||||
<!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="API documentation for the Rust `run_quinn` fn in crate `bulk`."><title>run_quinn in bulk - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bulk" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bulk/index.html">bulk</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../bulk/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">bulk</a>::<wbr><a class="fn" href="#">run_quinn</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/bulk/bulk.rs.html#137-178">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn run_quinn(opt: <a class="struct" href="../iroh_net_bench/struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></pre></section></div></main></body></html>
|
||||
@@ -1 +1 @@
|
||||
<!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="API documentation for the Rust `run_s2n` fn in crate `bulk`."><title>run_s2n in bulk - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bulk" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bulk/index.html">bulk</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../bulk/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">bulk</a>::<wbr><a class="fn" href="#">run_s2n</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/bulk/bulk.rs.html#180-182">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn run_s2n(_opt: <a class="struct" href="../iroh_net_bench/s2n/struct.Opt.html" title="struct iroh_net_bench::s2n::Opt">Opt</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></pre></section></div></main></body></html>
|
||||
<!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="API documentation for the Rust `run_s2n` fn in crate `bulk`."><title>run_s2n in bulk - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bulk" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bulk/index.html">bulk</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../bulk/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">bulk</a>::<wbr><a class="fn" href="#">run_s2n</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/bulk/bulk.rs.html#180-182">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn run_s2n(_opt: <a class="struct" href="../iroh_net_bench/s2n/struct.Opt.html" title="struct iroh_net_bench::s2n::Opt">Opt</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></pre></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 default QUIC port used by the Relay server to accept QUIC connections for QUIC address discovery"><title>DEFAULT_RELAY_QUIC_PORT in iroh::defaults - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::defaults</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Constant <a href="../index.html">iroh</a>::<wbr><a href="index.html">defaults</a>::<wbr><a class="constant" href="#">DEFAULT_RELAY_QUIC_PORT</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub const DEFAULT_RELAY_QUIC_PORT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a> = 7842; // 7_842u16</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The default QUIC port used by the Relay server to accept QUIC connections
|
||||
<!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 default QUIC port used by the Relay server to accept QUIC connections for QUIC address discovery"><title>DEFAULT_RELAY_QUIC_PORT in iroh::defaults - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::defaults</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Constant <a href="../index.html">iroh</a>::<wbr><a href="index.html">defaults</a>::<wbr><a class="constant" href="#">DEFAULT_RELAY_QUIC_PORT</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh_base/relay_map.rs.html#19">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub const DEFAULT_RELAY_QUIC_PORT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a> = 7842; // 7_842u16</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The default QUIC port used by the Relay server to accept QUIC connections
|
||||
for QUIC address discovery</p>
|
||||
<p>The port is “QUIC” typed on a phone keypad.
|
||||
The default QUIC port used by the Relay server to accept QUIC connections
|
||||
|
||||
@@ -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 default STUN port used by the Relay server."><title>DEFAULT_STUN_PORT in iroh::defaults - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::defaults</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Constant <a href="../index.html">iroh</a>::<wbr><a href="index.html">defaults</a>::<wbr><a class="constant" href="#">DEFAULT_STUN_PORT</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub const DEFAULT_STUN_PORT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a> = 3478; // 3_478u16</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The default STUN port used by the Relay server.</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 default STUN port used by the Relay server."><title>DEFAULT_STUN_PORT in iroh::defaults - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::defaults</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Constant <a href="../index.html">iroh</a>::<wbr><a href="index.html">defaults</a>::<wbr><a class="constant" href="#">DEFAULT_STUN_PORT</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh_base/relay_map.rs.html#13">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub const DEFAULT_STUN_PORT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a> = 3478; // 3_478u16</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The default STUN port used by the Relay server.</p>
|
||||
<p>The STUN port as defined by <a href="https://www.rfc-editor.org/rfc/rfc8489#section-18.6">RFC
|
||||
8489</a>
|
||||
The default STUN port used by the Relay server.</p>
|
||||
|
||||
@@ -9,10 +9,10 @@ pending connect futures and emits finished connect results.</p>
|
||||
<a href="../discovery/trait.Discovery.html" title="trait iroh::discovery::Discovery">discovery service</a> or manually by calling <a href="../endpoint/struct.Endpoint.html#method.add_node_addr" title="method iroh::endpoint::Endpoint::add_node_addr"><code>Endpoint::add_node_addr</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.abort_dial" class="method"><a class="src rightside" href="../../src/iroh/dialer.rs.html#61-65">source</a><h4 class="code-header">pub fn <a href="#method.abort_dial" class="fn">abort_dial</a>(&mut self, node_id: <a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>)</h4></section></summary><div class="docblock"><p>Aborts a pending dial.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_pending" class="method"><a class="src rightside" href="../../src/iroh/dialer.rs.html#68-70">source</a><h4 class="code-header">pub fn <a href="#method.is_pending" class="fn">is_pending</a>(&self, node: <a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Checks if a node is currently being dialed.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.next_conn" class="method"><a class="src rightside" href="../../src/iroh/dialer.rs.html#73-96">source</a><h4 class="code-header">pub async fn <a href="#method.next_conn" class="fn">next_conn</a>(&mut self) -> (<a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>, <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../endpoint/struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>>)</h4></section></summary><div class="docblock"><p>Waits for the next dial operation to complete.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.next_conn" class="method"><a class="src rightside" href="../../src/iroh/dialer.rs.html#73-96">source</a><h4 class="code-header">pub async fn <a href="#method.next_conn" class="fn">next_conn</a>(&mut self) -> (<a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>, <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../endpoint/struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>>)</h4></section></summary><div class="docblock"><p>Waits for the next dial operation to complete.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.pending_count" class="method"><a class="src rightside" href="../../src/iroh/dialer.rs.html#99-101">source</a><h4 class="code-header">pub fn <a href="#method.pending_count" class="fn">pending_count</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Number of pending connections to be opened.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.endpoint" class="method"><a class="src rightside" href="../../src/iroh/dialer.rs.html#104-106">source</a><h4 class="code-header">pub fn <a href="#method.endpoint" class="fn">endpoint</a>(&self) -> &<a class="struct" href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a></h4></section></summary><div class="docblock"><p>Returns a reference to the endpoint used in this dialer.</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-Dialer" class="impl"><a class="src rightside" href="../../src/iroh/dialer.rs.html#19">source</a><a href="#impl-Debug-for-Dialer" 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.Dialer.html" title="struct iroh::dialer::Dialer">Dialer</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/dialer.rs.html#19">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, 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><details class="toggle implementors-toggle" open><summary><section id="impl-Stream-for-Dialer" class="impl"><a class="src rightside" href="../../src/iroh/dialer.rs.html#109-128">source</a><a href="#impl-Stream-for-Dialer" class="anchor">§</a><h3 class="code-header">impl Stream for <a class="struct" href="struct.Dialer.html" title="struct iroh::dialer::Dialer">Dialer</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item" class="associatedtype trait-impl"><a href="#associatedtype.Item" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Item</a> = (<a class="struct" href="../key/struct.PublicKey.html" title="struct iroh::key::PublicKey">PublicKey</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="struct" href="../endpoint/struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.93/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>>)</h4></section></summary><div class='docblock'>Values yielded by the stream.</div></details><details class="toggle method-toggle" open><summary><section id="method.poll_next" class="method trait-impl"><a class="src rightside" href="../../src/iroh/dialer.rs.html#112-127">source</a><a href="#method.poll_next" class="anchor">§</a><h4 class="code-header">fn <a class="fn">poll_next</a>(
|
||||
</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-Dialer" class="impl"><a class="src rightside" href="../../src/iroh/dialer.rs.html#19">source</a><a href="#impl-Debug-for-Dialer" 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.Dialer.html" title="struct iroh::dialer::Dialer">Dialer</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/dialer.rs.html#19">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, 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><details class="toggle implementors-toggle" open><summary><section id="impl-Stream-for-Dialer" class="impl"><a class="src rightside" href="../../src/iroh/dialer.rs.html#109-128">source</a><a href="#impl-Stream-for-Dialer" class="anchor">§</a><h3 class="code-header">impl Stream for <a class="struct" href="struct.Dialer.html" title="struct iroh::dialer::Dialer">Dialer</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item" class="associatedtype trait-impl"><a href="#associatedtype.Item" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Item</a> = (<a class="struct" href="../key/struct.PublicKey.html" title="struct iroh::key::PublicKey">PublicKey</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="struct" href="../endpoint/struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.94/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>>)</h4></section></summary><div class='docblock'>Values yielded by the stream.</div></details><details class="toggle method-toggle" open><summary><section id="method.poll_next" class="method trait-impl"><a class="src rightside" href="../../src/iroh/dialer.rs.html#112-127">source</a><a href="#method.poll_next" class="anchor">§</a><h4 class="code-header">fn <a class="fn">poll_next</a>(
|
||||
self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut Self</a>>,
|
||||
cx: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::Item>></h4></section></summary><div class='docblock'>Attempt to pull out the next value of this stream, registering the
|
||||
|
||||
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
File diff suppressed because one or more lines are too long
@@ -7,7 +7,7 @@
|
||||
&self,
|
||||
endpoint: <a class="struct" href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>,
|
||||
node_id: <a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BoxStream<<a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.DiscoveryItem.html" title="struct iroh::discovery::DiscoveryItem">DiscoveryItem</a>>>></h4></section></summary><div class='docblock'>Resolves the <a href="../struct.AddrInfo.html" title="struct iroh::AddrInfo"><code>AddrInfo</code></a> for the given <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a>. <a href="trait.Discovery.html#method.resolve">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.subscribe" class="method trait-impl"><a class="src rightside" href="../../src/iroh/discovery.rs.html#272-282">source</a><a href="#method.subscribe" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Discovery.html#method.subscribe" class="fn">subscribe</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BoxStream<<a class="struct" href="struct.DiscoveryItem.html" title="struct iroh::discovery::DiscoveryItem">DiscoveryItem</a>>></h4></section></summary><div class='docblock'>Subscribe to all addresses that get <em>passively</em> discovered. <a href="trait.Discovery.html#method.subscribe">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CT%3E-for-ConcurrentDiscovery" class="impl"><a class="src rightside" href="../../src/iroh/discovery.rs.html#241-249">source</a><a href="#impl-From%3CT%3E-for-ConcurrentDiscovery" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for <a class="struct" href="struct.ConcurrentDiscovery.html" title="struct iroh::discovery::ConcurrentDiscovery">ConcurrentDiscovery</a><div class="where">where
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BoxStream<<a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.DiscoveryItem.html" title="struct iroh::discovery::DiscoveryItem">DiscoveryItem</a>>>></h4></section></summary><div class='docblock'>Resolves the <a href="../struct.AddrInfo.html" title="struct iroh::AddrInfo"><code>AddrInfo</code></a> for the given <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a>. <a href="trait.Discovery.html#method.resolve">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.subscribe" class="method trait-impl"><a class="src rightside" href="../../src/iroh/discovery.rs.html#272-282">source</a><a href="#method.subscribe" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Discovery.html#method.subscribe" class="fn">subscribe</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BoxStream<<a class="struct" href="struct.DiscoveryItem.html" title="struct iroh::discovery::DiscoveryItem">DiscoveryItem</a>>></h4></section></summary><div class='docblock'>Subscribe to all addresses that get <em>passively</em> discovered. <a href="trait.Discovery.html#method.subscribe">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CT%3E-for-ConcurrentDiscovery" class="impl"><a class="src rightside" href="../../src/iroh/discovery.rs.html#241-249">source</a><a href="#impl-From%3CT%3E-for-ConcurrentDiscovery" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for <a class="struct" href="struct.ConcurrentDiscovery.html" title="struct iroh::discovery::ConcurrentDiscovery">ConcurrentDiscovery</a><div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.Discovery.html" title="trait iroh::discovery::Discovery">Discovery</a>>>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../../src/iroh/discovery.rs.html#245-248">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(iter: T) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</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-ConcurrentDiscovery" class="impl"><a href="#impl-Freeze-for-ConcurrentDiscovery" 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.ConcurrentDiscovery.html" title="struct iroh::discovery::ConcurrentDiscovery">ConcurrentDiscovery</a></h3></section><section id="impl-RefUnwindSafe-for-ConcurrentDiscovery" class="impl"><a href="#impl-RefUnwindSafe-for-ConcurrentDiscovery" 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.ConcurrentDiscovery.html" title="struct iroh::discovery::ConcurrentDiscovery">ConcurrentDiscovery</a></h3></section><section id="impl-Send-for-ConcurrentDiscovery" class="impl"><a href="#impl-Send-for-ConcurrentDiscovery" 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.ConcurrentDiscovery.html" title="struct iroh::discovery::ConcurrentDiscovery">ConcurrentDiscovery</a></h3></section><section id="impl-Sync-for-ConcurrentDiscovery" class="impl"><a href="#impl-Sync-for-ConcurrentDiscovery" 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.ConcurrentDiscovery.html" title="struct iroh::discovery::ConcurrentDiscovery">ConcurrentDiscovery</a></h3></section><section id="impl-Unpin-for-ConcurrentDiscovery" class="impl"><a href="#impl-Unpin-for-ConcurrentDiscovery" 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.ConcurrentDiscovery.html" title="struct iroh::discovery::ConcurrentDiscovery">ConcurrentDiscovery</a></h3></section><section id="impl-UnwindSafe-for-ConcurrentDiscovery" class="impl"><a href="#impl-UnwindSafe-for-ConcurrentDiscovery" 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.ConcurrentDiscovery.html" title="struct iroh::discovery::ConcurrentDiscovery">ConcurrentDiscovery</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#140">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
|
||||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#141">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AsTaggedExplicit%3C'a,+E%3E-for-T" class="impl"><a href="#impl-AsTaggedExplicit%3C'a,+E%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<'a, T, E> AsTaggedExplicit<'a, E> for T<div class="where">where
|
||||
T: 'a,</div></h3></section></summary><div class="impl-items"><section id="method.explicit" class="method trait-impl"><a href="#method.explicit" class="anchor">§</a><h4 class="code-header">fn <a class="fn">explicit</a>(self, class: Class, tag: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> TaggedParser<'a, Explicit, Self, E></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AsTaggedImplicit%3C'a,+E%3E-for-T" class="impl"><a href="#impl-AsTaggedImplicit%3C'a,+E%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<'a, T, E> AsTaggedImplicit<'a, E> for T<div class="where">where
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
&self,
|
||||
_endpoint: <a class="struct" href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>,
|
||||
_node_id: <a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BoxStream<<a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.DiscoveryItem.html" title="struct iroh::discovery::DiscoveryItem">DiscoveryItem</a>>>> { ... }
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BoxStream<<a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.DiscoveryItem.html" title="struct iroh::discovery::DiscoveryItem">DiscoveryItem</a>>>> { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.subscribe" class="fn">subscribe</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BoxStream<<a class="struct" href="struct.DiscoveryItem.html" title="struct iroh::discovery::DiscoveryItem">DiscoveryItem</a>>> { ... }
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Node discovery for <a href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>super::Endpoint</code></a>.</p>
|
||||
<p>This trait defines publishing and resolving addressing information for a <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a>.
|
||||
@@ -27,7 +27,7 @@ These tasks will be run on the runtime of the <a href="../endpoint/struct.Endpoi
|
||||
&self,
|
||||
_endpoint: <a class="struct" href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>,
|
||||
_node_id: <a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BoxStream<<a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.DiscoveryItem.html" title="struct iroh::discovery::DiscoveryItem">DiscoveryItem</a>>>></h4></section></summary><div class="docblock"><p>Resolves the <a href="../struct.AddrInfo.html" title="struct iroh::AddrInfo"><code>AddrInfo</code></a> for the given <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a>.</p>
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BoxStream<<a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.DiscoveryItem.html" title="struct iroh::discovery::DiscoveryItem">DiscoveryItem</a>>>></h4></section></summary><div class="docblock"><p>Resolves the <a href="../struct.AddrInfo.html" title="struct iroh::AddrInfo"><code>AddrInfo</code></a> for the given <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a>.</p>
|
||||
<p>Once the returned [<code>BoxStream</code>] is dropped, the service should stop any pending
|
||||
work.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.subscribe" class="method"><a class="src rightside" href="../../src/iroh/discovery.rs.html#193-195">source</a><h4 class="code-header">fn <a href="#method.subscribe" class="fn">subscribe</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BoxStream<<a class="struct" href="struct.DiscoveryItem.html" title="struct iroh::discovery::DiscoveryItem">DiscoveryItem</a>>></h4></section></summary><div class="docblock"><p>Subscribe to all addresses that get <em>passively</em> discovered.</p>
|
||||
|
||||
@@ -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="Parses a `NodeId` from [`z-base-32`] encoding."><title>from_z32 in iroh::dns::node_info - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::dns::node_info</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../../index.html">iroh</a>::<wbr><a href="../index.html">dns</a>::<wbr><a href="index.html">node_info</a>::<wbr><a class="fn" href="#">from_z32</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/iroh/dns/node_info.rs.html#77-82">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn from_z32(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="type" href="../../type.NodeId.html" title="type iroh::NodeId">NodeId</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Parses a <a href="../../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> from [<code>z-base-32</code>] encoding.</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="Parses a `NodeId` from [`z-base-32`] encoding."><title>from_z32 in iroh::dns::node_info - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::dns::node_info</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../../index.html">iroh</a>::<wbr><a href="../index.html">dns</a>::<wbr><a href="index.html">node_info</a>::<wbr><a class="fn" href="#">from_z32</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/iroh/dns/node_info.rs.html#77-82">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn from_z32(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="type" href="../../type.NodeId.html" title="type iroh::NodeId">NodeId</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Parses a <a href="../../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> from [<code>z-base-32</code>] encoding.</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
@@ -4,83 +4,83 @@
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.lookup_ipv6" class="fn">lookup_ipv6</a><N: IntoName>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.lookup_ipv4_ipv6" class="fn">lookup_ipv4_ipv6</a><N: IntoName + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.lookup_by_name" class="fn">lookup_by_name</a>(
|
||||
&self,
|
||||
name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>>;
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.lookup_by_id" class="fn">lookup_by_id</a>(
|
||||
&self,
|
||||
node_id: &<a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>,
|
||||
origin: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>>;
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.lookup_ipv4_staggered" class="fn">lookup_ipv4_staggered</a><N: IntoName + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.lookup_ipv6_staggered" class="fn">lookup_ipv6_staggered</a><N: IntoName + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.lookup_ipv4_ipv6_staggered" class="fn">lookup_ipv4_ipv6_staggered</a><N: IntoName + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.lookup_by_name_staggered" class="fn">lookup_by_name_staggered</a>(
|
||||
&self,
|
||||
name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>>;
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.lookup_by_id_staggered" class="fn">lookup_by_id_staggered</a>(
|
||||
&self,
|
||||
node_id: &<a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>,
|
||||
origin: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>>;
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Extension trait to <a href="type.DnsResolver.html" title="type iroh::dns::DnsResolver"><code>DnsResolver</code></a>.</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.lookup_ipv4" class="method"><a class="src rightside" href="../../src/iroh/dns.rs.html#89-93">source</a><h4 class="code-header">fn <a href="#tymethod.lookup_ipv4" class="fn">lookup_ipv4</a><N: IntoName>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Perform an ipv4 lookup with a timeout.</p>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Perform an ipv4 lookup with a timeout.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.lookup_ipv6" class="method"><a class="src rightside" href="../../src/iroh/dns.rs.html#96-100">source</a><h4 class="code-header">fn <a href="#tymethod.lookup_ipv6" class="fn">lookup_ipv6</a><N: IntoName>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Perform an ipv6 lookup with a timeout.</p>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Perform an ipv6 lookup with a timeout.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.lookup_ipv4_ipv6" class="method"><a class="src rightside" href="../../src/iroh/dns.rs.html#103-107">source</a><h4 class="code-header">fn <a href="#tymethod.lookup_ipv4_ipv6" class="fn">lookup_ipv4_ipv6</a><N: IntoName + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Race an ipv4 and ipv6 lookup with a timeout.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.lookup_by_name" class="method"><a class="src rightside" href="../../src/iroh/dns.rs.html#110">source</a><h4 class="code-header">fn <a href="#tymethod.lookup_by_name" class="fn">lookup_by_name</a>(&self, name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>></h4></section></summary><div class="docblock"><p>Looks up node info by DNS name.</p>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Race an ipv4 and ipv6 lookup with a timeout.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.lookup_by_name" class="method"><a class="src rightside" href="../../src/iroh/dns.rs.html#110">source</a><h4 class="code-header">fn <a href="#tymethod.lookup_by_name" class="fn">lookup_by_name</a>(&self, name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>></h4></section></summary><div class="docblock"><p>Looks up node info by DNS name.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.lookup_by_id" class="method"><a class="src rightside" href="../../src/iroh/dns.rs.html#113-117">source</a><h4 class="code-header">fn <a href="#tymethod.lookup_by_id" class="fn">lookup_by_id</a>(
|
||||
&self,
|
||||
node_id: &<a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>,
|
||||
origin: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>></h4></section></summary><div class="docblock"><p>Looks up node info by <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> and origin domain name.</p>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>></h4></section></summary><div class="docblock"><p>Looks up node info by <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> and origin domain name.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.lookup_ipv4_staggered" class="method"><a class="src rightside" href="../../src/iroh/dns.rs.html#125-130">source</a><h4 class="code-header">fn <a href="#tymethod.lookup_ipv4_staggered" class="fn">lookup_ipv4_staggered</a><N: IntoName + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Perform an ipv4 lookup with a timeout in a staggered fashion.</p>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Perform an ipv4 lookup with a timeout in a staggered fashion.</p>
|
||||
<p>From the moment this function is called, each lookup is scheduled after the delays in
|
||||
<code>delays_ms</code> with the first call being done immediately. <code>[200ms, 300ms]</code> results in calls
|
||||
at T+0ms, T+200ms and T+300ms. The <code>timeout</code> is applied to each call individually. The
|
||||
@@ -90,7 +90,7 @@ result of the first successful call is returned, or a summary of all errors othe
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Perform an ipv6 lookup with a timeout in a staggered fashion.</p>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Perform an ipv6 lookup with a timeout in a staggered fashion.</p>
|
||||
<p>From the moment this function is called, each lookup is scheduled after the delays in
|
||||
<code>delays_ms</code> with the first call being done immediately. <code>[200ms, 300ms]</code> results in calls
|
||||
at T+0ms, T+200ms and T+300ms. The <code>timeout</code> is applied to each call individually. The
|
||||
@@ -100,7 +100,7 @@ result of the first successful call is returned, or a summary of all errors othe
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Race an ipv4 and ipv6 lookup with a timeout in a staggered fashion.</p>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>>></h4></section></summary><div class="docblock"><p>Race an ipv4 and ipv6 lookup with a timeout in a staggered fashion.</p>
|
||||
<p>From the moment this function is called, each lookup is scheduled after the delays in
|
||||
<code>delays_ms</code> with the first call being done immediately. <code>[200ms, 300ms]</code> results in calls
|
||||
at T+0ms, T+200ms and T+300ms. The <code>timeout</code> is applied as stated in
|
||||
@@ -110,7 +110,7 @@ summary of all errors otherwise.</p>
|
||||
&self,
|
||||
name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>></h4></section></summary><div class="docblock"><p>Looks up node info by DNS name in a staggered fashion.</p>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>></h4></section></summary><div class="docblock"><p>Looks up node info by DNS name in a staggered fashion.</p>
|
||||
<p>From the moment this function is called, each lookup is scheduled after the delays in
|
||||
<code>delays_ms</code> with the first call being done immediately. <code>[200ms, 300ms]</code> results in calls
|
||||
at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a
|
||||
@@ -120,7 +120,7 @@ summary of all errors otherwise.</p>
|
||||
node_id: &<a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>,
|
||||
origin: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>></h4></section></summary><div class="docblock"><p>Looks up node info by <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> and origin domain name.</p>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>></h4></section></summary><div class="docblock"><p>Looks up node info by <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> and origin domain name.</p>
|
||||
<p>From the moment this function is called, each lookup is scheduled after the delays in
|
||||
<code>delays_ms</code> with the first call being done immediately. <code>[200ms, 300ms]</code> results in calls
|
||||
at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a
|
||||
|
||||
@@ -3,20 +3,20 @@
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class="docblock"><p>Resolve IPv4 and IPv6 in parallel.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class="docblock"><p>Resolve IPv4 and IPv6 in parallel.</p>
|
||||
<p><code>LookupIpStrategy::Ipv4AndIpv6</code> will wait for ipv6 resolution timeout, even if it is
|
||||
not usable on the stack, so we manually query both lookups concurrently and time them out
|
||||
individually.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.lookup_by_name" class="method trait-impl"><a class="src rightside" href="../../src/iroh/dns.rs.html#233-237">source</a><a href="#method.lookup_by_name" class="anchor">§</a><h4 class="code-header">async fn <a href="trait.ResolverExt.html#tymethod.lookup_by_name" class="fn">lookup_by_name</a>(&self, name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Looks up node info by DNS name.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.lookup_by_name" class="method trait-impl"><a class="src rightside" href="../../src/iroh/dns.rs.html#233-237">source</a><a href="#method.lookup_by_name" class="anchor">§</a><h4 class="code-header">async fn <a href="trait.ResolverExt.html#tymethod.lookup_by_name" class="fn">lookup_by_name</a>(&self, name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Looks up node info by DNS name.</p>
|
||||
<p>The resource records returned for <code>name</code> must either contain an <a href="node_info/constant.IROH_TXT_NAME.html" title="constant iroh::dns::node_info::IROH_TXT_NAME"><code>node_info::IROH_TXT_NAME</code></a> TXT
|
||||
record or be a CNAME record that leads to an <a href="node_info/constant.IROH_TXT_NAME.html" title="constant iroh::dns::node_info::IROH_TXT_NAME"><code>node_info::IROH_TXT_NAME</code></a> TXT record.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.lookup_by_id" class="method trait-impl"><a class="src rightside" href="../../src/iroh/dns.rs.html#240-245">source</a><a href="#method.lookup_by_id" class="anchor">§</a><h4 class="code-header">async fn <a href="trait.ResolverExt.html#tymethod.lookup_by_id" class="fn">lookup_by_id</a>(&self, node_id: &<a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>, origin: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Looks up node info by <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> and origin domain name.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.lookup_by_id" class="method trait-impl"><a class="src rightside" href="../../src/iroh/dns.rs.html#240-245">source</a><a href="#method.lookup_by_id" class="anchor">§</a><h4 class="code-header">async fn <a href="trait.ResolverExt.html#tymethod.lookup_by_id" class="fn">lookup_by_id</a>(&self, node_id: &<a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>, origin: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Looks up node info by <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> and origin domain name.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.lookup_ipv4_staggered" class="method trait-impl"><a class="src rightside" href="../../src/iroh/dns.rs.html#253-261">source</a><a href="#method.lookup_ipv4_staggered" class="anchor">§</a><h4 class="code-header">async fn <a href="trait.ResolverExt.html#tymethod.lookup_ipv4_staggered" class="fn">lookup_ipv4_staggered</a><N: IntoName + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class="docblock"><p>Perform an ipv4 lookup with a timeout in a staggered fashion.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class="docblock"><p>Perform an ipv4 lookup with a timeout in a staggered fashion.</p>
|
||||
<p>From the moment this function is called, each lookup is scheduled after the delays in
|
||||
<code>delays_ms</code> with the first call being done immediately. <code>[200ms, 300ms]</code> results in calls
|
||||
at T+0ms, T+200ms and T+300ms. The <code>timeout</code> is applied to each call individually. The
|
||||
@@ -26,7 +26,7 @@ result of the first successful call is returned, or a summary of all errors othe
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class="docblock"><p>Perform an ipv6 lookup with a timeout in a staggered fashion.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class="docblock"><p>Perform an ipv6 lookup with a timeout in a staggered fashion.</p>
|
||||
<p>From the moment this function is called, each lookup is scheduled after the delays in
|
||||
<code>delays_ms</code> with the first call being done immediately. <code>[200ms, 300ms]</code> results in calls
|
||||
at T+0ms, T+200ms and T+300ms. The <code>timeout</code> is applied to each call individually. The
|
||||
@@ -36,7 +36,7 @@ result of the first successful call is returned, or a summary of all errors othe
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class="docblock"><p>Race an ipv4 and ipv6 lookup with a timeout in a staggered fashion.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class="docblock"><p>Race an ipv4 and ipv6 lookup with a timeout in a staggered fashion.</p>
|
||||
<p>From the moment this function is called, each lookup is scheduled after the delays in
|
||||
<code>delays_ms</code> with the first call being done immediately. <code>[200ms, 300ms]</code> results in calls
|
||||
at T+0ms, T+200ms and T+300ms. The <code>timeout</code> is applied as stated in
|
||||
@@ -46,7 +46,7 @@ summary of all errors otherwise.</p>
|
||||
&self,
|
||||
name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Looks up node info by DNS name in a staggered fashion.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Looks up node info by DNS name in a staggered fashion.</p>
|
||||
<p>From the moment this function is called, each lookup is scheduled after the delays in
|
||||
<code>delays_ms</code> with the first call being done immediately. <code>[200ms, 300ms]</code> results in calls
|
||||
at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a
|
||||
@@ -56,7 +56,7 @@ summary of all errors otherwise.</p>
|
||||
node_id: &<a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>,
|
||||
origin: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||||
delays_ms: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>]
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Looks up node info by <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> and origin domain name.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Looks up node info by <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> and origin domain name.</p>
|
||||
<p>From the moment this function is called, each lookup is scheduled after the delays in
|
||||
<code>delays_ms</code> with the first call being done immediately. <code>[200ms, 300ms]</code> results in calls
|
||||
at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a
|
||||
@@ -65,8 +65,8 @@ summary of all errors otherwise.</p>
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class='docblock'>Perform an ipv4 lookup with a timeout.</div></details><details class="toggle method-toggle" open><summary><section id="method.lookup_ipv6" class="method trait-impl"><a class="src rightside" href="../../src/iroh/dns.rs.html#195-202">source</a><a href="#method.lookup_ipv6" class="anchor">§</a><h4 class="code-header">async fn <a href="trait.ResolverExt.html#tymethod.lookup_ipv6" class="fn">lookup_ipv6</a><N: IntoName>(
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class='docblock'>Perform an ipv4 lookup with a timeout.</div></details><details class="toggle method-toggle" open><summary><section id="method.lookup_ipv6" class="method trait-impl"><a class="src rightside" href="../../src/iroh/dns.rs.html#195-202">source</a><a href="#method.lookup_ipv6" class="anchor">§</a><h4 class="code-header">async fn <a href="trait.ResolverExt.html#tymethod.lookup_ipv6" class="fn">lookup_ipv6</a><N: IntoName>(
|
||||
&self,
|
||||
host: N,
|
||||
timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class='docblock'>Perform an ipv6 lookup with a timeout.</div></details></div></details></div></section></div></main></body></html>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>>></h4></section></summary><div class='docblock'>Perform an ipv6 lookup with a timeout.</div></details></div></details></div></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
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="Extract the `PublicKey` from the peer’s TLS certificate."><title>get_remote_node_id in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::endpoint</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a>::<wbr><a class="fn" href="#">get_remote_node_id</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh/endpoint.rs.html#1289-1307">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn get_remote_node_id(connection: &<a class="struct" href="struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../key/struct.PublicKey.html" title="struct iroh::key::PublicKey">PublicKey</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Extract the <a href="../key/struct.PublicKey.html" title="struct iroh::key::PublicKey"><code>PublicKey</code></a> from the peer’s TLS certificate.</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="Extract the `PublicKey` from the peer’s TLS certificate."><title>get_remote_node_id in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::endpoint</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a>::<wbr><a class="fn" href="#">get_remote_node_id</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh/endpoint.rs.html#1289-1307">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn get_remote_node_id(connection: &<a class="struct" href="struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../key/struct.PublicKey.html" title="struct iroh::key::PublicKey">PublicKey</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Extract the <a href="../key/struct.PublicKey.html" title="struct iroh::key::PublicKey"><code>PublicKey</code></a> from the peer’s TLS certificate.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -4,5 +4,5 @@
|
||||
alpn_protocols: <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>>>,
|
||||
transport_config: <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="struct.TransportConfig.html" title="struct iroh::endpoint::TransportConfig">TransportConfig</a>>,
|
||||
keylog: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.ServerConfig.html" title="struct iroh::endpoint::ServerConfig">ServerConfig</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a <a href="struct.ServerConfig.html" title="struct iroh::endpoint::ServerConfig"><code>ServerConfig</code></a> with the given secret key and limits.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.ServerConfig.html" title="struct iroh::endpoint::ServerConfig">ServerConfig</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a <a href="struct.ServerConfig.html" title="struct iroh::endpoint::ServerConfig"><code>ServerConfig</code></a> with the given secret key and limits.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
||||
<p>By default the endpoint will generate a new random <a href="../key/struct.SecretKey.html" title="struct iroh::key::SecretKey"><code>SecretKey</code></a>, which will result in a
|
||||
new <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</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#127-435">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.bind" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#134-169">source</a><h4 class="code-header">pub async fn <a href="#method.bind" class="fn">bind</a>(self) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>></h4></section></summary><div class="docblock"><p>Binds the magic endpoint.</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#127-435">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.bind" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#134-169">source</a><h4 class="code-header">pub async fn <a href="#method.bind" class="fn">bind</a>(self) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>></h4></section></summary><div class="docblock"><p>Binds the magic endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.bind_addr_v4" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#179-182">source</a><h4 class="code-header">pub fn <a href="#method.bind_addr_v4" class="fn">bind_addr_v4</a>(self, addr: <a class="struct" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/struct.SocketAddrV4.html" title="struct core::net::socket_addr::SocketAddrV4">SocketAddrV4</a>) -> Self</h4></section></summary><div class="docblock"><p>Sets the IPv4 bind address.</p>
|
||||
<p>Setting the port to <code>0</code> will use a random port.
|
||||
If the port specified is already in use, it will fallback to choosing a random port.</p>
|
||||
@@ -81,7 +81,7 @@ zero.</p>
|
||||
<p>By default, all endpoints share a DNS resolver, which is configured to use the
|
||||
host system’s DNS configuration. You can pass a custom instance of <a href="../dns/type.DnsResolver.html" title="type iroh::dns::DnsResolver"><code>DnsResolver</code></a>
|
||||
here to use a differently configured DNS resolver for this endpoint.</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#398-401">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.3/url/struct.Url.html" title="struct url::Url">Url</a>) -> 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_url" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#398-401">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.4/url/struct.Url.html" title="struct url::Url">Url</a>) -> 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#409-412">source</a><h4 class="code-header">pub fn <a href="#method.proxy_from_env" class="fn">proxy_from_env</a>(self) -> 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>
|
||||
|
||||
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
@@ -15,14 +15,14 @@ behaviour.</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#509-1074">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#517-519">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><details class="toggle method-toggle" open><summary><section id="method.set_alpns" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#565-569">source</a><h4 class="code-header">pub fn <a href="#method.set_alpns" class="fn">set_alpns</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="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Sets the list of accepted ALPN protocols.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_alpns" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#565-569">source</a><h4 class="code-header">pub fn <a href="#method.set_alpns" class="fn">set_alpns</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="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Sets the list of accepted ALPN protocols.</p>
|
||||
<p>This will only affect new incoming connections.
|
||||
Note that this <em>overrides</em> the current list of ALPNs.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#595">source</a><h4 class="code-header">pub async fn <a href="#method.connect" class="fn">connect</a>(
|
||||
&self,
|
||||
node_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.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>>,
|
||||
alpn: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>></h4></section></summary><div class="docblock"><p>Connects to a remote <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>></h4></section></summary><div class="docblock"><p>Connects to a remote <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<p>A value that can be converted into a <a href="../struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a> is required. This can be either a
|
||||
<a href="../struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a>, a <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> or a <a href="../ticket/struct.NodeTicket.html" title="struct iroh::ticket::NodeTicket"><code>iroh_base::ticket::NodeTicket</code></a>.</p>
|
||||
<p>The <a href="../struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a> must contain the <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> to dial and may also contain a <a href="../struct.RelayUrl.html" title="struct iroh::RelayUrl"><code>RelayUrl</code></a>
|
||||
@@ -45,7 +45,7 @@ If multiple ALPNs have been configured the ALPN can be inspected before acceptin
|
||||
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.add_node_addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#722-724">source</a><h4 class="code-header">pub fn <a href="#method.add_node_addr" class="fn">add_node_addr</a>(&self, node_addr: <a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Informs this <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> about addresses of the iroh node.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_node_addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#722-724">source</a><h4 class="code-header">pub fn <a href="#method.add_node_addr" class="fn">add_node_addr</a>(&self, node_addr: <a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Informs this <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> about addresses of the iroh node.</p>
|
||||
<p>This updates the local state for the remote node. If the provided <a href="../struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a>
|
||||
contains a <a href="../struct.RelayUrl.html" title="struct iroh::RelayUrl"><code>RelayUrl</code></a> this will be used as the new relay server for this node. If
|
||||
it contains any new IP endpoints they will also be stored and tried when next
|
||||
@@ -59,7 +59,7 @@ direct addresses are a subset of ours.</p>
|
||||
&self,
|
||||
node_addr: <a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>,
|
||||
source: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Informs this <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> about addresses of the iroh node, noting the source.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Informs this <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> about addresses of the iroh node, noting the source.</p>
|
||||
<p>This updates the local state for the remote node. If the provided <a href="../struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a> contains a
|
||||
<a href="../struct.RelayUrl.html" title="struct iroh::RelayUrl"><code>RelayUrl</code></a> this will be used as the new relay server for this node. If it contains any
|
||||
new IP endpoints they will also be stored and tried when next connecting to this node. Any
|
||||
@@ -72,7 +72,7 @@ direct addresses are a subset of ours.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_id" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#773-775">source</a><h4 class="code-header">pub fn <a href="#method.node_id" class="fn">node_id</a>(&self) -> <a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a></h4></section></summary><div class="docblock"><p>Returns the node id of this endpoint.</p>
|
||||
<p>This ID is the unique addressing information of this node and other peers must know
|
||||
it to be able to connect to this node.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#782-794">source</a><h4 class="code-header">pub async fn <a href="#method.node_addr" class="fn">node_addr</a>(&self) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Returns the current <a href="../struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a> for this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_addr" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#782-794">source</a><h4 class="code-header">pub async fn <a href="#method.node_addr" class="fn">node_addr</a>(&self) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Returns the current <a href="../struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a> for this endpoint.</p>
|
||||
<p>The returned <a href="../struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a> will have the current <a href="../struct.RelayUrl.html" title="struct iroh::RelayUrl"><code>RelayUrl</code></a> and local IP endpoints
|
||||
as they would be returned by <a href="struct.Endpoint.html#method.home_relay" title="method iroh::endpoint::Endpoint::home_relay"><code>Endpoint::home_relay</code></a> and
|
||||
<a href="struct.Endpoint.html#method.direct_addresses" title="method iroh::endpoint::Endpoint::direct_addresses"><code>Endpoint::direct_addresses</code></a>.</p>
|
||||
@@ -134,7 +134,7 @@ by this <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><
|
||||
the best path to a node. This returns all the nodes it knows about, regardless of whether a
|
||||
connection was ever made or is even possible.</p>
|
||||
<p>See also <a href="struct.Endpoint.html#method.remote_info" title="method iroh::endpoint::Endpoint::remote_info"><code>Endpoint::remote_info</code></a> to only retrieve information about a single node.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.conn_type_stream" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#924-926">source</a><h4 class="code-header">pub fn <a href="#method.conn_type_stream" class="fn">conn_type_stream</a>(&self, node_id: <a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.ConnectionTypeStream.html" title="struct iroh::endpoint::ConnectionTypeStream">ConnectionTypeStream</a>></h4></section></summary><div class="docblock"><p>Returns a stream that reports connection type changes for the remote node.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.conn_type_stream" class="method"><a class="src rightside" href="../../src/iroh/endpoint.rs.html#924-926">source</a><h4 class="code-header">pub fn <a href="#method.conn_type_stream" class="fn">conn_type_stream</a>(&self, node_id: <a class="type" href="../type.NodeId.html" title="type iroh::NodeId">NodeId</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.ConnectionTypeStream.html" title="struct iroh::endpoint::ConnectionTypeStream">ConnectionTypeStream</a>></h4></section></summary><div class="docblock"><p>Returns a stream that reports connection type changes for the remote node.</p>
|
||||
<p>This returns a stream of <a href="enum.ConnectionType.html" title="enum iroh::endpoint::ConnectionType"><code>ConnectionType</code></a> items, each time the underlying
|
||||
connection to a remote node changes it yields an item. These connection changes are
|
||||
when the connection switches between using the Relay server and a direct connection.</p>
|
||||
@@ -159,7 +159,7 @@ function allows for notifying iroh of any potential network changes like
|
||||
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>
|
||||
</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#977-990">source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(&self) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Closes the QUIC endpoint and the magic 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#977-990">source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(&self) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Closes the QUIC endpoint and the magic 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>
|
||||
|
||||
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
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="The blake3 hash used in Iroh."><title>iroh::hash - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">Module hash</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></section><h2><a href="../index.html">In crate iroh</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">iroh</a>::<wbr><a class="mod" href="#">hash</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The blake3 hash used in Iroh.</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 blake3 hash used in Iroh."><title>iroh::hash - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">Module hash</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></section><h2><a href="../index.html">In crate iroh</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">iroh</a>::<wbr><a class="mod" href="#">hash</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh_base/lib.rs.html#9">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The blake3 hash used in Iroh.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Hash.html" title="struct iroh::hash::Hash">Hash</a></div><div class="desc docblock-short">Hash type used throughout.</div></li><li><div class="item-name"><a class="struct" href="struct.HashAndFormat.html" title="struct iroh::hash::HashAndFormat">HashAndFormat</a></div><div class="desc docblock-short">A hash and format pair</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.BlobFormat.html" title="enum iroh::hash::BlobFormat">BlobFormat</a></div><div class="desc docblock-short">A format identifier</div></li></ul></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
@@ -162,5 +162,5 @@ connecting using only the <a href="type.NodeId.html" title="type iroh::NodeId"><
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}</code></pre></div>
|
||||
<p>Please see the examples directory for more nuanced examples.</p>
|
||||
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name" id="reexport.Endpoint"><code>pub use endpoint::<a class="struct" href="endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>;</code></div></li><li><div class="item-name" id="reexport.RelayMode"><code>pub use endpoint::<a class="enum" href="endpoint/enum.RelayMode.html" title="enum iroh::endpoint::RelayMode">RelayMode</a>;</code></div></li><li><div class="item-name" id="reexport.relay"><code>pub use iroh_relay as relay;</code></div></li></ul><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="defaults/index.html" title="mod iroh::defaults">defaults</a></div><div class="desc docblock-short">Default values used in <a href="index.html" title="mod iroh"><code>iroh</code></a></div></li><li><div class="item-name"><a class="mod" href="dialer/index.html" title="mod iroh::dialer">dialer</a></div><div class="desc docblock-short">A dialer to conveniently dial many nodes.</div></li><li><div class="item-name"><a class="mod" href="discovery/index.html" title="mod iroh::discovery">discovery</a></div><div class="desc docblock-short">Node address discovery.</div></li><li><div class="item-name"><a class="mod" href="dns/index.html" title="mod iroh::dns">dns</a></div><div class="desc docblock-short">This module exports a DNS resolver, which is also the default resolver used in the
|
||||
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name" id="reexport.Endpoint"><code>pub use endpoint::<a class="struct" href="endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>;</code></div></li><li><div class="item-name" id="reexport.RelayMode"><code>pub use endpoint::<a class="enum" href="endpoint/enum.RelayMode.html" title="enum iroh::endpoint::RelayMode">RelayMode</a>;</code></div></li><li><div class="item-name" id="reexport.relay"><code>pub use <a class="mod" href="../iroh_relay/index.html" title="mod iroh_relay">iroh_relay</a> as relay;</code></div></li></ul><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="defaults/index.html" title="mod iroh::defaults">defaults</a></div><div class="desc docblock-short">Default values used in <a href="index.html" title="mod iroh"><code>iroh</code></a></div></li><li><div class="item-name"><a class="mod" href="dialer/index.html" title="mod iroh::dialer">dialer</a></div><div class="desc docblock-short">A dialer to conveniently dial many nodes.</div></li><li><div class="item-name"><a class="mod" href="discovery/index.html" title="mod iroh::discovery">discovery</a></div><div class="desc docblock-short">Node address discovery.</div></li><li><div class="item-name"><a class="mod" href="dns/index.html" title="mod iroh::dns">dns</a></div><div class="desc docblock-short">This module exports a DNS resolver, which is also the default resolver used in the
|
||||
<a href="endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>crate::Endpoint</code></a> if no custom resolver is configured.</div></li><li><div class="item-name"><a class="mod" href="endpoint/index.html" title="mod iroh::endpoint">endpoint</a></div><div class="desc docblock-short">The <a href="endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> allows establishing connections to other iroh nodes.</div></li><li><div class="item-name"><a class="mod" href="hash/index.html" title="mod iroh::hash">hash</a></div><div class="desc docblock-short">The blake3 hash used in Iroh.</div></li><li><div class="item-name"><a class="mod" href="key/index.html" title="mod iroh::key">key</a></div><div class="desc docblock-short">Cryptographic key handling for <code>iroh</code>.</div></li><li><div class="item-name"><a class="mod" href="metrics/index.html" title="mod iroh::metrics">metrics</a></div><div class="desc docblock-short">Co-locating all of the iroh metrics structs</div></li><li><div class="item-name"><a class="mod" href="protocol/index.html" title="mod iroh::protocol">protocol</a></div><div class="desc docblock-short">Tools for spawning an accept loop that routes incoming requests to the right protocol.</div></li><li><div class="item-name"><a class="mod" href="test_utils/index.html" title="mod iroh::test_utils">test_utils</a><span class="stab portability" title="Available on `test` or crate feature `test-utils` only"><code>test</code> or <code>test-utils</code></span></div><div class="desc docblock-short">Internal utilities to support testing.</div></li><li><div class="item-name"><a class="mod" href="ticket/index.html" title="mod iroh::ticket">ticket</a></div></li><li><div class="item-name"><a class="mod" href="tls/index.html" title="mod iroh::tls">tls</a></div><div class="desc docblock-short">TLS configuration for iroh.</div></li></ul><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.AddrInfo.html" title="struct iroh::AddrInfo">AddrInfo</a></div><div class="desc docblock-short">Network paths to contact an iroh node.</div></li><li><div class="item-name"><a class="struct" href="struct.NodeAddr.html" title="struct iroh::NodeAddr">NodeAddr</a></div><div class="desc docblock-short">Network-level addressing information for an iroh node.</div></li><li><div class="item-name"><a class="struct" href="struct.RelayMap.html" title="struct iroh::RelayMap">RelayMap</a></div><div class="desc docblock-short">Configuration of all the relay servers that can be used.</div></li><li><div class="item-name"><a class="struct" href="struct.RelayNode.html" title="struct iroh::RelayNode">RelayNode</a></div><div class="desc docblock-short">Information on a specific relay server.</div></li><li><div class="item-name"><a class="struct" href="struct.RelayUrl.html" title="struct iroh::RelayUrl">RelayUrl</a></div><div class="desc docblock-short">A URL identifying a relay server.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.AddrInfoOptions.html" title="enum iroh::AddrInfoOptions">AddrInfoOptions</a></div><div class="desc docblock-short">Options to configure what is included in a <a href="struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a> and <a href="struct.AddrInfo.html" title="struct iroh::AddrInfo"><code>AddrInfo</code></a>.</div></li></ul><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.NodeId.html" title="type iroh::NodeId">NodeId</a></div><div class="desc docblock-short">The identifier for a node in the (iroh) network.</div></li></ul></section></div></main></body></html>
|
||||
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="Cryptographic key handling for `iroh`."><title>iroh::key - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">Module key</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#types">Type Aliases</a></li></ul></section><h2><a href="../index.html">In crate iroh</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">iroh</a>::<wbr><a class="mod" href="#">key</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Cryptographic key handling for <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="Cryptographic key handling for `iroh`."><title>iroh::key - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">Module key</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#types">Type Aliases</a></li></ul></section><h2><a href="../index.html">In crate iroh</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">iroh</a>::<wbr><a class="mod" href="#">key</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh_base/lib.rs.html#12">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Cryptographic key handling for <code>iroh</code>.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.PublicKey.html" title="struct iroh::key::PublicKey">PublicKey</a></div><div class="desc docblock-short">A public key.</div></li><li><div class="item-name"><a class="struct" href="struct.SecretKey.html" title="struct iroh::key::SecretKey">SecretKey</a></div><div class="desc docblock-short">A secret key.</div></li><li><div class="item-name"><a class="struct" href="struct.SharedSecret.html" title="struct iroh::key::SharedSecret">SharedSecret</a></div><div class="desc docblock-short">Shared Secret.</div></li><li><div class="item-name"><a class="struct" href="struct.Signature.html" title="struct iroh::key::Signature">Signature</a></div><div class="desc docblock-short">Ed25519 signature.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.KeyParsingError.html" title="enum iroh::key::KeyParsingError">KeyParsingError</a></div><div class="desc docblock-short">Error when deserialising a <a href="struct.PublicKey.html" title="struct iroh::key::PublicKey"><code>PublicKey</code></a> or a <a href="struct.SecretKey.html" title="struct iroh::key::SecretKey"><code>SecretKey</code></a>.</div></li></ul><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="constant" href="constant.PUBLIC_KEY_LENGTH.html" title="constant iroh::key::PUBLIC_KEY_LENGTH">PUBLIC_KEY_LENGTH</a></div><div class="desc docblock-short">The length of an ed25519 <code>PublicKey</code>, in bytes.</div></li></ul><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.NodeId.html" title="type iroh::key::NodeId">NodeId</a></div><div class="desc docblock-short">The identifier for a node in the (iroh) network.</div></li></ul></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,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 identifier for a node in the (iroh) network."><title>NodeId in iroh::key - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">NodeId</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3></section><h2><a href="index.html">In iroh::key</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Type Alias <a href="../index.html">iroh</a>::<wbr><a href="index.html">key</a>::<wbr><a class="type" href="#">NodeId</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type NodeId = <a class="struct" href="struct.PublicKey.html" title="struct iroh::key::PublicKey">PublicKey</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The identifier for a node in the (iroh) network.</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 identifier for a node in the (iroh) network."><title>NodeId in iroh::key - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">NodeId</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3></section><h2><a href="index.html">In iroh::key</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Type Alias <a href="../index.html">iroh</a>::<wbr><a href="index.html">key</a>::<wbr><a class="type" href="#">NodeId</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh_base/key.rs.html#111">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type NodeId = <a class="struct" href="struct.PublicKey.html" title="struct iroh::key::PublicKey">PublicKey</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The identifier for a node in the (iroh) network.</p>
|
||||
<p>Each node in iroh has a unique identifier created as a cryptographic key. This can be
|
||||
used to globally identify a node. Since it is also a cryptographic key it is also the
|
||||
mechanism by which all traffic is always encrypted for a specific node only.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -19,7 +19,7 @@ router.shutdown().<span class="kw">await</span><span class="question-mark">?</sp
|
||||
</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-Router" class="impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#169-209">source</a><a href="#impl-Router" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Router.html" title="struct iroh::protocol::Router">Router</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/protocol.rs.html#171-173">source</a><h4 class="code-header">pub fn <a href="#method.builder" class="fn">builder</a>(endpoint: <a class="struct" href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>) -> <a class="struct" href="struct.RouterBuilder.html" title="struct iroh::protocol::RouterBuilder">RouterBuilder</a></h4></section></summary><div class="docblock"><p>Creates a new <a href="struct.Router.html" title="struct iroh::protocol::Router"><code>Router</code></a> using given <a href="../endpoint/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.endpoint" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#176-178">source</a><h4 class="code-header">pub fn <a href="#method.endpoint" class="fn">endpoint</a>(&self) -> &<a class="struct" href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a></h4></section></summary><div class="docblock"><p>Returns the <a href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> stored in this router.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_shutdown" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#181-183">source</a><h4 class="code-header">pub fn <a href="#method.is_shutdown" class="fn">is_shutdown</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>Checks if the router is already shutdown.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.shutdown" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#194-208">source</a><h4 class="code-header">pub async fn <a href="#method.shutdown" class="fn">shutdown</a>(&self) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Shuts down the accept loop cleanly.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.shutdown" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#194-208">source</a><h4 class="code-header">pub async fn <a href="#method.shutdown" class="fn">shutdown</a>(&self) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Shuts down the accept loop cleanly.</p>
|
||||
<p>When this function returns, all <a href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler"><code>ProtocolHandler</code></a>s will be shutdown and
|
||||
<code>Endpoint::close</code> will have been called.</p>
|
||||
<p>If already shutdown, it returns <code>Ok</code>.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
||||
<!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="Handler for incoming connections."><title>ProtocolHandler in iroh::protocol - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">ProtocolHandler</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.accept">accept</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.shutdown">shutdown</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ProtocolHandler-for-Arc%3CT%3E">Arc<T></a></li><li><a href="#impl-ProtocolHandler-for-Box%3CT%3E">Box<T></a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In iroh::protocol</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">iroh</a>::<wbr><a href="index.html">protocol</a>::<wbr><a class="trait" href="#">ProtocolHandler</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh/protocol.rs.html#108-118">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait ProtocolHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + 'static {
|
||||
// Required method
|
||||
fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connecting.html" title="struct iroh::endpoint::Connecting">Connecting</a>) -> BoxedFuture<<a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>;
|
||||
fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connecting.html" title="struct iroh::endpoint::Connecting">Connecting</a>) -> BoxedFuture<<a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>;
|
||||
|
||||
// Provided method
|
||||
fn <a href="#method.shutdown" class="fn">shutdown</a>(&self) -> BoxedFuture<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> { ... }
|
||||
@@ -10,7 +10,7 @@
|
||||
<p>Implement this trait on a struct that should handle incoming connections.
|
||||
The protocol handler must then be registered on the node for an ALPN protocol with
|
||||
<a href="struct.RouterBuilder.html#method.accept" title="method iroh::protocol::RouterBuilder::accept"><code>crate::protocol::RouterBuilder::accept</code></a>.</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.accept" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#112">source</a><h4 class="code-header">fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connecting.html" title="struct iroh::endpoint::Connecting">Connecting</a>) -> BoxedFuture<<a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></h4></section></summary><div class="docblock"><p>Handle an incoming connection.</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.accept" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#112">source</a><h4 class="code-header">fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connecting.html" title="struct iroh::endpoint::Connecting">Connecting</a>) -> BoxedFuture<<a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></h4></section></summary><div class="docblock"><p>Handle an incoming connection.</p>
|
||||
<p>This runs on a freshly spawned tokio task so this can be long-running.</p>
|
||||
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.shutdown" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#115-117">source</a><h4 class="code-header">fn <a href="#method.shutdown" class="fn">shutdown</a>(&self) -> BoxedFuture<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Called when the node shuts down.</p>
|
||||
</div></details></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-ProtocolHandler-for-Box%3CT%3E" class="impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#130-138">source</a><a href="#impl-ProtocolHandler-for-Box%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a>> <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T></h3></section></summary><div class="impl-items"><section id="method.accept" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#131-133">source</a><a href="#method.accept" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connecting.html" title="struct iroh::endpoint::Connecting">Connecting</a>) -> BoxedFuture<<a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></h4></section><section id="method.shutdown-1" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#135-137">source</a><a href="#method.shutdown-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.shutdown" class="fn">shutdown</a>(&self) -> BoxedFuture<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ProtocolHandler-for-Arc%3CT%3E" class="impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#120-128">source</a><a href="#impl-ProtocolHandler-for-Arc%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a>> <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><T></h3></section></summary><div class="impl-items"><section id="method.accept-1" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#121-123">source</a><a href="#method.accept-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connecting.html" title="struct iroh::endpoint::Connecting">Connecting</a>) -> BoxedFuture<<a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></h4></section><section id="method.shutdown-2" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#125-127">source</a><a href="#method.shutdown-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.shutdown" class="fn">shutdown</a>(&self) -> BoxedFuture<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</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/protocol/trait.ProtocolHandler.js" data-ignore-extern-crates="alloc" async></script></section></div></main></body></html>
|
||||
</div></details></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-ProtocolHandler-for-Box%3CT%3E" class="impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#130-138">source</a><a href="#impl-ProtocolHandler-for-Box%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a>> <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T></h3></section></summary><div class="impl-items"><section id="method.accept" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#131-133">source</a><a href="#method.accept" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connecting.html" title="struct iroh::endpoint::Connecting">Connecting</a>) -> BoxedFuture<<a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></h4></section><section id="method.shutdown-1" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#135-137">source</a><a href="#method.shutdown-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.shutdown" class="fn">shutdown</a>(&self) -> BoxedFuture<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ProtocolHandler-for-Arc%3CT%3E" class="impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#120-128">source</a><a href="#impl-ProtocolHandler-for-Arc%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a>> <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><T></h3></section></summary><div class="impl-items"><section id="method.accept-1" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#121-123">source</a><a href="#method.accept-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connecting.html" title="struct iroh::endpoint::Connecting">Connecting</a>) -> BoxedFuture<<a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></h4></section><section id="method.shutdown-2" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#125-127">source</a><a href="#method.shutdown-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.shutdown" class="fn">shutdown</a>(&self) -> BoxedFuture<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</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/protocol/trait.ProtocolHandler.js" data-ignore-extern-crates="alloc" 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
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,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="Create a DNS resolver with a single nameserver."><title>create_dns_resolver in iroh::test_utils - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::test_utils</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">iroh</a>::<wbr><a href="index.html">test_utils</a>::<wbr><a class="fn" href="#">create_dns_resolver</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh/test_utils.rs.html#255-262">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn create_dns_resolver(nameserver: <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>) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><TokioAsyncResolver></code></pre><span class="item-info"><div class="stab portability">Available on <strong><code>test</code> or crate feature <code>test-utils</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a DNS resolver with a single nameserver.</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="Create a DNS resolver with a single nameserver."><title>create_dns_resolver in iroh::test_utils - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::test_utils</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">iroh</a>::<wbr><a href="index.html">test_utils</a>::<wbr><a class="fn" href="#">create_dns_resolver</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh/test_utils.rs.html#255-262">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn create_dns_resolver(nameserver: <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>) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><TokioAsyncResolver></code></pre><span class="item-info"><div class="stab portability">Available on <strong><code>test</code> or crate feature <code>test-utils</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a DNS resolver with a single nameserver.</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="Runs a relay server with STUN and QUIC enabled suitable for tests."><title>run_relay_server in iroh::test_utils - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::test_utils</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">iroh</a>::<wbr><a href="index.html">test_utils</a>::<wbr><a class="fn" href="#">run_relay_server</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh/test_utils.rs.html#28-36">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub async fn run_relay_server() -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><(<a class="struct" href="../struct.RelayMap.html" title="struct iroh::RelayMap">RelayMap</a>, <a class="struct" href="../struct.RelayUrl.html" title="struct iroh::RelayUrl">RelayUrl</a>, Server)></code></pre><span class="item-info"><div class="stab portability">Available on <strong><code>test</code> or crate feature <code>test-utils</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Runs a relay server with STUN and QUIC enabled suitable for tests.</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="Runs a relay server with STUN and QUIC enabled suitable for tests."><title>run_relay_server in iroh::test_utils - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::test_utils</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">iroh</a>::<wbr><a href="index.html">test_utils</a>::<wbr><a class="fn" href="#">run_relay_server</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh/test_utils.rs.html#28-36">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub async fn run_relay_server() -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><(<a class="struct" href="../struct.RelayMap.html" title="struct iroh::RelayMap">RelayMap</a>, <a class="struct" href="../struct.RelayUrl.html" title="struct iroh::RelayUrl">RelayUrl</a>, <a class="struct" href="../../iroh_relay/server/struct.Server.html" title="struct iroh_relay::server::Server">Server</a>)></code></pre><span class="item-info"><div class="stab portability">Available on <strong><code>test</code> or crate feature <code>test-utils</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Runs a relay server with STUN and QUIC enabled suitable for tests.</p>
|
||||
<p>The returned <code>Url</code> is the url of the relay server in the returned <a href="../struct.RelayMap.html" title="struct iroh::RelayMap"><code>RelayMap</code></a>.
|
||||
When dropped, the returned [<code>Server</code>] does will stop running.</p>
|
||||
When dropped, the returned <a href="../../iroh_relay/server/struct.Server.html" title="struct iroh_relay::server::Server"><code>Server</code></a> does will stop running.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -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="Runs a relay server."><title>run_relay_server_with in iroh::test_utils - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::test_utils</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">iroh</a>::<wbr><a href="index.html">test_utils</a>::<wbr><a class="fn" href="#">run_relay_server_with</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh/test_utils.rs.html#61-107">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub async fn run_relay_server_with(
|
||||
stun: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><StunConfig>,
|
||||
stun: <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_relay/server/struct.StunConfig.html" title="struct iroh_relay::server::StunConfig">StunConfig</a>>,
|
||||
quic: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><(<a class="struct" href="../struct.RelayMap.html" title="struct iroh::RelayMap">RelayMap</a>, <a class="struct" href="../struct.RelayUrl.html" title="struct iroh::RelayUrl">RelayUrl</a>, Server)></code></pre><span class="item-info"><div class="stab portability">Available on <strong><code>test</code> or crate feature <code>test-utils</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Runs a relay server.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><(<a class="struct" href="../struct.RelayMap.html" title="struct iroh::RelayMap">RelayMap</a>, <a class="struct" href="../struct.RelayUrl.html" title="struct iroh::RelayUrl">RelayUrl</a>, <a class="struct" href="../../iroh_relay/server/struct.Server.html" title="struct iroh_relay::server::Server">Server</a>)></code></pre><span class="item-info"><div class="stab portability">Available on <strong><code>test</code> or crate feature <code>test-utils</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Runs a relay server.</p>
|
||||
<p><code>stun</code> can be set to <code>None</code> to disable stun, or set to <code>Some</code> <code>StunConfig</code>,
|
||||
to enable stun on a specific socket.</p>
|
||||
<p>If <code>quic</code> is set to <code>true</code>, it will make the appropriate [<code>QuicConfig</code>] from the generated tls certificates and run the quic server at a random free port.</p>
|
||||
<p>If <code>quic</code> is set to <code>true</code>, it will make the appropriate <a href="../../iroh_relay/server/struct.QuicConfig.html" title="struct iroh_relay::server::QuicConfig"><code>QuicConfig</code></a> from the generated tls certificates and run the quic server at a random free port.</p>
|
||||
<p>The return value is similar to <a href="fn.run_relay_server.html" title="fn iroh::test_utils::run_relay_server"><code>run_relay_server</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -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="Runs a relay server with STUN enabled suitable for tests."><title>run_relay_server_with_stun in iroh::test_utils - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::test_utils</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">iroh</a>::<wbr><a href="index.html">test_utils</a>::<wbr><a class="fn" href="#">run_relay_server_with_stun</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh/test_utils.rs.html#42-50">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub async fn run_relay_server_with_stun(
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a><(<a class="struct" href="../struct.RelayMap.html" title="struct iroh::RelayMap">RelayMap</a>, <a class="struct" href="../struct.RelayUrl.html" title="struct iroh::RelayUrl">RelayUrl</a>, Server)></code></pre><span class="item-info"><div class="stab portability">Available on <strong><code>test</code> or crate feature <code>test-utils</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Runs a relay server with STUN enabled suitable for tests.</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.94/anyhow/type.Result.html" title="type anyhow::Result">Result</a><(<a class="struct" href="../struct.RelayMap.html" title="struct iroh::RelayMap">RelayMap</a>, <a class="struct" href="../struct.RelayUrl.html" title="struct iroh::RelayUrl">RelayUrl</a>, <a class="struct" href="../../iroh_relay/server/struct.Server.html" title="struct iroh_relay::server::Server">Server</a>)></code></pre><span class="item-info"><div class="stab portability">Available on <strong><code>test</code> or crate feature <code>test-utils</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Runs a relay server with STUN enabled suitable for tests.</p>
|
||||
<p>The returned <code>Url</code> is the url of the relay server in the returned <a href="../struct.RelayMap.html" title="struct iroh::RelayMap"><code>RelayMap</code></a>.
|
||||
When dropped, the returned [<code>Server</code>] does will stop running.</p>
|
||||
When dropped, the returned <a href="../../iroh_relay/server/struct.Server.html" title="struct iroh_relay::server::Server"><code>Server</code></a> does will stop running.</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
@@ -1 +1 @@
|
||||
<!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="API documentation for the Rust `ticket` mod in crate `iroh`."><title>iroh::ticket - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">Module ticket</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></section><h2><a href="../index.html">In crate iroh</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">iroh</a>::<wbr><a class="mod" href="#">ticket</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.BlobTicket.html" title="struct iroh::ticket::BlobTicket">BlobTicket</a></div><div class="desc docblock-short">A token containing everything to get a file from the provider.</div></li><li><div class="item-name"><a class="struct" href="struct.NodeTicket.html" title="struct iroh::ticket::NodeTicket">NodeTicket</a></div><div class="desc docblock-short">A token containing information for establishing a connection to a node.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.Error.html" title="enum iroh::ticket::Error">Error</a></div><div class="desc docblock-short">An error deserializing an iroh ticket.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.Ticket.html" title="trait iroh::ticket::Ticket">Ticket</a></div><div class="desc docblock-short">A ticket is a serializable object combining information required for an operation.</div></li></ul></section></div></main></body></html>
|
||||
<!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="API documentation for the Rust `ticket` mod in crate `iroh`."><title>iroh::ticket - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">Module ticket</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></section><h2><a href="../index.html">In crate iroh</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">iroh</a>::<wbr><a class="mod" href="#">ticket</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh_base/lib.rs.html#23">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.BlobTicket.html" title="struct iroh::ticket::BlobTicket">BlobTicket</a></div><div class="desc docblock-short">A token containing everything to get a file from the provider.</div></li><li><div class="item-name"><a class="struct" href="struct.NodeTicket.html" title="struct iroh::ticket::NodeTicket">NodeTicket</a></div><div class="desc docblock-short">A token containing information for establishing a connection to a node.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.Error.html" title="enum iroh::ticket::Error">Error</a></div><div class="desc docblock-short">An error deserializing an iroh ticket.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.Ticket.html" title="trait iroh::ticket::Ticket">Ticket</a></div><div class="desc docblock-short">A ticket is a serializable object combining information required for an operation.</div></li></ul></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,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 ticket is a serializable object combining information required for an operation."><title>Ticket in iroh::ticket - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">Ticket</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-consts">Required Associated Constants</a></h3><ul class="block"><li><a href="#associatedconstant.KIND">KIND</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.from_bytes">from_bytes</a></li><li><a href="#tymethod.to_bytes">to_bytes</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.deserialize">deserialize</a></li><li><a href="#method.serialize">serialize</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In iroh::ticket</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">iroh</a>::<wbr><a href="index.html">ticket</a>::<wbr><a class="trait" href="#">Ticket</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Ticket: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
<!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 ticket is a serializable object combining information required for an operation."><title>Ticket in iroh::ticket - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">Ticket</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-consts">Required Associated Constants</a></h3><ul class="block"><li><a href="#associatedconstant.KIND">KIND</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.from_bytes">from_bytes</a></li><li><a href="#tymethod.to_bytes">to_bytes</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.deserialize">deserialize</a></li><li><a href="#method.serialize">serialize</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In iroh::ticket</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">iroh</a>::<wbr><a href="index.html">ticket</a>::<wbr><a class="trait" href="#">Ticket</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh_base/ticket.rs.html#29">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Ticket: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
const <a href="#associatedconstant.KIND" class="constant">KIND</a>: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;
|
||||
|
||||
// Required methods
|
||||
@@ -18,10 +18,10 @@ ticket will be prepended to the string to make it somewhat self describing.</p>
|
||||
versioning, others might not.</p>
|
||||
<p>The serialization format for converting the ticket from and to bytes is left
|
||||
to the implementer. We recommend using <a href="https://docs.rs/postcard/latest/postcard/">postcard</a> for serialization.</p>
|
||||
</div></details><h2 id="required-associated-consts" class="section-header">Required Associated Constants<a href="#required-associated-consts" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedconstant.KIND" class="method"><h4 class="code-header">const <a href="#associatedconstant.KIND" class="constant">KIND</a>: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h4></section></summary><div class="docblock"><p>String prefix describing the kind of iroh ticket.</p>
|
||||
</div></details><h2 id="required-associated-consts" class="section-header">Required Associated Constants<a href="#required-associated-consts" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedconstant.KIND" class="method"><a class="src rightside" href="../../src/iroh_base/ticket.rs.html#33">source</a><h4 class="code-header">const <a href="#associatedconstant.KIND" class="constant">KIND</a>: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h4></section></summary><div class="docblock"><p>String prefix describing the kind of iroh ticket.</p>
|
||||
<p>This should be lower case ascii characters.</p>
|
||||
</div></details></div><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_bytes" class="method"><h4 class="code-header">fn <a href="#tymethod.to_bytes" class="fn">to_bytes</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>> <a href="#" class="tooltip" data-notable-ty="Vec<u8>">ⓘ</a></h4></section></summary><div class="docblock"><p>Serialize to bytes used in the base32 string representation.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_bytes" class="method"><h4 class="code-header">fn <a href="#tymethod.from_bytes" class="fn">from_bytes</a>(bytes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.Error.html" title="enum iroh::ticket::Error">Error</a>></h4></section></summary><div class="docblock"><p>Deserialize from the base32 string representation bytes.</p>
|
||||
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method"><h4 class="code-header">fn <a href="#method.serialize" class="fn">serialize</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>Serialize to string.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method"><h4 class="code-header">fn <a href="#method.deserialize" class="fn">deserialize</a>(str: &<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><Self, <a class="enum" href="enum.Error.html" title="enum iroh::ticket::Error">Error</a>></h4></section></summary><div class="docblock"><p>Deserialize from a string.</p>
|
||||
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</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-Ticket-for-BlobTicket" class="impl"><a href="#impl-Ticket-for-BlobTicket" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Ticket.html" title="trait iroh::ticket::Ticket">Ticket</a> for <a class="struct" href="struct.BlobTicket.html" title="struct iroh::ticket::BlobTicket">BlobTicket</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.KIND-1" class="associatedconstant trait-impl"><a href="#associatedconstant.KIND-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.KIND" class="constant">KIND</a>: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "blob"</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Ticket-for-NodeTicket" class="impl"><a href="#impl-Ticket-for-NodeTicket" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Ticket.html" title="trait iroh::ticket::Ticket">Ticket</a> for <a class="struct" href="struct.NodeTicket.html" title="struct iroh::ticket::NodeTicket">NodeTicket</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.KIND-2" class="associatedconstant trait-impl"><a href="#associatedconstant.KIND-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.KIND" class="constant">KIND</a>: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "node"</h4></section></div></details></div><script src="../../trait.impl/iroh_base/ticket/trait.Ticket.js" data-ignore-extern-crates="iroh_base" async></script><script type="text/json" id="notable-traits-data">{"Vec<u8>":"<h3>Notable traits for <code><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></code></h3><pre><code><div class=\"where\">impl<A> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a> for <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><div class=\"where\">where\n A: <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/alloc/trait.Allocator.html\" title=\"trait core::alloc::Allocator\">Allocator</a>,</div></div>"}</script></section></div></main></body></html>
|
||||
</div></details></div><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_bytes" class="method"><a class="src rightside" href="../../src/iroh_base/ticket.rs.html#36">source</a><h4 class="code-header">fn <a href="#tymethod.to_bytes" class="fn">to_bytes</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>> <a href="#" class="tooltip" data-notable-ty="Vec<u8>">ⓘ</a></h4></section></summary><div class="docblock"><p>Serialize to bytes used in the base32 string representation.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_bytes" class="method"><a class="src rightside" href="../../src/iroh_base/ticket.rs.html#39">source</a><h4 class="code-header">fn <a href="#tymethod.from_bytes" class="fn">from_bytes</a>(bytes: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.Error.html" title="enum iroh::ticket::Error">Error</a>></h4></section></summary><div class="docblock"><p>Deserialize from the base32 string representation bytes.</p>
|
||||
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method"><a class="src rightside" href="../../src/iroh_base/ticket.rs.html#42">source</a><h4 class="code-header">fn <a href="#method.serialize" class="fn">serialize</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>Serialize to string.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method"><a class="src rightside" href="../../src/iroh_base/ticket.rs.html#49">source</a><h4 class="code-header">fn <a href="#method.deserialize" class="fn">deserialize</a>(str: &<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><Self, <a class="enum" href="enum.Error.html" title="enum iroh::ticket::Error">Error</a>></h4></section></summary><div class="docblock"><p>Deserialize from a string.</p>
|
||||
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</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-Ticket-for-BlobTicket" class="impl"><a class="src rightside" href="../../src/iroh_base/ticket/blob.rs.html#37">source</a><a href="#impl-Ticket-for-BlobTicket" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Ticket.html" title="trait iroh::ticket::Ticket">Ticket</a> for <a class="struct" href="struct.BlobTicket.html" title="struct iroh::ticket::BlobTicket">BlobTicket</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.KIND-1" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/iroh_base/ticket/blob.rs.html#38">source</a><a href="#associatedconstant.KIND-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.KIND" class="constant">KIND</a>: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "blob"</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Ticket-for-NodeTicket" class="impl"><a class="src rightside" href="../../src/iroh_base/ticket/node.rs.html#42">source</a><a href="#impl-Ticket-for-NodeTicket" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Ticket.html" title="trait iroh::ticket::Ticket">Ticket</a> for <a class="struct" href="struct.NodeTicket.html" title="struct iroh::ticket::NodeTicket">NodeTicket</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.KIND-2" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/iroh_base/ticket/node.rs.html#43">source</a><a href="#associatedconstant.KIND-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.KIND" class="constant">KIND</a>: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "node"</h4></section></div></details></div><script src="../../trait.impl/iroh_base/ticket/trait.Ticket.js" data-ignore-extern-crates="iroh_base" async></script><script type="text/json" id="notable-traits-data">{"Vec<u8>":"<h3>Notable traits for <code><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></code></h3><pre><code><div class=\"where\">impl<A> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a> for <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><div class=\"where\">where\n A: <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/alloc/trait.Allocator.html\" title=\"trait core::alloc::Allocator\">Allocator</a>,</div></div>"}</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
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="The identifier for a node in the (iroh) network."><title>NodeId in iroh - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">NodeId</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3></section><h2><a href="index.html">In crate iroh</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Type Alias <a href="index.html">iroh</a>::<wbr><a class="type" href="#">NodeId</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type NodeId = <a class="struct" href="key/struct.PublicKey.html" title="struct iroh::key::PublicKey">PublicKey</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The identifier for a node in the (iroh) network.</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 identifier for a node in the (iroh) network."><title>NodeId in iroh - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.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.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../iroh/index.html">iroh</a><span class="version">0.29.0</span></h2></div><h2 class="location"><a href="#">NodeId</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3></section><h2><a href="index.html">In crate iroh</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Type Alias <a href="index.html">iroh</a>::<wbr><a class="type" href="#">NodeId</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/iroh_base/key.rs.html#111">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type NodeId = <a class="struct" href="key/struct.PublicKey.html" title="struct iroh::key::PublicKey">PublicKey</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The identifier for a node in the (iroh) network.</p>
|
||||
<p>Each node in iroh has a unique identifier created as a cryptographic key. This can be
|
||||
used to globally identify a node. Since it is also a cryptographic key it is also the
|
||||
mechanism by which all traffic is always encrypted for a specific node only.</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
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
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
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user