mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-04 00:01:26 +00:00
deploy: ea4704e20e302adf117c3ec2007df8103be73615
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns the default relay mode."><title>default_relay_mode in iroh::net::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.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::net::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">net</a>::<wbr><a href="index.html">endpoint</a>::<wbr><a class="fn" href="#">default_relay_mode</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_net/endpoint.rs.html#1186">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn default_relay_mode() -> <a class="enum" href="../relay/enum.RelayMode.html" title="enum iroh::net::relay::RelayMode">RelayMode</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the default relay mode.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns the default relay mode."><title>default_relay_mode in iroh::net::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.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::net::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">net</a>::<wbr><a href="index.html">endpoint</a>::<wbr><a class="fn" href="#">default_relay_mode</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_net/endpoint.rs.html#1183">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn default_relay_mode() -> <a class="enum" href="../relay/enum.RelayMode.html" title="enum iroh::net::relay::RelayMode">RelayMode</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the default relay mode.</p>
|
||||
<p>If the <code>IROH_FORCE_STAGING_RELAYS</code> environment variable is set to <code>1</code>, it will return <code>RelayMode::Staging</code>.
|
||||
Otherwise, it will return <code>RelayMode::Default</code>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Extract the `PublicKey` from the peer’s TLS certificate."><title>get_remote_node_id in iroh::net::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.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::net::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">net</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_net/endpoint.rs.html#1099">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::net::endpoint::Connection">Connection</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="../key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</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::net::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::net::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.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::net::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">net</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_net/endpoint.rs.html#1096">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::net::endpoint::Connection">Connection</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="../key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</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::net::key::PublicKey"><code>PublicKey</code></a> from the peer’s TLS certificate.</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
@@ -15,10 +15,10 @@ 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_net/endpoint.rs.html#343">source</a><a href="#impl-Endpoint" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="../struct.Endpoint.html" title="struct iroh::net::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_net/endpoint.rs.html#351">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::net::endpoint::Builder">Builder</a></h4></section></summary><div class="docblock"><p>Returns the builder for an <a href="../struct.Endpoint.html" title="struct iroh::net::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_net/endpoint.rs.html#400">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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</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_net/endpoint.rs.html#399">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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</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_net/endpoint.rs.html#428">source</a><h4 class="code-header">pub async fn <a href="#method.connect" class="fn">connect</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#427">source</a><h4 class="code-header">pub async fn <a href="#method.connect" class="fn">connect</a>(
|
||||
&self,
|
||||
node_addr: <a class="struct" href="../struct.NodeAddr.html" title="struct iroh::net::NodeAddr">NodeAddr</a>,
|
||||
alpn: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]
|
||||
@@ -38,7 +38,7 @@ connection attempt will fail with an error.</p>
|
||||
<p>The <code>alpn</code>, or application-level protocol identifier, is also required. The remote
|
||||
endpoint must support this <code>alpn</code>, otherwise the connection attempt will fail with
|
||||
an error.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect_by_node_id" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#476-480">source</a><h4 class="code-header">pub async fn <a href="#method.connect_by_node_id" class="fn">connect_by_node_id</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect_by_node_id" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#473-477">source</a><h4 class="code-header">pub async fn <a href="#method.connect_by_node_id" class="fn">connect_by_node_id</a>(
|
||||
&self,
|
||||
node_id: <a class="struct" href="../key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</a>,
|
||||
alpn: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]
|
||||
@@ -47,13 +47,13 @@ an error.</p>
|
||||
information being provided by either the discovery service or using
|
||||
<a href="../struct.Endpoint.html#method.add_node_addr" title="method iroh::net::Endpoint::add_node_addr"><code>Endpoint::add_node_addr</code></a>. See <a href="../struct.Endpoint.html#method.connect" title="method iroh::net::Endpoint::connect"><code>Endpoint::connect</code></a> for the details of how it
|
||||
uses the discovery service to establish a connection to a remote node.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.accept" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#536">source</a><h4 class="code-header">pub fn <a href="#method.accept" class="fn">accept</a>(&self) -> <a class="struct" href="struct.Accept.html" title="struct iroh::net::endpoint::Accept">Accept</a><'_> <a href="#" class="tooltip" data-notable-ty="Accept<'_>">ⓘ</a></h4></section></summary><div class="docblock"><p>Accepts an incoming connection on the endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.accept" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#533">source</a><h4 class="code-header">pub fn <a href="#method.accept" class="fn">accept</a>(&self) -> <a class="struct" href="struct.Accept.html" title="struct iroh::net::endpoint::Accept">Accept</a><'_> <a href="#" class="tooltip" data-notable-ty="Accept<'_>">ⓘ</a></h4></section></summary><div class="docblock"><p>Accepts an incoming connection on the endpoint.</p>
|
||||
<p>Only connections with the ALPNs configured in <a href="struct.Builder.html#method.alpns" title="method iroh::net::endpoint::Builder::alpns"><code>Builder::alpns</code></a> will be accepted.
|
||||
If multiple ALPNs have been configured the ALPN can be inspected before accepting
|
||||
the connection using <a href="struct.Connecting.html#method.alpn" title="method iroh::net::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::net::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_net/endpoint.rs.html#559">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::net::NodeAddr">NodeAddr</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Informs this <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> about addresses of the iroh-net 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_net/endpoint.rs.html#556">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::net::NodeAddr">NodeAddr</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Informs this <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> about addresses of the iroh-net node.</p>
|
||||
<p>This updates the local state for the remote node. If the provided <a href="../struct.NodeAddr.html" title="struct iroh::net::NodeAddr"><code>NodeAddr</code></a>
|
||||
contains a <a href="../relay/struct.RelayUrl.html" title="struct iroh::net::relay::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
|
||||
@@ -63,7 +63,7 @@ silently ignored.</p>
|
||||
<h5 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h5>
|
||||
<p>Will return an error if we attempt to add our own <a href="../key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey"><code>PublicKey</code></a> to the node map or if the
|
||||
direct addresses are a subset of ours.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_node_addr_with_source" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#575-579">source</a><h4 class="code-header">pub fn <a href="#method.add_node_addr_with_source" class="fn">add_node_addr_with_source</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_node_addr_with_source" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#572-576">source</a><h4 class="code-header">pub fn <a href="#method.add_node_addr_with_source" class="fn">add_node_addr_with_source</a>(
|
||||
&self,
|
||||
node_addr: <a class="struct" href="../struct.NodeAddr.html" title="struct iroh::net::NodeAddr">NodeAddr</a>,
|
||||
source: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>
|
||||
@@ -76,15 +76,15 @@ used for logging exclusively and will not be stored.</p>
|
||||
<h5 id="errors-1"><a class="doc-anchor" href="#errors-1">§</a>Errors</h5>
|
||||
<p>Will return an error if we attempt to add our own <a href="../key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey"><code>PublicKey</code></a> to the node map or if the
|
||||
direct addresses are a subset of ours.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.secret_key" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#597">source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(&self) -> &<a class="struct" href="../key/struct.SecretKey.html" title="struct iroh::net::key::SecretKey">SecretKey</a></h4></section></summary><div class="docblock"><p>Returns the secret_key of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_id" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#605">source</a><h4 class="code-header">pub fn <a href="#method.node_id" class="fn">node_id</a>(&self) -> <a class="struct" href="../key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</a></h4></section></summary><div class="docblock"><p>Returns the node id of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.secret_key" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#594">source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(&self) -> &<a class="struct" href="../key/struct.SecretKey.html" title="struct iroh::net::key::SecretKey">SecretKey</a></h4></section></summary><div class="docblock"><p>Returns the secret_key of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_id" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#602">source</a><h4 class="code-header">pub fn <a href="#method.node_id" class="fn">node_id</a>(&self) -> <a class="struct" href="../key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</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_net/endpoint.rs.html#614">source</a><h4 class="code-header">pub async fn <a href="#method.node_addr" class="fn">node_addr</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::net::NodeAddr">NodeAddr</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Returns the current <a href="../struct.NodeAddr.html" title="struct iroh::net::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_net/endpoint.rs.html#611">source</a><h4 class="code-header">pub async fn <a href="#method.node_addr" class="fn">node_addr</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh::net::NodeAddr">NodeAddr</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Returns the current <a href="../struct.NodeAddr.html" title="struct iroh::net::NodeAddr"><code>NodeAddr</code></a> for this endpoint.</p>
|
||||
<p>The returned <a href="../struct.NodeAddr.html" title="struct iroh::net::NodeAddr"><code>NodeAddr</code></a> will have the current <a href="../relay/struct.RelayUrl.html" title="struct iroh::net::relay::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::net::Endpoint::home_relay"><code>Endpoint::home_relay</code></a> and
|
||||
<a href="../struct.Endpoint.html#method.direct_addresses" title="method iroh::net::Endpoint::direct_addresses"><code>Endpoint::direct_addresses</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.home_relay" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#637">source</a><h4 class="code-header">pub fn <a href="#method.home_relay" class="fn">home_relay</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Returns the <a href="../relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl"><code>RelayUrl</code></a> of the Relay server used as home relay.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.home_relay" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#634">source</a><h4 class="code-header">pub fn <a href="#method.home_relay" class="fn">home_relay</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Returns the <a href="../relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl"><code>RelayUrl</code></a> of the Relay server used as home relay.</p>
|
||||
<p>Every endpoint has a home Relay server which it chooses as the server with the
|
||||
lowest latency out of the configured servers provided by <a href="struct.Builder.html#method.relay_mode" title="method iroh::net::endpoint::Builder::relay_mode"><code>Builder::relay_mode</code></a>.
|
||||
This is the server other iroh-net nodes can use to reliably establish a connection
|
||||
@@ -93,14 +93,14 @@ to this node.</p>
|
||||
<p>Note that this will be <code>None</code> right after the <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> is created since it takes
|
||||
some time to connect to find and connect to the home relay server. Use
|
||||
<a href="../struct.Endpoint.html#method.watch_home_relay" title="method iroh::net::Endpoint::watch_home_relay"><code>Endpoint::watch_home_relay</code></a> to wait until the home relay server is available.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.watch_home_relay" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#650">source</a><h4 class="code-header">pub fn <a href="#method.watch_home_relay" class="fn">watch_home_relay</a>(&self) -> impl Stream<Item = <a class="struct" href="../relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Watches for changes to the home relay.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.watch_home_relay" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#647">source</a><h4 class="code-header">pub fn <a href="#method.watch_home_relay" class="fn">watch_home_relay</a>(&self) -> impl Stream<Item = <a class="struct" href="../relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Watches for changes to the home relay.</p>
|
||||
<p>If there is currently a home relay it will be yielded immediately as the first item
|
||||
in the stream. This makes it possible to use this function to wait for the initial
|
||||
home relay to be known.</p>
|
||||
<p>Note that it is not guaranteed that a home relay will ever become available. If no
|
||||
servers are configured with <a href="struct.Builder.html#method.relay_mode" title="method iroh::net::endpoint::Builder::relay_mode"><code>Builder::relay_mode</code></a> this stream will never yield an
|
||||
item.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.direct_addresses" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#688">source</a><h4 class="code-header">pub fn <a href="#method.direct_addresses" class="fn">direct_addresses</a>(&self) -> <a class="struct" href="struct.DirectAddrsStream.html" title="struct iroh::net::endpoint::DirectAddrsStream">DirectAddrsStream</a></h4></section></summary><div class="docblock"><p>Returns the direct addresses of this <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.direct_addresses" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#685">source</a><h4 class="code-header">pub fn <a href="#method.direct_addresses" class="fn">direct_addresses</a>(&self) -> <a class="struct" href="struct.DirectAddrsStream.html" title="struct iroh::net::endpoint::DirectAddrsStream">DirectAddrsStream</a></h4></section></summary><div class="docblock"><p>Returns the direct addresses of this <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<p>The direct addresses of the <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> are those that could be used by other
|
||||
iroh-net nodes to establish direct connectivity, depending on the network
|
||||
situation. The yielded lists of direct addresses contain both the locally-bound
|
||||
@@ -123,10 +123,10 @@ most recently discovered IP endpoints.</p>
|
||||
|
||||
<span class="kw">let </span>mep = Endpoint::builder().bind(<span class="number">0</span>).<span class="kw">await</span>.unwrap();
|
||||
<span class="kw">let </span>_addrs = mep.direct_addresses().next().<span class="kw">await</span>;</code></pre></div>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.bound_sockets" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#696">source</a><h4 class="code-header">pub fn <a href="#method.bound_sockets" class="fn">bound_sockets</a>(&self) -> (<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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>>)</h4></section></summary><div class="docblock"><p>Returns the local socket addresses on which the underlying sockets are bound.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.bound_sockets" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#693">source</a><h4 class="code-header">pub fn <a href="#method.bound_sockets" class="fn">bound_sockets</a>(&self) -> (<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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>>)</h4></section></summary><div class="docblock"><p>Returns the local socket addresses on which the underlying sockets are bound.</p>
|
||||
<p>The <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> always binds on an IPv4 address and also tries to bind on an IPv6
|
||||
address if available.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#713">source</a><h4 class="code-header">pub fn <a href="#method.remote_info" class="fn">remote_info</a>(&self, node_id: <a class="struct" href="../key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.RemoteInfo.html" title="struct iroh::net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about the remote node identified by a <a href="../type.NodeId.html" title="type iroh::net::NodeId"><code>NodeId</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#710">source</a><h4 class="code-header">pub fn <a href="#method.remote_info" class="fn">remote_info</a>(&self, node_id: <a class="struct" href="../key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.RemoteInfo.html" title="struct iroh::net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about the remote node identified by a <a href="../type.NodeId.html" title="type iroh::net::NodeId"><code>NodeId</code></a>.</p>
|
||||
<p>The <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> keeps some information about remote iroh-net nodes, which it uses to find
|
||||
the best path to a node. Having information on a remote node, however, does not mean we have
|
||||
ever connected to it to or even whether a connection is even possible. The information about a
|
||||
@@ -135,14 +135,14 @@ calls may return different information. Furthermore, node information may even b
|
||||
completely evicted as it becomes stale.</p>
|
||||
<p>See also <a href="../struct.Endpoint.html#method.remote_info_iter" title="method iroh::net::Endpoint::remote_info_iter"><code>Endpoint::remote_info_iter</code></a> which returns information on all nodes known
|
||||
by this <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info_iter" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#727">source</a><h4 class="code-header">pub fn <a href="#method.remote_info_iter" class="fn">remote_info_iter</a>(&self) -> 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="struct" href="struct.RemoteInfo.html" title="struct iroh::net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about all the remote nodes this <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> knows about.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info_iter" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#724">source</a><h4 class="code-header">pub fn <a href="#method.remote_info_iter" class="fn">remote_info_iter</a>(&self) -> 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="struct" href="struct.RemoteInfo.html" title="struct iroh::net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about all the remote nodes this <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> knows about.</p>
|
||||
<p>This returns the same information as <a href="../struct.Endpoint.html#method.remote_info" title="method iroh::net::Endpoint::remote_info"><code>Endpoint::remote_info</code></a> for each node known to this
|
||||
<a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<p>The <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> keeps some information about remote iroh-net nodes, which it uses to find
|
||||
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::net::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_net/endpoint.rs.html#753">source</a><h4 class="code-header">pub fn <a href="#method.conn_type_stream" class="fn">conn_type_stream</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.conn_type_stream" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#750">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="struct" href="../key/struct.PublicKey.html" title="struct iroh::net::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="struct.ConnectionTypeStream.html" title="struct iroh::net::endpoint::ConnectionTypeStream">ConnectionTypeStream</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Returns a stream that reports connection type changes for the remote node.</p>
|
||||
@@ -158,13 +158,13 @@ connection when the switch from a relayed to a direct connection can be so fast
|
||||
the relayed state is never exposed.</p>
|
||||
<h5 id="errors-2"><a class="doc-anchor" href="#errors-2">§</a>Errors</h5>
|
||||
<p>Will error if we do not have any address information for the given <code>node_id</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.dns_resolver" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#760">source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.dns_resolver" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#757">source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(
|
||||
&self
|
||||
) -> &AsyncResolver<GenericConnector<TokioRuntimeProvider>></h4></section></summary><div class="docblock"><p>Returns the DNS resolver used in this <a href="../struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<p>See <a href="struct.Builder.html#method.discovery" title="method iroh::net::endpoint::Builder::discovery"><code>Builder::discovery</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.discovery" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#767">source</a><h4 class="code-header">pub fn <a href="#method.discovery" class="fn">discovery</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="../discovery/trait.Discovery.html" title="trait iroh::net::discovery::Discovery">Discovery</a>></h4></section></summary><div class="docblock"><p>Returns the discovery mechanism, if configured.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.discovery" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#764">source</a><h4 class="code-header">pub fn <a href="#method.discovery" class="fn">discovery</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="../discovery/trait.Discovery.html" title="trait iroh::net::discovery::Discovery">Discovery</a>></h4></section></summary><div class="docblock"><p>Returns the discovery mechanism, if configured.</p>
|
||||
<p>See <a href="struct.Builder.html#method.dns_resolver" title="method iroh::net::endpoint::Builder::dns_resolver"><code>Builder::dns_resolver</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.network_change" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#783">source</a><h4 class="code-header">pub async fn <a href="#method.network_change" class="fn">network_change</a>(&self)</h4></section></summary><div class="docblock"><p>Notifies the system of potential network changes.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.network_change" class="method"><a class="src rightside" href="../../../src/iroh_net/endpoint.rs.html#780">source</a><h4 class="code-header">pub async fn <a href="#method.network_change" class="fn">network_change</a>(&self)</h4></section></summary><div class="docblock"><p>Notifies the system of potential network changes.</p>
|
||||
<p>On many systems iroh is able to detect network changes by itself, however
|
||||
some systems like android do not expose this functionality to native code.
|
||||
Android does however provide this functionality to Java code. This
|
||||
@@ -172,7 +172,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_net/endpoint.rs.html#799">source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(self, error_code: <a class="struct" href="struct.VarInt.html" title="struct iroh::net::endpoint::VarInt">VarInt</a>, reason: &[<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</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_net/endpoint.rs.html#796">source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(self, error_code: <a class="struct" href="struct.VarInt.html" title="struct iroh::net::endpoint::VarInt">VarInt</a>, reason: &[<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Closes the QUIC endpoint and the magic socket.</p>
|
||||
<p>This will close all open QUIC connections with the provided error_code and
|
||||
reason. See <a href="struct.Connection.html" title="struct iroh::net::endpoint::Connection"><code>quinn::Connection</code></a> for details on how these are interpreted.</p>
|
||||
<p>It will then wait for all connections to actually be shutdown, and afterwards
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -15,10 +15,10 @@ 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_net/endpoint.rs.html#343">source</a><a href="#impl-Endpoint" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Endpoint.html" title="struct iroh::net::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_net/endpoint.rs.html#351">source</a><h4 class="code-header">pub fn <a href="#method.builder" class="fn">builder</a>() -> <a class="struct" href="endpoint/struct.Builder.html" title="struct iroh::net::endpoint::Builder">Builder</a></h4></section></summary><div class="docblock"><p>Returns the builder for an <a href="struct.Endpoint.html" title="struct iroh::net::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_net/endpoint.rs.html#400">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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</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_net/endpoint.rs.html#399">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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</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_net/endpoint.rs.html#428">source</a><h4 class="code-header">pub async fn <a href="#method.connect" class="fn">connect</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#427">source</a><h4 class="code-header">pub async fn <a href="#method.connect" class="fn">connect</a>(
|
||||
&self,
|
||||
node_addr: <a class="struct" href="struct.NodeAddr.html" title="struct iroh::net::NodeAddr">NodeAddr</a>,
|
||||
alpn: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]
|
||||
@@ -38,7 +38,7 @@ connection attempt will fail with an error.</p>
|
||||
<p>The <code>alpn</code>, or application-level protocol identifier, is also required. The remote
|
||||
endpoint must support this <code>alpn</code>, otherwise the connection attempt will fail with
|
||||
an error.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect_by_node_id" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#476-480">source</a><h4 class="code-header">pub async fn <a href="#method.connect_by_node_id" class="fn">connect_by_node_id</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect_by_node_id" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#473-477">source</a><h4 class="code-header">pub async fn <a href="#method.connect_by_node_id" class="fn">connect_by_node_id</a>(
|
||||
&self,
|
||||
node_id: <a class="struct" href="key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</a>,
|
||||
alpn: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]
|
||||
@@ -47,13 +47,13 @@ an error.</p>
|
||||
information being provided by either the discovery service or using
|
||||
<a href="struct.Endpoint.html#method.add_node_addr" title="method iroh::net::Endpoint::add_node_addr"><code>Endpoint::add_node_addr</code></a>. See <a href="struct.Endpoint.html#method.connect" title="method iroh::net::Endpoint::connect"><code>Endpoint::connect</code></a> for the details of how it
|
||||
uses the discovery service to establish a connection to a remote node.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.accept" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#536">source</a><h4 class="code-header">pub fn <a href="#method.accept" class="fn">accept</a>(&self) -> <a class="struct" href="endpoint/struct.Accept.html" title="struct iroh::net::endpoint::Accept">Accept</a><'_> <a href="#" class="tooltip" data-notable-ty="Accept<'_>">ⓘ</a></h4></section></summary><div class="docblock"><p>Accepts an incoming connection on the endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.accept" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#533">source</a><h4 class="code-header">pub fn <a href="#method.accept" class="fn">accept</a>(&self) -> <a class="struct" href="endpoint/struct.Accept.html" title="struct iroh::net::endpoint::Accept">Accept</a><'_> <a href="#" class="tooltip" data-notable-ty="Accept<'_>">ⓘ</a></h4></section></summary><div class="docblock"><p>Accepts an incoming connection on the endpoint.</p>
|
||||
<p>Only connections with the ALPNs configured in <a href="endpoint/struct.Builder.html#method.alpns" title="method iroh::net::endpoint::Builder::alpns"><code>Builder::alpns</code></a> will be accepted.
|
||||
If multiple ALPNs have been configured the ALPN can be inspected before accepting
|
||||
the connection using <a href="endpoint/struct.Connecting.html#method.alpn" title="method iroh::net::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::net::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_net/endpoint.rs.html#559">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::net::NodeAddr">NodeAddr</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Informs this <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> about addresses of the iroh-net 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_net/endpoint.rs.html#556">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::net::NodeAddr">NodeAddr</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Informs this <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> about addresses of the iroh-net node.</p>
|
||||
<p>This updates the local state for the remote node. If the provided <a href="struct.NodeAddr.html" title="struct iroh::net::NodeAddr"><code>NodeAddr</code></a>
|
||||
contains a <a href="relay/struct.RelayUrl.html" title="struct iroh::net::relay::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
|
||||
@@ -63,7 +63,7 @@ silently ignored.</p>
|
||||
<h5 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h5>
|
||||
<p>Will return an error if we attempt to add our own <a href="key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey"><code>PublicKey</code></a> to the node map or if the
|
||||
direct addresses are a subset of ours.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_node_addr_with_source" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#575-579">source</a><h4 class="code-header">pub fn <a href="#method.add_node_addr_with_source" class="fn">add_node_addr_with_source</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_node_addr_with_source" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#572-576">source</a><h4 class="code-header">pub fn <a href="#method.add_node_addr_with_source" class="fn">add_node_addr_with_source</a>(
|
||||
&self,
|
||||
node_addr: <a class="struct" href="struct.NodeAddr.html" title="struct iroh::net::NodeAddr">NodeAddr</a>,
|
||||
source: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>
|
||||
@@ -76,15 +76,15 @@ used for logging exclusively and will not be stored.</p>
|
||||
<h5 id="errors-1"><a class="doc-anchor" href="#errors-1">§</a>Errors</h5>
|
||||
<p>Will return an error if we attempt to add our own <a href="key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey"><code>PublicKey</code></a> to the node map or if the
|
||||
direct addresses are a subset of ours.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.secret_key" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#597">source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(&self) -> &<a class="struct" href="key/struct.SecretKey.html" title="struct iroh::net::key::SecretKey">SecretKey</a></h4></section></summary><div class="docblock"><p>Returns the secret_key of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_id" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#605">source</a><h4 class="code-header">pub fn <a href="#method.node_id" class="fn">node_id</a>(&self) -> <a class="struct" href="key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</a></h4></section></summary><div class="docblock"><p>Returns the node id of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.secret_key" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#594">source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(&self) -> &<a class="struct" href="key/struct.SecretKey.html" title="struct iroh::net::key::SecretKey">SecretKey</a></h4></section></summary><div class="docblock"><p>Returns the secret_key of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_id" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#602">source</a><h4 class="code-header">pub fn <a href="#method.node_id" class="fn">node_id</a>(&self) -> <a class="struct" href="key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</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_net/endpoint.rs.html#614">source</a><h4 class="code-header">pub async fn <a href="#method.node_addr" class="fn">node_addr</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.NodeAddr.html" title="struct iroh::net::NodeAddr">NodeAddr</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Returns the current <a href="struct.NodeAddr.html" title="struct iroh::net::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_net/endpoint.rs.html#611">source</a><h4 class="code-header">pub async fn <a href="#method.node_addr" class="fn">node_addr</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.NodeAddr.html" title="struct iroh::net::NodeAddr">NodeAddr</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Returns the current <a href="struct.NodeAddr.html" title="struct iroh::net::NodeAddr"><code>NodeAddr</code></a> for this endpoint.</p>
|
||||
<p>The returned <a href="struct.NodeAddr.html" title="struct iroh::net::NodeAddr"><code>NodeAddr</code></a> will have the current <a href="relay/struct.RelayUrl.html" title="struct iroh::net::relay::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::net::Endpoint::home_relay"><code>Endpoint::home_relay</code></a> and
|
||||
<a href="struct.Endpoint.html#method.direct_addresses" title="method iroh::net::Endpoint::direct_addresses"><code>Endpoint::direct_addresses</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.home_relay" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#637">source</a><h4 class="code-header">pub fn <a href="#method.home_relay" class="fn">home_relay</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Returns the <a href="relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl"><code>RelayUrl</code></a> of the Relay server used as home relay.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.home_relay" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#634">source</a><h4 class="code-header">pub fn <a href="#method.home_relay" class="fn">home_relay</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Returns the <a href="relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl"><code>RelayUrl</code></a> of the Relay server used as home relay.</p>
|
||||
<p>Every endpoint has a home Relay server which it chooses as the server with the
|
||||
lowest latency out of the configured servers provided by <a href="endpoint/struct.Builder.html#method.relay_mode" title="method iroh::net::endpoint::Builder::relay_mode"><code>Builder::relay_mode</code></a>.
|
||||
This is the server other iroh-net nodes can use to reliably establish a connection
|
||||
@@ -93,14 +93,14 @@ to this node.</p>
|
||||
<p>Note that this will be <code>None</code> right after the <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> is created since it takes
|
||||
some time to connect to find and connect to the home relay server. Use
|
||||
<a href="struct.Endpoint.html#method.watch_home_relay" title="method iroh::net::Endpoint::watch_home_relay"><code>Endpoint::watch_home_relay</code></a> to wait until the home relay server is available.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.watch_home_relay" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#650">source</a><h4 class="code-header">pub fn <a href="#method.watch_home_relay" class="fn">watch_home_relay</a>(&self) -> impl Stream<Item = <a class="struct" href="relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Watches for changes to the home relay.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.watch_home_relay" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#647">source</a><h4 class="code-header">pub fn <a href="#method.watch_home_relay" class="fn">watch_home_relay</a>(&self) -> impl Stream<Item = <a class="struct" href="relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Watches for changes to the home relay.</p>
|
||||
<p>If there is currently a home relay it will be yielded immediately as the first item
|
||||
in the stream. This makes it possible to use this function to wait for the initial
|
||||
home relay to be known.</p>
|
||||
<p>Note that it is not guaranteed that a home relay will ever become available. If no
|
||||
servers are configured with <a href="endpoint/struct.Builder.html#method.relay_mode" title="method iroh::net::endpoint::Builder::relay_mode"><code>Builder::relay_mode</code></a> this stream will never yield an
|
||||
item.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.direct_addresses" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#688">source</a><h4 class="code-header">pub fn <a href="#method.direct_addresses" class="fn">direct_addresses</a>(&self) -> <a class="struct" href="endpoint/struct.DirectAddrsStream.html" title="struct iroh::net::endpoint::DirectAddrsStream">DirectAddrsStream</a></h4></section></summary><div class="docblock"><p>Returns the direct addresses of this <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.direct_addresses" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#685">source</a><h4 class="code-header">pub fn <a href="#method.direct_addresses" class="fn">direct_addresses</a>(&self) -> <a class="struct" href="endpoint/struct.DirectAddrsStream.html" title="struct iroh::net::endpoint::DirectAddrsStream">DirectAddrsStream</a></h4></section></summary><div class="docblock"><p>Returns the direct addresses of this <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<p>The direct addresses of the <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> are those that could be used by other
|
||||
iroh-net nodes to establish direct connectivity, depending on the network
|
||||
situation. The yielded lists of direct addresses contain both the locally-bound
|
||||
@@ -123,10 +123,10 @@ most recently discovered IP endpoints.</p>
|
||||
|
||||
<span class="kw">let </span>mep = Endpoint::builder().bind(<span class="number">0</span>).<span class="kw">await</span>.unwrap();
|
||||
<span class="kw">let </span>_addrs = mep.direct_addresses().next().<span class="kw">await</span>;</code></pre></div>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.bound_sockets" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#696">source</a><h4 class="code-header">pub fn <a href="#method.bound_sockets" class="fn">bound_sockets</a>(&self) -> (<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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>>)</h4></section></summary><div class="docblock"><p>Returns the local socket addresses on which the underlying sockets are bound.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.bound_sockets" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#693">source</a><h4 class="code-header">pub fn <a href="#method.bound_sockets" class="fn">bound_sockets</a>(&self) -> (<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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>>)</h4></section></summary><div class="docblock"><p>Returns the local socket addresses on which the underlying sockets are bound.</p>
|
||||
<p>The <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> always binds on an IPv4 address and also tries to bind on an IPv6
|
||||
address if available.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#713">source</a><h4 class="code-header">pub fn <a href="#method.remote_info" class="fn">remote_info</a>(&self, node_id: <a class="struct" href="key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="endpoint/struct.RemoteInfo.html" title="struct iroh::net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about the remote node identified by a <a href="type.NodeId.html" title="type iroh::net::NodeId"><code>NodeId</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#710">source</a><h4 class="code-header">pub fn <a href="#method.remote_info" class="fn">remote_info</a>(&self, node_id: <a class="struct" href="key/struct.PublicKey.html" title="struct iroh::net::key::PublicKey">PublicKey</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="endpoint/struct.RemoteInfo.html" title="struct iroh::net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about the remote node identified by a <a href="type.NodeId.html" title="type iroh::net::NodeId"><code>NodeId</code></a>.</p>
|
||||
<p>The <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> keeps some information about remote iroh-net nodes, which it uses to find
|
||||
the best path to a node. Having information on a remote node, however, does not mean we have
|
||||
ever connected to it to or even whether a connection is even possible. The information about a
|
||||
@@ -135,14 +135,14 @@ calls may return different information. Furthermore, node information may even b
|
||||
completely evicted as it becomes stale.</p>
|
||||
<p>See also <a href="struct.Endpoint.html#method.remote_info_iter" title="method iroh::net::Endpoint::remote_info_iter"><code>Endpoint::remote_info_iter</code></a> which returns information on all nodes known
|
||||
by this <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info_iter" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#727">source</a><h4 class="code-header">pub fn <a href="#method.remote_info_iter" class="fn">remote_info_iter</a>(&self) -> 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="struct" href="endpoint/struct.RemoteInfo.html" title="struct iroh::net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about all the remote nodes this <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> knows about.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info_iter" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#724">source</a><h4 class="code-header">pub fn <a href="#method.remote_info_iter" class="fn">remote_info_iter</a>(&self) -> 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="struct" href="endpoint/struct.RemoteInfo.html" title="struct iroh::net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about all the remote nodes this <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> knows about.</p>
|
||||
<p>This returns the same information as <a href="struct.Endpoint.html#method.remote_info" title="method iroh::net::Endpoint::remote_info"><code>Endpoint::remote_info</code></a> for each node known to this
|
||||
<a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<p>The <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a> keeps some information about remote iroh-net nodes, which it uses to find
|
||||
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::net::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_net/endpoint.rs.html#753">source</a><h4 class="code-header">pub fn <a href="#method.conn_type_stream" class="fn">conn_type_stream</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.conn_type_stream" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#750">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="struct" href="key/struct.PublicKey.html" title="struct iroh::net::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.ConnectionTypeStream.html" title="struct iroh::net::endpoint::ConnectionTypeStream">ConnectionTypeStream</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Returns a stream that reports connection type changes for the remote node.</p>
|
||||
@@ -158,13 +158,13 @@ connection when the switch from a relayed to a direct connection can be so fast
|
||||
the relayed state is never exposed.</p>
|
||||
<h5 id="errors-2"><a class="doc-anchor" href="#errors-2">§</a>Errors</h5>
|
||||
<p>Will error if we do not have any address information for the given <code>node_id</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.dns_resolver" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#760">source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.dns_resolver" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#757">source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(
|
||||
&self
|
||||
) -> &AsyncResolver<GenericConnector<TokioRuntimeProvider>></h4></section></summary><div class="docblock"><p>Returns the DNS resolver used in this <a href="struct.Endpoint.html" title="struct iroh::net::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<p>See <a href="endpoint/struct.Builder.html#method.discovery" title="method iroh::net::endpoint::Builder::discovery"><code>Builder::discovery</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.discovery" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#767">source</a><h4 class="code-header">pub fn <a href="#method.discovery" class="fn">discovery</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="discovery/trait.Discovery.html" title="trait iroh::net::discovery::Discovery">Discovery</a>></h4></section></summary><div class="docblock"><p>Returns the discovery mechanism, if configured.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.discovery" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#764">source</a><h4 class="code-header">pub fn <a href="#method.discovery" class="fn">discovery</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="discovery/trait.Discovery.html" title="trait iroh::net::discovery::Discovery">Discovery</a>></h4></section></summary><div class="docblock"><p>Returns the discovery mechanism, if configured.</p>
|
||||
<p>See <a href="endpoint/struct.Builder.html#method.dns_resolver" title="method iroh::net::endpoint::Builder::dns_resolver"><code>Builder::dns_resolver</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.network_change" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#783">source</a><h4 class="code-header">pub async fn <a href="#method.network_change" class="fn">network_change</a>(&self)</h4></section></summary><div class="docblock"><p>Notifies the system of potential network changes.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.network_change" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#780">source</a><h4 class="code-header">pub async fn <a href="#method.network_change" class="fn">network_change</a>(&self)</h4></section></summary><div class="docblock"><p>Notifies the system of potential network changes.</p>
|
||||
<p>On many systems iroh is able to detect network changes by itself, however
|
||||
some systems like android do not expose this functionality to native code.
|
||||
Android does however provide this functionality to Java code. This
|
||||
@@ -172,7 +172,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_net/endpoint.rs.html#799">source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(self, error_code: <a class="struct" href="endpoint/struct.VarInt.html" title="struct iroh::net::endpoint::VarInt">VarInt</a>, reason: &[<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</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_net/endpoint.rs.html#796">source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(self, error_code: <a class="struct" href="endpoint/struct.VarInt.html" title="struct iroh::net::endpoint::VarInt">VarInt</a>, reason: &[<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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class="docblock"><p>Closes the QUIC endpoint and the magic socket.</p>
|
||||
<p>This will close all open QUIC connections with the provided error_code and
|
||||
reason. See <a href="endpoint/struct.Connection.html" title="struct iroh::net::endpoint::Connection"><code>quinn::Connection</code></a> for details on how these are interpreted.</p>
|
||||
<p>It will then wait for all connections to actually be shutdown, and afterwards
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,15 +1,15 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Trait modeling a dialer. This allows for IO-less testing."><title>Dialer in iroh_blobs::downloader - 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_blobs" 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_blobs/index.html">iroh_blobs</a><span class="version">0.23.0</span></h2></div><h2 class="location"><a href="#">Dialer</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Connection">Connection</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.is_pending">is_pending</a></li><li><a href="#tymethod.node_id">node_id</a></li><li><a href="#tymethod.pending_count">pending_count</a></li><li><a href="#tymethod.queue_dial">queue_dial</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Dialer-for-Dialer">Dialer</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In iroh_blobs::downloader</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_blobs/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_blobs</a>::<wbr><a href="index.html">downloader</a>::<wbr><a class="trait" href="#">Dialer</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_blobs/downloader.rs.html#80-91">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Dialer: Stream<Item = (NodeId, <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><Self::<a class="associatedtype" href="trait.Dialer.html#associatedtype.Connection" title="type iroh_blobs::downloader::Dialer::Connection">Connection</a>>)> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</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="Trait modeling a dialer. This allows for IO-less testing."><title>Dialer in iroh_blobs::downloader - 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_blobs" 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_blobs/index.html">iroh_blobs</a><span class="version">0.23.0</span></h2></div><h2 class="location"><a href="#">Dialer</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Connection">Connection</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.is_pending">is_pending</a></li><li><a href="#tymethod.node_id">node_id</a></li><li><a href="#tymethod.pending_count">pending_count</a></li><li><a href="#tymethod.queue_dial">queue_dial</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Dialer-for-Dialer">Dialer</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In iroh_blobs::downloader</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_blobs/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_blobs</a>::<wbr><a href="index.html">downloader</a>::<wbr><a class="trait" href="#">Dialer</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_blobs/downloader.rs.html#80-91">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Dialer: Stream<Item = (<a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>, <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><Self::<a class="associatedtype" href="trait.Dialer.html#associatedtype.Connection" title="type iroh_blobs::downloader::Dialer::Connection">Connection</a>>)> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> {
|
||||
type <a href="#associatedtype.Connection" class="associatedtype">Connection</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&mut self, node_id: NodeId);
|
||||
fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&mut self, node_id: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.pending_count" class="fn">pending_count</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&self, node: NodeId) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.node_id" class="fn">node_id</a>(&self) -> NodeId;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&self, node: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.node_id" class="fn">node_id</a>(&self) -> <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trait modeling a dialer. This allows for IO-less testing.</p>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Connection" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#82">source</a><h4 class="code-header">type <a href="#associatedtype.Connection" class="associatedtype">Connection</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static</h4></section></summary><div class="docblock"><p>Type of connections returned by the Dialer.</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.queue_dial" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#84">source</a><h4 class="code-header">fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&mut self, node_id: NodeId)</h4></section></summary><div class="docblock"><p>Dial a node.</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.queue_dial" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#84">source</a><h4 class="code-header">fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&mut self, node_id: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>)</h4></section></summary><div class="docblock"><p>Dial a node.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.pending_count" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#86">source</a><h4 class="code-header">fn <a href="#tymethod.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>Get the number of dialing nodes.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_pending" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#88">source</a><h4 class="code-header">fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&self, node: NodeId) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check if a node is being dialed.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.node_id" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#90">source</a><h4 class="code-header">fn <a href="#tymethod.node_id" class="fn">node_id</a>(&self) -> NodeId</h4></section></summary><div class="docblock"><p>Get the node id of our node.</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-Dialer-for-Dialer" class="impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1495-1513">source</a><a href="#impl-Dialer-for-Dialer" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Dialer.html" title="trait iroh_blobs::downloader::Dialer">Dialer</a> for <a class="struct" href="../../iroh_net/dialer/struct.Dialer.html" title="struct iroh_net::dialer::Dialer">Dialer</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Connection-1" class="associatedtype trait-impl"><a href="#associatedtype.Connection-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Connection" class="associatedtype">Connection</a> = Connection</h4></section><section id="method.queue_dial" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1498-1500">source</a><a href="#method.queue_dial" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&mut self, node_id: NodeId)</h4></section><section id="method.pending_count" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1502-1504">source</a><a href="#method.pending_count" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.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><section id="method.is_pending" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1506-1508">source</a><a href="#method.is_pending" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&self, node: NodeId) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.node_id" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1510-1512">source</a><a href="#method.node_id" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.node_id" class="fn">node_id</a>(&self) -> NodeId</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_blobs/downloader/trait.Dialer.js" data-ignore-extern-crates="iroh_net" async></script></section></div></main></body></html>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_pending" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#88">source</a><h4 class="code-header">fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&self, node: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::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>Check if a node is being dialed.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.node_id" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#90">source</a><h4 class="code-header">fn <a href="#tymethod.node_id" class="fn">node_id</a>(&self) -> <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a></h4></section></summary><div class="docblock"><p>Get the node id of our node.</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-Dialer-for-Dialer" class="impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1495-1513">source</a><a href="#impl-Dialer-for-Dialer" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Dialer.html" title="trait iroh_blobs::downloader::Dialer">Dialer</a> for <a class="struct" href="../../iroh_net/dialer/struct.Dialer.html" title="struct iroh_net::dialer::Dialer">Dialer</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Connection-1" class="associatedtype trait-impl"><a href="#associatedtype.Connection-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Connection" class="associatedtype">Connection</a> = Connection</h4></section><section id="method.queue_dial" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1498-1500">source</a><a href="#method.queue_dial" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&mut self, node_id: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>)</h4></section><section id="method.pending_count" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1502-1504">source</a><a href="#method.pending_count" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.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><section id="method.is_pending" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1506-1508">source</a><a href="#method.is_pending" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&self, node: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.node_id" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1510-1512">source</a><a href="#method.node_id" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.node_id" class="fn">node_id</a>(&self) -> <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</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_blobs/downloader/trait.Dialer.js" data-ignore-extern-crates="iroh_net" 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
@@ -17,7 +17,7 @@
|
||||
format: <a class="enum" href="../enum.BlobFormat.html" title="enum iroh_blobs::BlobFormat">BlobFormat</a>,
|
||||
tag: <a class="struct" href="../util/struct.Tag.html" title="struct iroh_blobs::util::Tag">Tag</a>,
|
||||
},
|
||||
Abort(RpcError),
|
||||
Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>),
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Progress updates for the add operation.</p>
|
||||
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Found" class="variant"><a href="#variant.Found" class="anchor">§</a><h3 class="code-header">Found</h3></section><div class="docblock"><p>An item was found with name <code>name</code>, from now on referred to via <code>id</code></p>
|
||||
</div><div class="sub-variant" id="variant.Found.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Found.field.id" class="section-header"><a href="#variant.Found.field.id" class="anchor field">§</a><code>id: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>A new unique id for this entry.</p>
|
||||
@@ -33,7 +33,7 @@
|
||||
</div><div class="sub-variant" id="variant.AllDone.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.AllDone.field.hash" class="section-header"><a href="#variant.AllDone.field.hash" class="anchor field">§</a><code>hash: <a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a></code></span><div class="docblock"><p>The hash of the created data.</p>
|
||||
</div></div><div class="sub-variant-field"><span id="variant.AllDone.field.format" class="section-header"><a href="#variant.AllDone.field.format" class="anchor field">§</a><code>format: <a class="enum" href="../enum.BlobFormat.html" title="enum iroh_blobs::BlobFormat">BlobFormat</a></code></span><div class="docblock"><p>The format of the added data.</p>
|
||||
</div></div><div class="sub-variant-field"><span id="variant.AllDone.field.tag" class="section-header"><a href="#variant.AllDone.field.tag" class="anchor field">§</a><code>tag: <a class="struct" href="../util/struct.Tag.html" title="struct iroh_blobs::util::Tag">Tag</a></code></span><div class="docblock"><p>The tag of the added data.</p>
|
||||
</div></div></div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(RpcError)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
|
||||
</div></div></div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
|
||||
<p>This will be the last message in the stream.</p>
|
||||
</div></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-AddProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#impl-Debug-for-AddProgress" 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="enum" href="enum.AddProgress.html" title="enum iroh_blobs::provider::AddProgress">AddProgress</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_blobs/provider.rs.html#122">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-Deserialize%3C'de%3E-for-AddProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#impl-Deserialize%3C'de%3E-for-AddProgress" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="enum" href="enum.AddProgress.html" title="enum iroh_blobs::provider::AddProgress">AddProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>><div class="where">where
|
||||
__D: <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-AddProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#impl-Serialize-for-AddProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="enum" href="enum.AddProgress.html" title="enum iroh_blobs::provider::AddProgress">AddProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>><div class="where">where
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
Done {
|
||||
hash: <a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a>,
|
||||
},
|
||||
Abort(RpcError),
|
||||
Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>),
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Progress updates for the batch add operation.</p>
|
||||
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Found" class="variant"><a href="#variant.Found" class="anchor">§</a><h3 class="code-header">Found</h3></section><div class="docblock"><p>An item was found with the given size</p>
|
||||
</div><div class="sub-variant" id="variant.Found.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Found.field.size" class="section-header"><a href="#variant.Found.field.size" class="anchor field">§</a><code>size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The size of the entry in bytes.</p>
|
||||
@@ -16,7 +16,7 @@
|
||||
</div><div class="sub-variant" id="variant.Progress.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Progress.field.offset" class="section-header"><a href="#variant.Progress.field.offset" class="anchor field">§</a><code>offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The offset of the progress, in bytes.</p>
|
||||
</div></div></div><section id="variant.Done" class="variant"><a href="#variant.Done" class="anchor">§</a><h3 class="code-header">Done</h3></section><div class="docblock"><p>We are done, and the hash is <code>hash</code>.</p>
|
||||
</div><div class="sub-variant" id="variant.Done.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Done.field.hash" class="section-header"><a href="#variant.Done.field.hash" class="anchor field">§</a><code>hash: <a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a></code></span><div class="docblock"><p>The hash of the entry.</p>
|
||||
</div></div></div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(RpcError)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
|
||||
</div></div></div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
|
||||
<p>This will be the last message in the stream.</p>
|
||||
</div></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-BatchAddPathProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#impl-Debug-for-BatchAddPathProgress" 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="enum" href="enum.BatchAddPathProgress.html" title="enum iroh_blobs::provider::BatchAddPathProgress">BatchAddPathProgress</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_blobs/provider.rs.html#163">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-Deserialize%3C'de%3E-for-BatchAddPathProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#impl-Deserialize%3C'de%3E-for-BatchAddPathProgress" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="enum" href="enum.BatchAddPathProgress.html" title="enum iroh_blobs::provider::BatchAddPathProgress">BatchAddPathProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>><div class="where">where
|
||||
__D: <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-BatchAddPathProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#impl-Serialize-for-BatchAddPathProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="enum" href="enum.BatchAddPathProgress.html" title="enum iroh_blobs::provider::BatchAddPathProgress">BatchAddPathProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>><div class="where">where
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
level: <a class="enum" href="enum.ReportLevel.html" title="enum iroh_blobs::store::ReportLevel">ReportLevel</a>,
|
||||
},
|
||||
Done,
|
||||
Abort(RpcError),
|
||||
Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>),
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Progress updates for the validate operation</p>
|
||||
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Start" class="variant"><a href="#variant.Start" class="anchor">§</a><h3 class="code-header">Start</h3></section><div class="docblock"><p>Consistency check started</p>
|
||||
</div><section id="variant.Update" class="variant"><a href="#variant.Update" class="anchor">§</a><h3 class="code-header">Update</h3></section><div class="docblock"><p>Consistency check update</p>
|
||||
@@ -14,7 +14,7 @@
|
||||
</div></div><div class="sub-variant-field"><span id="variant.Update.field.entry" class="section-header"><a href="#variant.Update.field.entry" class="anchor field">§</a><code>entry: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a>></code></span><div class="docblock"><p>The entry this message is about, if any</p>
|
||||
</div></div><div class="sub-variant-field"><span id="variant.Update.field.level" class="section-header"><a href="#variant.Update.field.level" class="anchor field">§</a><code>level: <a class="enum" href="enum.ReportLevel.html" title="enum iroh_blobs::store::ReportLevel">ReportLevel</a></code></span><div class="docblock"><p>The level of the message</p>
|
||||
</div></div></div><section id="variant.Done" class="variant"><a href="#variant.Done" class="anchor">§</a><h3 class="code-header">Done</h3></section><div class="docblock"><p>Consistency check ended</p>
|
||||
</div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(RpcError)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
|
||||
</div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
|
||||
</div></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-ConsistencyCheckProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#impl-Debug-for-ConsistencyCheckProgress" 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="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</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_blobs/store/traits.rs.html#807">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-Deserialize%3C'de%3E-for-ConsistencyCheckProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#impl-Deserialize%3C'de%3E-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>><div class="where">where
|
||||
__D: <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-ConsistencyCheckProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#impl-Serialize-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>><div class="where">where
|
||||
__S: <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-ConsistencyCheckProgress" class="impl"><a href="#impl-Freeze-for-ConsistencyCheckProgress" 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="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section><section id="impl-RefUnwindSafe-for-ConsistencyCheckProgress" class="impl"><a href="#impl-RefUnwindSafe-for-ConsistencyCheckProgress" 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="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section><section id="impl-Send-for-ConsistencyCheckProgress" class="impl"><a href="#impl-Send-for-ConsistencyCheckProgress" 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="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section><section id="impl-Sync-for-ConsistencyCheckProgress" class="impl"><a href="#impl-Sync-for-ConsistencyCheckProgress" 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="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section><section id="impl-Unpin-for-ConsistencyCheckProgress" class="impl"><a href="#impl-Unpin-for-ConsistencyCheckProgress" 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="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section><section id="impl-UnwindSafe-for-ConsistencyCheckProgress" class="impl"><a href="#impl-UnwindSafe-for-ConsistencyCheckProgress" 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="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</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
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
ranges: <a class="struct" href="../protocol/struct.RangeSpec.html" title="struct iroh_blobs::protocol::RangeSpec">RangeSpec</a>,
|
||||
},
|
||||
AllDone,
|
||||
Abort(RpcError),
|
||||
Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>),
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Progress updates for the validate operation</p>
|
||||
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Starting" class="variant"><a href="#variant.Starting" class="anchor">§</a><h3 class="code-header">Starting</h3></section><div class="docblock"><p>started validating</p>
|
||||
</div><div class="sub-variant" id="variant.Starting.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Starting.field.total" class="section-header"><a href="#variant.Starting.field.total" class="anchor field">§</a><code>total: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The total number of entries to validate</p>
|
||||
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.</
|
||||
</div><div class="sub-variant" id="variant.PartialEntryDone.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.PartialEntryDone.field.id" class="section-header"><a href="#variant.PartialEntryDone.field.id" class="anchor field">§</a><code>id: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The unique id of the entry.</p>
|
||||
</div></div><div class="sub-variant-field"><span id="variant.PartialEntryDone.field.ranges" class="section-header"><a href="#variant.PartialEntryDone.field.ranges" class="anchor field">§</a><code>ranges: <a class="struct" href="../protocol/struct.RangeSpec.html" title="struct iroh_blobs::protocol::RangeSpec">RangeSpec</a></code></span><div class="docblock"><p>Available ranges.</p>
|
||||
</div></div></div><section id="variant.AllDone" class="variant"><a href="#variant.AllDone" class="anchor">§</a><h3 class="code-header">AllDone</h3></section><div class="docblock"><p>We are done with the whole operation.</p>
|
||||
</div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(RpcError)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
|
||||
</div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
|
||||
</div></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-ValidateProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#impl-Debug-for-ValidateProgress" 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="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</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_blobs/store/traits.rs.html#827">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-Deserialize%3C'de%3E-for-ValidateProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#impl-Deserialize%3C'de%3E-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>><div class="where">where
|
||||
__D: <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-ValidateProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#impl-Serialize-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>><div class="where">where
|
||||
__S: <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-ValidateProgress" class="impl"><a href="#impl-Freeze-for-ValidateProgress" 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="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section><section id="impl-RefUnwindSafe-for-ValidateProgress" class="impl"><a href="#impl-RefUnwindSafe-for-ValidateProgress" 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="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section><section id="impl-Send-for-ValidateProgress" class="impl"><a href="#impl-Send-for-ValidateProgress" 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="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section><section id="impl-Sync-for-ValidateProgress" class="impl"><a href="#impl-Sync-for-ValidateProgress" 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="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section><section id="impl-Unpin-for-ValidateProgress" class="impl"><a href="#impl-Unpin-for-ValidateProgress" 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="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section><section id="impl-UnwindSafe-for-ValidateProgress" class="impl"><a href="#impl-UnwindSafe-for-ValidateProgress" 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="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</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
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
|
||||
namespace: <a class="struct" href="../struct.NamespaceId.html" title="struct iroh_docs::NamespaceId">NamespaceId</a>,
|
||||
author: <a class="struct" href="../struct.AuthorId.html" title="struct iroh_docs::AuthorId">AuthorId</a>,
|
||||
key: Bytes,
|
||||
hash: Hash,
|
||||
hash: <a class="struct" href="../../iroh_base/hash/struct.Hash.html" title="struct iroh_base::hash::Hash">Hash</a>,
|
||||
len: <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.85/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.delete_prefix" class="method"><a class="src rightside" href="../../src/iroh_docs/actor.rs.html#347-357">source</a><h4 class="code-header">pub async fn <a href="#method.delete_prefix" class="fn">delete_prefix</a>(
|
||||
&self,
|
||||
|
||||
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="Converts an `EntryStatus` into a [‘ContentStatus’]."><title>entry_to_content_status in iroh_docs::engine - 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_docs" 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_docs/index.html">iroh_docs</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_docs::engine</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_docs/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_docs</a>::<wbr><a href="index.html">engine</a>::<wbr><a class="fn" href="#">entry_to_content_status</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_docs/engine.rs.html#211-221">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn entry_to_content_status(entry: <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><EntryStatus>) -> <a class="enum" href="../sync/enum.ContentStatus.html" title="enum iroh_docs::sync::ContentStatus">ContentStatus</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Converts an [<code>EntryStatus</code>] into a [‘ContentStatus’].</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="Converts an `EntryStatus` into a [‘ContentStatus’]."><title>entry_to_content_status in iroh_docs::engine - 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_docs" 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_docs/index.html">iroh_docs</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_docs::engine</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_docs/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_docs</a>::<wbr><a href="index.html">engine</a>::<wbr><a class="fn" href="#">entry_to_content_status</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_docs/engine.rs.html#211-221">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn entry_to_content_status(entry: <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="../../iroh_blobs/store/traits/enum.EntryStatus.html" title="enum iroh_blobs::store::traits::EntryStatus">EntryStatus</a>>) -> <a class="enum" href="../sync/enum.ContentStatus.html" title="enum iroh_docs::sync::ContentStatus">ContentStatus</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Converts an <a href="../../iroh_blobs/store/traits/enum.EntryStatus.html" title="enum iroh_blobs::store::traits::EntryStatus"><code>EntryStatus</code></a> into a [‘ContentStatus’].</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="Handlers and actors to for live syncing replicas."><title>iroh_docs::engine - 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_docs" 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_docs/index.html">iroh_docs</a><span class="version">0.23.0</span></h2></div><h2 class="location"><a href="#">Module engine</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="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate iroh_docs</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_docs/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_docs</a>::<wbr><a class="mod" href="#">engine</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_docs/engine.rs.html#1-410">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>Handlers and actors to for live syncing replicas.</p>
|
||||
<p><a href="../sync/struct.Replica.html" title="struct iroh_docs::sync::Replica"><code>crate::Replica</code></a> is also called documents here.</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.DefaultAuthor.html" title="struct iroh_docs::engine::DefaultAuthor">DefaultAuthor</a></div><div class="desc docblock-short">Persistent default author for a docs engine.</div></li><li><div class="item-name"><a class="struct" href="struct.Engine.html" title="struct iroh_docs::engine::Engine">Engine</a></div><div class="desc docblock-short">The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
|
||||
peers and a gossip swarm for each syncing document.</div></li><li><div class="item-name"><a class="struct" href="struct.SyncEvent.html" title="struct iroh_docs::engine::SyncEvent">SyncEvent</a></div><div class="desc docblock-short">Event emitted when a sync operation completes</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.DefaultAuthorStorage.html" title="enum iroh_docs::engine::DefaultAuthorStorage">DefaultAuthorStorage</a></div><div class="desc docblock-short">Where to persist the default author.</div></li><li><div class="item-name"><a class="enum" href="enum.LiveEvent.html" title="enum iroh_docs::engine::LiveEvent">LiveEvent</a></div><div class="desc docblock-short">Events informing about actions of the live sync progress.</div></li><li><div class="item-name"><a class="enum" href="enum.Origin.html" title="enum iroh_docs::engine::Origin">Origin</a></div><div class="desc docblock-short">Why we performed a sync exchange</div></li><li><div class="item-name"><a class="enum" href="enum.SyncReason.html" title="enum iroh_docs::engine::SyncReason">SyncReason</a></div><div class="desc docblock-short">Why we started a sync request</div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.entry_to_content_status.html" title="fn iroh_docs::engine::entry_to_content_status">entry_to_content_status</a></div><div class="desc docblock-short">Converts an [<code>EntryStatus</code>] into a [‘ContentStatus’].</div></li></ul></section></div></main></body></html>
|
||||
peers and a gossip swarm for each syncing document.</div></li><li><div class="item-name"><a class="struct" href="struct.SyncEvent.html" title="struct iroh_docs::engine::SyncEvent">SyncEvent</a></div><div class="desc docblock-short">Event emitted when a sync operation completes</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.DefaultAuthorStorage.html" title="enum iroh_docs::engine::DefaultAuthorStorage">DefaultAuthorStorage</a></div><div class="desc docblock-short">Where to persist the default author.</div></li><li><div class="item-name"><a class="enum" href="enum.LiveEvent.html" title="enum iroh_docs::engine::LiveEvent">LiveEvent</a></div><div class="desc docblock-short">Events informing about actions of the live sync progress.</div></li><li><div class="item-name"><a class="enum" href="enum.Origin.html" title="enum iroh_docs::engine::Origin">Origin</a></div><div class="desc docblock-short">Why we performed a sync exchange</div></li><li><div class="item-name"><a class="enum" href="enum.SyncReason.html" title="enum iroh_docs::engine::SyncReason">SyncReason</a></div><div class="desc docblock-short">Why we started a sync request</div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.entry_to_content_status.html" title="fn iroh_docs::engine::entry_to_content_status">entry_to_content_status</a></div><div class="desc docblock-short">Converts an <a href="../../iroh_blobs/store/traits/enum.EntryStatus.html" title="enum iroh_blobs::store::traits::EntryStatus"><code>EntryStatus</code></a> into a [‘ContentStatus’].</div></li></ul></section></div></main></body></html>
|
||||
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.</p>
|
||||
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.endpoint" class="structfield section-header"><a href="#structfield.endpoint" class="anchor field">§</a><code>endpoint: <a class="struct" href="../../iroh_net/endpoint/struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint">Endpoint</a></code></span><div class="docblock"><p><a href="../../iroh_net/endpoint/struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> used by the engine.</p>
|
||||
</div><span id="structfield.sync" class="structfield section-header"><a href="#structfield.sync" class="anchor field">§</a><code>sync: <a class="struct" href="../actor/struct.SyncHandle.html" title="struct iroh_docs::actor::SyncHandle">SyncHandle</a></code></span><div class="docblock"><p>Handle to the actor thread.</p>
|
||||
</div><span id="structfield.default_author" class="structfield section-header"><a href="#structfield.default_author" class="anchor field">§</a><code>default_author: <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.DefaultAuthor.html" title="struct iroh_docs::engine::DefaultAuthor">DefaultAuthor</a>></code></span><div class="docblock"><p>The persistent default author for this engine.</p>
|
||||
</div><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-Engine" class="impl"><a class="src rightside" href="../../src/iroh_docs/engine.rs.html#57-208">source</a><a href="#impl-Engine" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Engine.html" title="struct iroh_docs::engine::Engine">Engine</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.spawn" class="method"><a class="src rightside" href="../../src/iroh_docs/engine.rs.html#62-115">source</a><h4 class="code-header">pub async fn <a href="#method.spawn" class="fn">spawn</a><B: Store>(
|
||||
</div><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-Engine" class="impl"><a class="src rightside" href="../../src/iroh_docs/engine.rs.html#57-208">source</a><a href="#impl-Engine" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Engine.html" title="struct iroh_docs::engine::Engine">Engine</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.spawn" class="method"><a class="src rightside" href="../../src/iroh_docs/engine.rs.html#62-115">source</a><h4 class="code-header">pub async fn <a href="#method.spawn" class="fn">spawn</a><B: <a class="trait" href="../../iroh_blobs/store/traits/trait.Store.html" title="trait iroh_blobs::store::traits::Store">Store</a>>(
|
||||
endpoint: <a class="struct" href="../../iroh_net/endpoint/struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint">Endpoint</a>,
|
||||
gossip: Gossip,
|
||||
gossip: <a class="struct" href="../../iroh_gossip/net/struct.Gossip.html" title="struct iroh_gossip::net::Gossip">Gossip</a>,
|
||||
replica_store: <a class="struct" href="../store/fs/struct.Store.html" title="struct iroh_docs::store::fs::Store">Store</a>,
|
||||
bao_store: B,
|
||||
downloader: Downloader,
|
||||
downloader: <a class="struct" href="../../iroh_blobs/downloader/struct.Downloader.html" title="struct iroh_blobs::downloader::Downloader">Downloader</a>,
|
||||
default_author_storage: <a class="enum" href="enum.DefaultAuthorStorage.html" title="enum iroh_docs::engine::DefaultAuthorStorage">DefaultAuthorStorage</a>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><Self></h4></section></summary><div class="docblock"><p>Start the sync engine.</p>
|
||||
<p>This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
|
||||
@@ -21,7 +21,7 @@ thread for the <a href="../actor/struct.SyncHandle.html" title="struct iroh_docs
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.start_sync" class="method"><a class="src rightside" href="../../src/iroh_docs/engine.rs.html#121-132">source</a><h4 class="code-header">pub async fn <a href="#method.start_sync" class="fn">start_sync</a>(
|
||||
&self,
|
||||
namespace: <a class="struct" href="../struct.NamespaceId.html" title="struct iroh_docs::NamespaceId">NamespaceId</a>,
|
||||
peers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><NodeAddr>
|
||||
peers: <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="../../iroh_base/node_addr/struct.NodeAddr.html" title="struct iroh_base::node_addr::NodeAddr">NodeAddr</a>>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/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>Start to sync a document.</p>
|
||||
<p>If <code>peers</code> is non-empty, it will both do an initial set-reconciliation sync with each peer,
|
||||
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Multi-dimensional key-value documents with an efficient synchronization protocol"><title>iroh_docs - 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_docs" 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="../crates.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 crate"><!--[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_docs/index.html">iroh_docs</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li></ul></section></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_docs/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>Crate <a class="mod" href="#">iroh_docs</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_docs/lib.rs.html#1-57">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>Multi-dimensional key-value documents with an efficient synchronization protocol</p>
|
||||
<p>The crate operates on <a href="sync/struct.Replica.html" title="struct iroh_docs::sync::Replica">Replicas</a>. A replica contains an unlimited number of
|
||||
<a href="sync/struct.Entry.html" title="struct iroh_docs::sync::Entry">Entries</a>. Each entry is identified by a key, its author, and the replica’s
|
||||
namespace. Its value is the <a href="iroh_base::hash::Hash">32-byte BLAKE3 hash</a>
|
||||
namespace. Its value is the <a href="../iroh_base/hash/struct.Hash.html" title="struct iroh_base::hash::Hash">32-byte BLAKE3 hash</a>
|
||||
of the entry’s content data, the size of this content data, and a timestamp.
|
||||
The content data itself is not stored or transferred through a replica.</p>
|
||||
<p>All entries in a replica are signed with two keypairs:</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -2,6 +2,6 @@
|
||||
endpoint: &<a class="struct" href="../../iroh_net/endpoint/struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint">Endpoint</a>,
|
||||
sync: &<a class="struct" href="../actor/struct.SyncHandle.html" title="struct iroh_docs::actor::SyncHandle">SyncHandle</a>,
|
||||
namespace: <a class="struct" href="../struct.NamespaceId.html" title="struct iroh_docs::NamespaceId">NamespaceId</a>,
|
||||
peer: NodeAddr
|
||||
peer: <a class="struct" href="../../iroh_base/node_addr/struct.NodeAddr.html" title="struct iroh_base::node_addr::NodeAddr">NodeAddr</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="struct.SyncFinished.html" title="struct iroh_docs::net::SyncFinished">SyncFinished</a>, <a class="enum" href="enum.ConnectError.html" title="enum iroh_docs::net::ConnectError">ConnectError</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Connect to a peer and sync a replica</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -3,6 +3,6 @@
|
||||
connecting: <a class="struct" href="../../iroh_net/endpoint/struct.Connecting.html" title="struct iroh_net::endpoint::Connecting">Connecting</a>,
|
||||
accept_cb: F
|
||||
) -> <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="struct.SyncFinished.html" title="struct iroh_docs::net::SyncFinished">SyncFinished</a>, <a class="enum" href="enum.AcceptError.html" title="enum iroh_docs::net::AcceptError">AcceptError</a>><div class="where">where
|
||||
F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="struct" href="../struct.NamespaceId.html" title="struct iroh_docs::NamespaceId">NamespaceId</a>, PublicKey) -> Fut,
|
||||
F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="struct" href="../struct.NamespaceId.html" title="struct iroh_docs::NamespaceId">NamespaceId</a>, <a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>) -> Fut,
|
||||
Fut: <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="enum" href="enum.AcceptOutcome.html" title="enum iroh_docs::net::AcceptOutcome">AcceptOutcome</a>>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Handle an iroh-docs connection and sync all shared documents in the replica store.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.</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-ContentHashesIterator" class="impl"><a class="src rightside" href="../../../src/iroh_docs/store/fs.rs.html#900-906">source</a><a href="#impl-ContentHashesIterator" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.ContentHashesIterator.html" title="struct iroh_docs::store::fs::ContentHashesIterator">ContentHashesIterator</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.all" class="method"><a class="src rightside" href="../../../src/iroh_docs/store/fs.rs.html#902-905">source</a><h4 class="code-header">pub fn <a href="#method.all" class="fn">all</a>(
|
||||
table: &ReadOnlyTable<(&'static [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">32</a>], &'static [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">32</a>], &'static [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]), (<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, &'static [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">64</a>], &'static [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">64</a>], <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, &'static [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">32</a>])>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><Self></h4></section></summary><div class="docblock"><p>Create a new iterator over all content hashes.</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-ContentHashesIterator" class="impl"><a class="src rightside" href="../../../src/iroh_docs/store/fs.rs.html#894">source</a><a href="#impl-Debug-for-ContentHashesIterator" 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.ContentHashesIterator.html" title="struct iroh_docs::store::fs::ContentHashesIterator">ContentHashesIterator</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_docs/store/fs.rs.html#894">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, __derive_more_f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Iterator-for-ContentHashesIterator" class="impl"><a class="src rightside" href="../../../src/iroh_docs/store/fs.rs.html#908-915">source</a><a href="#impl-Iterator-for-ContentHashesIterator" class="anchor">§</a><h3 class="code-header">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> for <a class="struct" href="struct.ContentHashesIterator.html" title="struct iroh_docs::store::fs::ContentHashesIterator">ContentHashesIterator</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 href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Hash, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle method-toggle" open><summary><section id="method.next" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_docs/store/fs.rs.html#911-914">source</a><a href="#method.next" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#tymethod.next" class="fn">next</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>></h4></section></summary><div class='docblock'>Advances the iterator and returns the next value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.next_chunk" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#115-119">source</a><a href="#method.next_chunk" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.next_chunk" class="fn">next_chunk</a><const N: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</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-ContentHashesIterator" class="impl"><a class="src rightside" href="../../../src/iroh_docs/store/fs.rs.html#894">source</a><a href="#impl-Debug-for-ContentHashesIterator" 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.ContentHashesIterator.html" title="struct iroh_docs::store::fs::ContentHashesIterator">ContentHashesIterator</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_docs/store/fs.rs.html#894">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, __derive_more_f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Iterator-for-ContentHashesIterator" class="impl"><a class="src rightside" href="../../../src/iroh_docs/store/fs.rs.html#908-915">source</a><a href="#impl-Iterator-for-ContentHashesIterator" class="anchor">§</a><h3 class="code-header">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> for <a class="struct" href="struct.ContentHashesIterator.html" title="struct iroh_docs::store::fs::ContentHashesIterator">ContentHashesIterator</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 href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</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="../../../iroh_base/hash/struct.Hash.html" title="struct iroh_base::hash::Hash">Hash</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.85/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle method-toggle" open><summary><section id="method.next" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_docs/store/fs.rs.html#911-914">source</a><a href="#method.next" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#tymethod.next" class="fn">next</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>></h4></section></summary><div class='docblock'>Advances the iterator and returns the next value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.next_chunk" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#115-119">source</a><a href="#method.next_chunk" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.next_chunk" class="fn">next_chunk</a><const N: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>(
|
||||
&mut self
|
||||
) -> <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="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">N</a>], <a class="struct" href="https://doc.rust-lang.org/nightly/core/array/iter/struct.IntoIter.html" title="struct core::array::iter::IntoIter">IntoIter</a><Self::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, N>><div class="where">where
|
||||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>iter_next_chunk</code>)</span></div></span><div class='docblock'>Advances the iterator and returns an array containing the next <code>N</code> values. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.next_chunk">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.size_hint" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#193">source</a></span><a href="#method.size_hint" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.size_hint" class="fn">size_hint</a>(&self) -> (<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>)</h4></section></summary><div class='docblock'>Returns the bounds on the remaining length of the iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.size_hint">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.count" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#229-231">source</a></span><a href="#method.count" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.count" class="fn">count</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><div class="where">where
|
||||
|
||||
@@ -149,6 +149,6 @@ letters are used (e.g. <code>F9B4CA</code>)</div></details></div></details><deta
|
||||
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="https://docs.rs/tracing/latest/tracing/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||||
<code>WithDispatch</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/tracing-futures/0.2.5/src/tracing_futures/lib.rs.html#237">source</a><a href="#method.with_current_subscriber-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_current_subscriber" class="fn">with_current_subscriber</a>(self) -> <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a><Self></h4></section></summary><div class='docblock'>Attaches the current <a href="https://docs.rs/tracing/latest/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="https://docs.rs/tracing/latest/tracing/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||||
<code>WithDispatch</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details><section id="impl-DeserializeOwned-for-T" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.204/src/serde/de/mod.rs.html#615">source</a><a href="#impl-DeserializeOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
|
||||
T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section><section id="impl-PeerIdentity-for-T" class="impl"><a href="#impl-PeerIdentity-for-T" class="anchor">§</a><h3 class="code-header">impl<T> PeerIdentity for T<div class="where">where
|
||||
T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section><section id="impl-PeerIdentity-for-T" class="impl"><a class="src rightside" href="../src/iroh_gossip/proto.rs.html#78">source</a><a href="#impl-PeerIdentity-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../iroh_gossip/proto/trait.PeerIdentity.html" title="trait iroh_gossip::proto::PeerIdentity">PeerIdentity</a> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a>,</div></h3></section><section id="impl-RuleType-for-T" class="impl"><a class="src rightside" href="https://docs.rs/pest/src/pest/lib.rs.html#378">source</a><a href="#impl-RuleType-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/pest/pest/trait.RuleType.html" title="trait pest::RuleType">RuleType</a> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,</div></h3></section></div><script type="text/json" id="notable-traits-data">{"&[u8]":"<h3>Notable traits for <code>&[<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>]</code></h3><pre><code><div class=\"where\">impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/std/io/trait.Read.html\" title=\"trait std::io::Read\">Read</a> for &[<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>]</div>"}</script></section></div></main></body></html>
|
||||
@@ -141,6 +141,6 @@ builds.</div></details></div></details><details class="toggle implementors-toggl
|
||||
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="https://docs.rs/tracing/latest/tracing/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||||
<code>WithDispatch</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/tracing-futures/0.2.5/src/tracing_futures/lib.rs.html#237">source</a><a href="#method.with_current_subscriber-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_current_subscriber" class="fn">with_current_subscriber</a>(self) -> <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a><Self></h4></section></summary><div class='docblock'>Attaches the current <a href="https://docs.rs/tracing/latest/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="https://docs.rs/tracing/latest/tracing/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||||
<code>WithDispatch</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details><section id="impl-DeserializeOwned-for-T" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.204/src/serde/de/mod.rs.html#615">source</a><a href="#impl-DeserializeOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
|
||||
T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section><section id="impl-PeerIdentity-for-T" class="impl"><a href="#impl-PeerIdentity-for-T" class="anchor">§</a><h3 class="code-header">impl<T> PeerIdentity for T<div class="where">where
|
||||
T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section><section id="impl-PeerIdentity-for-T" class="impl"><a class="src rightside" href="../src/iroh_gossip/proto.rs.html#78">source</a><a href="#impl-PeerIdentity-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../iroh_gossip/proto/trait.PeerIdentity.html" title="trait iroh_gossip::proto::PeerIdentity">PeerIdentity</a> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a>,</div></h3></section><section id="impl-RuleType-for-T" class="impl"><a class="src rightside" href="https://docs.rs/pest/src/pest/lib.rs.html#378">source</a><a href="#impl-RuleType-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/pest/pest/trait.RuleType.html" title="trait pest::RuleType">RuleType</a> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,</div></h3></section></div></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -149,6 +149,6 @@ letters are used (e.g. <code>F9B4CA</code>)</div></details></div></details><deta
|
||||
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="https://docs.rs/tracing/latest/tracing/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||||
<code>WithDispatch</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/tracing-futures/0.2.5/src/tracing_futures/lib.rs.html#237">source</a><a href="#method.with_current_subscriber-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_current_subscriber" class="fn">with_current_subscriber</a>(self) -> <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a><Self></h4></section></summary><div class='docblock'>Attaches the current <a href="https://docs.rs/tracing/latest/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="https://docs.rs/tracing/latest/tracing/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||||
<code>WithDispatch</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details><section id="impl-DeserializeOwned-for-T" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.204/src/serde/de/mod.rs.html#615">source</a><a href="#impl-DeserializeOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
|
||||
T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section><section id="impl-PeerIdentity-for-T" class="impl"><a href="#impl-PeerIdentity-for-T" class="anchor">§</a><h3 class="code-header">impl<T> PeerIdentity for T<div class="where">where
|
||||
T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section><section id="impl-PeerIdentity-for-T" class="impl"><a class="src rightside" href="../src/iroh_gossip/proto.rs.html#78">source</a><a href="#impl-PeerIdentity-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../iroh_gossip/proto/trait.PeerIdentity.html" title="trait iroh_gossip::proto::PeerIdentity">PeerIdentity</a> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a>,</div></h3></section><section id="impl-RuleType-for-T" class="impl"><a class="src rightside" href="https://docs.rs/pest/src/pest/lib.rs.html#378">source</a><a href="#impl-RuleType-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/pest/pest/trait.RuleType.html" title="trait pest::RuleType">RuleType</a> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,</div></h3></section></div><script type="text/json" id="notable-traits-data">{"&[u8]":"<h3>Notable traits for <code>&[<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>]</code></h3><pre><code><div class=\"where\">impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/std/io/trait.Read.html\" title=\"trait std::io::Read\">Read</a> for &[<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>]</div>"}</script></section></div></main></body></html>
|
||||
@@ -140,6 +140,6 @@ builds.</div></details></div></details><details class="toggle implementors-toggl
|
||||
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="https://docs.rs/tracing/latest/tracing/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||||
<code>WithDispatch</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/tracing-futures/0.2.5/src/tracing_futures/lib.rs.html#237">source</a><a href="#method.with_current_subscriber-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_current_subscriber" class="fn">with_current_subscriber</a>(self) -> <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a><Self></h4></section></summary><div class='docblock'>Attaches the current <a href="https://docs.rs/tracing/latest/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="https://docs.rs/tracing/latest/tracing/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
|
||||
<code>WithDispatch</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details><section id="impl-DeserializeOwned-for-T" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.204/src/serde/de/mod.rs.html#615">source</a><a href="#impl-DeserializeOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
|
||||
T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section><section id="impl-PeerIdentity-for-T" class="impl"><a href="#impl-PeerIdentity-for-T" class="anchor">§</a><h3 class="code-header">impl<T> PeerIdentity for T<div class="where">where
|
||||
T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section><section id="impl-PeerIdentity-for-T" class="impl"><a class="src rightside" href="../src/iroh_gossip/proto.rs.html#78">source</a><a href="#impl-PeerIdentity-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../iroh_gossip/proto/trait.PeerIdentity.html" title="trait iroh_gossip::proto::PeerIdentity">PeerIdentity</a> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a>,</div></h3></section><section id="impl-RuleType-for-T" class="impl"><a class="src rightside" href="https://docs.rs/pest/src/pest/lib.rs.html#378">source</a><a href="#impl-RuleType-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/pest/pest/trait.RuleType.html" title="trait pest::RuleType">RuleType</a> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,</div></h3></section></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
@@ -5,7 +5,7 @@
|
||||
&mut self,
|
||||
key: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>,
|
||||
author: &<a class="struct" href="../struct.Author.html" title="struct iroh_docs::Author">Author</a>,
|
||||
hash: Hash,
|
||||
hash: <a class="struct" href="../../iroh_base/hash/struct.Hash.html" title="struct iroh_base::hash::Hash">Hash</a>,
|
||||
len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <a class="enum" href="enum.InsertError.html" title="enum iroh_docs::sync::InsertError">InsertError</a>></h4></section></summary><div class="docblock"><p>Insert a new record at the given key.</p>
|
||||
<p>The entry will by signed by the provided <code>author</code>.
|
||||
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.</p>
|
||||
key: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>,
|
||||
author: &<a class="struct" href="../struct.Author.html" title="struct iroh_docs::Author">Author</a>,
|
||||
data: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<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><Hash, <a class="enum" href="enum.InsertError.html" title="enum iroh_docs::sync::InsertError">InsertError</a>></h4></section></summary><div class="docblock"><p>Hashes the given data and inserts it.</p>
|
||||
) -> <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="../../iroh_base/hash/struct.Hash.html" title="struct iroh_base::hash::Hash">Hash</a>, <a class="enum" href="enum.InsertError.html" title="enum iroh_docs::sync::InsertError">InsertError</a>></h4></section></summary><div class="docblock"><p>Hashes the given data and inserts it.</p>
|
||||
<p>This does not store the content, just the record of it.
|
||||
Returns the calculated hash.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.record_id" class="method"><a class="src rightside" href="../../src/iroh_docs/sync.rs.html#508-510">source</a><h4 class="code-header">pub fn <a href="#method.record_id" class="fn">record_id</a>(
|
||||
|
||||
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="Callback that may be set on a replica to determine the availability status for a content hash."><title>ContentStatusCallback in iroh_docs::sync - 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_docs" 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_docs/index.html">iroh_docs</a><span class="version">0.23.0</span></h2></div><h2 class="location"><a href="#">ContentStatusCallback</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3></section><h2><a href="index.html">In iroh_docs::sync</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_docs/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_docs</a>::<wbr><a href="index.html">sync</a>::<wbr><a class="type" href="#">ContentStatusCallback</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_docs/sync.rs.html#48">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type ContentStatusCallback = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Hash) -> <a class="enum" href="enum.ContentStatus.html" title="enum iroh_docs::sync::ContentStatus">ContentStatus</a> + <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> + 'static>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Callback that may be set on a replica to determine the availability status for a content hash.</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="Callback that may be set on a replica to determine the availability status for a content hash."><title>ContentStatusCallback in iroh_docs::sync - 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_docs" 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_docs/index.html">iroh_docs</a><span class="version">0.23.0</span></h2></div><h2 class="location"><a href="#">ContentStatusCallback</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3></section><h2><a href="index.html">In iroh_docs::sync</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_docs/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_docs</a>::<wbr><a href="index.html">sync</a>::<wbr><a class="type" href="#">ContentStatusCallback</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_docs/sync.rs.html#48">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type ContentStatusCallback = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="struct" href="../../iroh_base/hash/struct.Hash.html" title="struct iroh_base::hash::Hash">Hash</a>) -> <a class="enum" href="enum.ContentStatus.html" title="enum iroh_docs::sync::ContentStatus">ContentStatus</a> + <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> + 'static>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Callback that may be set on a replica to determine the availability status for a content hash.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>struct ContentStatusCallback { <span class="comment">/* private fields */</span> }</code></pre><script src="../../type.impl/alloc/sync/struct.Arc.js" data-self-path="iroh_docs::sync::ContentStatusCallback" async></script></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns the default relay mode."><title>default_relay_mode in iroh_net::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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net::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_net/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_net</a>::<wbr><a href="index.html">endpoint</a>::<wbr><a class="fn" href="#">default_relay_mode</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_net/endpoint.rs.html#1186-1200">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn default_relay_mode() -> <a class="enum" href="../relay/enum.RelayMode.html" title="enum iroh_net::relay::RelayMode">RelayMode</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the default relay mode.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns the default relay mode."><title>default_relay_mode in iroh_net::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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net::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_net/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_net</a>::<wbr><a href="index.html">endpoint</a>::<wbr><a class="fn" href="#">default_relay_mode</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_net/endpoint.rs.html#1183-1197">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn default_relay_mode() -> <a class="enum" href="../relay/enum.RelayMode.html" title="enum iroh_net::relay::RelayMode">RelayMode</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the default relay mode.</p>
|
||||
<p>If the <code>IROH_FORCE_STAGING_RELAYS</code> environment variable is set to <code>1</code>, it will return <code>RelayMode::Staging</code>.
|
||||
Otherwise, it will return <code>RelayMode::Default</code>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Extract the `PublicKey` from the peer’s TLS certificate."><title>get_remote_node_id in iroh_net::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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net::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_net/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_net</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_net/endpoint.rs.html#1099-1117">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_net::endpoint::Connection">Connection</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../key/struct.PublicKey.html" title="struct iroh_net::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_net::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_net::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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net::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_net/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_net</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_net/endpoint.rs.html#1096-1114">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_net::endpoint::Connection">Connection</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../key/struct.PublicKey.html" title="struct iroh_net::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_net::key::PublicKey"><code>PublicKey</code></a> from the peer’s TLS certificate.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The `Endpoint` allows establishing connections to other iroh-net nodes."><title>iroh_net::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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.0</span></h2></div><h2 class="location"><a href="#">Module endpoint</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="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate iroh_net</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_net/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_net</a>::<wbr><a class="mod" href="#">endpoint</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_net/endpoint.rs.html#1-1689">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 <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> allows establishing connections to other iroh-net nodes.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The `Endpoint` allows establishing connections to other iroh-net nodes."><title>iroh_net::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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.0</span></h2></div><h2 class="location"><a href="#">Module endpoint</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="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate iroh_net</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_net/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_net</a>::<wbr><a class="mod" href="#">endpoint</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_net/endpoint.rs.html#1-1686">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 <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> allows establishing connections to other iroh-net nodes.</p>
|
||||
<p>The <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> is the main API interface to manage a local iroh-net node. It allows
|
||||
connecting to and accepting connections from other nodes. See the <a href="../index.html" title="mod iroh_net">module docs</a> for
|
||||
more details on how iroh-net connections work.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -14,11 +14,11 @@ behaviour.</p>
|
||||
<a href="struct.Connection.html#method.open_bi" title="method iroh_net::endpoint::Connection::open_bi"><code>Connection::open_bi</code></a> functions.</p>
|
||||
<p>Note that due to the light-weight properties of streams a stream will only be accepted
|
||||
once the initiating peer has sent some data on it.</p>
|
||||
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Endpoint" class="impl"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#343-892">source</a><a href="#impl-Endpoint" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Endpoint.html" title="struct iroh_net::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_net/endpoint.rs.html#351-353">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_net::endpoint::Builder">Builder</a></h4></section></summary><div class="docblock"><p>Returns the builder for an <a href="struct.Endpoint.html" title="struct iroh_net::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_net/endpoint.rs.html#400-404">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.85/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><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_net/endpoint.rs.html#343-889">source</a><a href="#impl-Endpoint" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Endpoint.html" title="struct iroh_net::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_net/endpoint.rs.html#351-353">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_net::endpoint::Builder">Builder</a></h4></section></summary><div class="docblock"><p>Returns the builder for an <a href="struct.Endpoint.html" title="struct iroh_net::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_net/endpoint.rs.html#399-403">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.85/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_net/endpoint.rs.html#428-468">source</a><h4 class="code-header">pub async fn <a href="#method.connect" class="fn">connect</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#427">source</a><h4 class="code-header">pub async fn <a href="#method.connect" class="fn">connect</a>(
|
||||
&self,
|
||||
node_addr: <a class="struct" href="../struct.NodeAddr.html" title="struct iroh_net::NodeAddr">NodeAddr</a>,
|
||||
alpn: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]
|
||||
@@ -38,7 +38,7 @@ connection attempt will fail with an error.</p>
|
||||
<p>The <code>alpn</code>, or application-level protocol identifier, is also required. The remote
|
||||
endpoint must support this <code>alpn</code>, otherwise the connection attempt will fail with
|
||||
an error.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect_by_node_id" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#476-483">source</a><h4 class="code-header">pub async fn <a href="#method.connect_by_node_id" class="fn">connect_by_node_id</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connect_by_node_id" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#473-480">source</a><h4 class="code-header">pub async fn <a href="#method.connect_by_node_id" class="fn">connect_by_node_id</a>(
|
||||
&self,
|
||||
node_id: <a class="type" href="../type.NodeId.html" title="type iroh_net::NodeId">NodeId</a>,
|
||||
alpn: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]
|
||||
@@ -47,13 +47,13 @@ an error.</p>
|
||||
information being provided by either the discovery service or using
|
||||
<a href="struct.Endpoint.html#method.add_node_addr" title="method iroh_net::endpoint::Endpoint::add_node_addr"><code>Endpoint::add_node_addr</code></a>. See <a href="struct.Endpoint.html#method.connect" title="method iroh_net::endpoint::Endpoint::connect"><code>Endpoint::connect</code></a> for the details of how it
|
||||
uses the discovery service to establish a connection to a remote node.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.accept" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#536-541">source</a><h4 class="code-header">pub fn <a href="#method.accept" class="fn">accept</a>(&self) -> <a class="struct" href="struct.Accept.html" title="struct iroh_net::endpoint::Accept">Accept</a><'_> <a href="#" class="tooltip" data-notable-ty="Accept<'_>">ⓘ</a></h4></section></summary><div class="docblock"><p>Accepts an incoming connection on the endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.accept" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#533-538">source</a><h4 class="code-header">pub fn <a href="#method.accept" class="fn">accept</a>(&self) -> <a class="struct" href="struct.Accept.html" title="struct iroh_net::endpoint::Accept">Accept</a><'_> <a href="#" class="tooltip" data-notable-ty="Accept<'_>">ⓘ</a></h4></section></summary><div class="docblock"><p>Accepts an incoming connection on the endpoint.</p>
|
||||
<p>Only connections with the ALPNs configured in <a href="struct.Builder.html#method.alpns" title="method iroh_net::endpoint::Builder::alpns"><code>Builder::alpns</code></a> will be accepted.
|
||||
If multiple ALPNs have been configured the ALPN can be inspected before accepting
|
||||
the connection using <a href="struct.Connecting.html#method.alpn" title="method iroh_net::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_net::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_net/endpoint.rs.html#559-561">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_net::NodeAddr">NodeAddr</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/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_net::endpoint::Endpoint"><code>Endpoint</code></a> about addresses of the iroh-net 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_net/endpoint.rs.html#556-558">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_net::NodeAddr">NodeAddr</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/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_net::endpoint::Endpoint"><code>Endpoint</code></a> about addresses of the iroh-net node.</p>
|
||||
<p>This updates the local state for the remote node. If the provided <a href="../struct.NodeAddr.html" title="struct iroh_net::NodeAddr"><code>NodeAddr</code></a>
|
||||
contains a <a href="../relay/struct.RelayUrl.html" title="struct iroh_net::relay::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
|
||||
@@ -63,7 +63,7 @@ silently ignored.</p>
|
||||
<h5 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h5>
|
||||
<p>Will return an error if we attempt to add our own <a href="../key/struct.PublicKey.html" title="struct iroh_net::key::PublicKey"><code>PublicKey</code></a> to the node map or if the
|
||||
direct addresses are a subset of ours.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_node_addr_with_source" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#575-581">source</a><h4 class="code-header">pub fn <a href="#method.add_node_addr_with_source" class="fn">add_node_addr_with_source</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_node_addr_with_source" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#572-578">source</a><h4 class="code-header">pub fn <a href="#method.add_node_addr_with_source" class="fn">add_node_addr_with_source</a>(
|
||||
&self,
|
||||
node_addr: <a class="struct" href="../struct.NodeAddr.html" title="struct iroh_net::NodeAddr">NodeAddr</a>,
|
||||
source: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>
|
||||
@@ -76,15 +76,15 @@ used for logging exclusively and will not be stored.</p>
|
||||
<h5 id="errors-1"><a class="doc-anchor" href="#errors-1">§</a>Errors</h5>
|
||||
<p>Will return an error if we attempt to add our own <a href="../key/struct.PublicKey.html" title="struct iroh_net::key::PublicKey"><code>PublicKey</code></a> to the node map or if the
|
||||
direct addresses are a subset of ours.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.secret_key" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#597-599">source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(&self) -> &<a class="struct" href="../key/struct.SecretKey.html" title="struct iroh_net::key::SecretKey">SecretKey</a></h4></section></summary><div class="docblock"><p>Returns the secret_key of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_id" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#605-607">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_net::NodeId">NodeId</a></h4></section></summary><div class="docblock"><p>Returns the node id of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.secret_key" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#594-596">source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(&self) -> &<a class="struct" href="../key/struct.SecretKey.html" title="struct iroh_net::key::SecretKey">SecretKey</a></h4></section></summary><div class="docblock"><p>Returns the secret_key of this endpoint.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_id" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#602-604">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_net::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_net/endpoint.rs.html#614-623">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.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh_net::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Returns the current <a href="../struct.NodeAddr.html" title="struct iroh_net::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_net/endpoint.rs.html#611-620">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.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.NodeAddr.html" title="struct iroh_net::NodeAddr">NodeAddr</a>></h4></section></summary><div class="docblock"><p>Returns the current <a href="../struct.NodeAddr.html" title="struct iroh_net::NodeAddr"><code>NodeAddr</code></a> for this endpoint.</p>
|
||||
<p>The returned <a href="../struct.NodeAddr.html" title="struct iroh_net::NodeAddr"><code>NodeAddr</code></a> will have the current <a href="../relay/struct.RelayUrl.html" title="struct iroh_net::relay::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_net::endpoint::Endpoint::home_relay"><code>Endpoint::home_relay</code></a> and
|
||||
<a href="struct.Endpoint.html#method.direct_addresses" title="method iroh_net::endpoint::Endpoint::direct_addresses"><code>Endpoint::direct_addresses</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.home_relay" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#637-639">source</a><h4 class="code-header">pub fn <a href="#method.home_relay" class="fn">home_relay</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../relay/struct.RelayUrl.html" title="struct iroh_net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Returns the <a href="../relay/struct.RelayUrl.html" title="struct iroh_net::relay::RelayUrl"><code>RelayUrl</code></a> of the Relay server used as home relay.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.home_relay" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#634-636">source</a><h4 class="code-header">pub fn <a href="#method.home_relay" class="fn">home_relay</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../relay/struct.RelayUrl.html" title="struct iroh_net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Returns the <a href="../relay/struct.RelayUrl.html" title="struct iroh_net::relay::RelayUrl"><code>RelayUrl</code></a> of the Relay server used as home relay.</p>
|
||||
<p>Every endpoint has a home Relay server which it chooses as the server with the
|
||||
lowest latency out of the configured servers provided by <a href="struct.Builder.html#method.relay_mode" title="method iroh_net::endpoint::Builder::relay_mode"><code>Builder::relay_mode</code></a>.
|
||||
This is the server other iroh-net nodes can use to reliably establish a connection
|
||||
@@ -93,14 +93,14 @@ to this node.</p>
|
||||
<p>Note that this will be <code>None</code> right after the <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> is created since it takes
|
||||
some time to connect to find and connect to the home relay server. Use
|
||||
<a href="struct.Endpoint.html#method.watch_home_relay" title="method iroh_net::endpoint::Endpoint::watch_home_relay"><code>Endpoint::watch_home_relay</code></a> to wait until the home relay server is available.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.watch_home_relay" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#650-652">source</a><h4 class="code-header">pub fn <a href="#method.watch_home_relay" class="fn">watch_home_relay</a>(&self) -> impl Stream<Item = <a class="struct" href="../relay/struct.RelayUrl.html" title="struct iroh_net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Watches for changes to the home relay.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.watch_home_relay" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#647-649">source</a><h4 class="code-header">pub fn <a href="#method.watch_home_relay" class="fn">watch_home_relay</a>(&self) -> impl Stream<Item = <a class="struct" href="../relay/struct.RelayUrl.html" title="struct iroh_net::relay::RelayUrl">RelayUrl</a>></h4></section></summary><div class="docblock"><p>Watches for changes to the home relay.</p>
|
||||
<p>If there is currently a home relay it will be yielded immediately as the first item
|
||||
in the stream. This makes it possible to use this function to wait for the initial
|
||||
home relay to be known.</p>
|
||||
<p>Note that it is not guaranteed that a home relay will ever become available. If no
|
||||
servers are configured with <a href="struct.Builder.html#method.relay_mode" title="method iroh_net::endpoint::Builder::relay_mode"><code>Builder::relay_mode</code></a> this stream will never yield an
|
||||
item.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.direct_addresses" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#688-690">source</a><h4 class="code-header">pub fn <a href="#method.direct_addresses" class="fn">direct_addresses</a>(&self) -> <a class="struct" href="struct.DirectAddrsStream.html" title="struct iroh_net::endpoint::DirectAddrsStream">DirectAddrsStream</a></h4></section></summary><div class="docblock"><p>Returns the direct addresses of this <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.direct_addresses" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#685-687">source</a><h4 class="code-header">pub fn <a href="#method.direct_addresses" class="fn">direct_addresses</a>(&self) -> <a class="struct" href="struct.DirectAddrsStream.html" title="struct iroh_net::endpoint::DirectAddrsStream">DirectAddrsStream</a></h4></section></summary><div class="docblock"><p>Returns the direct addresses of this <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<p>The direct addresses of the <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> are those that could be used by other
|
||||
iroh-net nodes to establish direct connectivity, depending on the network
|
||||
situation. The yielded lists of direct addresses contain both the locally-bound
|
||||
@@ -123,10 +123,10 @@ most recently discovered IP endpoints.</p>
|
||||
|
||||
<span class="kw">let </span>mep = Endpoint::builder().bind(<span class="number">0</span>).<span class="kw">await</span>.unwrap();
|
||||
<span class="kw">let </span>_addrs = mep.direct_addresses().next().<span class="kw">await</span>;</code></pre></div>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.bound_sockets" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#696-698">source</a><h4 class="code-header">pub fn <a href="#method.bound_sockets" class="fn">bound_sockets</a>(&self) -> (<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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>>)</h4></section></summary><div class="docblock"><p>Returns the local socket addresses on which the underlying sockets are bound.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.bound_sockets" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#693-695">source</a><h4 class="code-header">pub fn <a href="#method.bound_sockets" class="fn">bound_sockets</a>(&self) -> (<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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>>)</h4></section></summary><div class="docblock"><p>Returns the local socket addresses on which the underlying sockets are bound.</p>
|
||||
<p>The <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> always binds on an IPv4 address and also tries to bind on an IPv6
|
||||
address if available.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#713-715">source</a><h4 class="code-header">pub fn <a href="#method.remote_info" class="fn">remote_info</a>(&self, node_id: <a class="type" href="../type.NodeId.html" title="type iroh_net::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><<a class="struct" href="struct.RemoteInfo.html" title="struct iroh_net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about the remote node identified by a <a href="../type.NodeId.html" title="type iroh_net::NodeId"><code>NodeId</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#710-712">source</a><h4 class="code-header">pub fn <a href="#method.remote_info" class="fn">remote_info</a>(&self, node_id: <a class="type" href="../type.NodeId.html" title="type iroh_net::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><<a class="struct" href="struct.RemoteInfo.html" title="struct iroh_net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about the remote node identified by a <a href="../type.NodeId.html" title="type iroh_net::NodeId"><code>NodeId</code></a>.</p>
|
||||
<p>The <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> keeps some information about remote iroh-net nodes, which it uses to find
|
||||
the best path to a node. Having information on a remote node, however, does not mean we have
|
||||
ever connected to it to or even whether a connection is even possible. The information about a
|
||||
@@ -135,14 +135,14 @@ calls may return different information. Furthermore, node information may even b
|
||||
completely evicted as it becomes stale.</p>
|
||||
<p>See also <a href="struct.Endpoint.html#method.remote_info_iter" title="method iroh_net::endpoint::Endpoint::remote_info_iter"><code>Endpoint::remote_info_iter</code></a> which returns information on all nodes known
|
||||
by this <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info_iter" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#727-729">source</a><h4 class="code-header">pub fn <a href="#method.remote_info_iter" class="fn">remote_info_iter</a>(&self) -> 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="struct" href="struct.RemoteInfo.html" title="struct iroh_net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about all the remote nodes this <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> knows about.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.remote_info_iter" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#724-726">source</a><h4 class="code-header">pub fn <a href="#method.remote_info_iter" class="fn">remote_info_iter</a>(&self) -> 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="struct" href="struct.RemoteInfo.html" title="struct iroh_net::endpoint::RemoteInfo">RemoteInfo</a>></h4></section></summary><div class="docblock"><p>Returns information about all the remote nodes this <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> knows about.</p>
|
||||
<p>This returns the same information as <a href="struct.Endpoint.html#method.remote_info" title="method iroh_net::endpoint::Endpoint::remote_info"><code>Endpoint::remote_info</code></a> for each node known to this
|
||||
<a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<p>The <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a> keeps some information about remote iroh-net nodes, which it uses to find
|
||||
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_net::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_net/endpoint.rs.html#753-755">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_net::NodeId">NodeId</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.ConnectionTypeStream.html" title="struct iroh_net::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_net/endpoint.rs.html#750-752">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_net::NodeId">NodeId</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="struct.ConnectionTypeStream.html" title="struct iroh_net::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_net::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>
|
||||
@@ -155,11 +155,11 @@ connection when the switch from a relayed to a direct connection can be so fast
|
||||
the relayed state is never exposed.</p>
|
||||
<h5 id="errors-2"><a class="doc-anchor" href="#errors-2">§</a>Errors</h5>
|
||||
<p>Will error if we do not have any address information for the given <code>node_id</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.dns_resolver" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#760-762">source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(&self) -> &<a class="type" href="../dns/type.DnsResolver.html" title="type iroh_net::dns::DnsResolver">DnsResolver</a></h4></section></summary><div class="docblock"><p>Returns the DNS resolver used in this <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.dns_resolver" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#757-759">source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(&self) -> &<a class="type" href="../dns/type.DnsResolver.html" title="type iroh_net::dns::DnsResolver">DnsResolver</a></h4></section></summary><div class="docblock"><p>Returns the DNS resolver used in this <a href="struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
<p>See <a href="struct.Builder.html#method.discovery" title="method iroh_net::endpoint::Builder::discovery"><code>Builder::discovery</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.discovery" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#767-769">source</a><h4 class="code-header">pub fn <a href="#method.discovery" class="fn">discovery</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="../discovery/trait.Discovery.html" title="trait iroh_net::discovery::Discovery">Discovery</a>></h4></section></summary><div class="docblock"><p>Returns the discovery mechanism, if configured.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.discovery" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#764-766">source</a><h4 class="code-header">pub fn <a href="#method.discovery" class="fn">discovery</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="../discovery/trait.Discovery.html" title="trait iroh_net::discovery::Discovery">Discovery</a>></h4></section></summary><div class="docblock"><p>Returns the discovery mechanism, if configured.</p>
|
||||
<p>See <a href="struct.Builder.html#method.dns_resolver" title="method iroh_net::endpoint::Builder::dns_resolver"><code>Builder::dns_resolver</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.network_change" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#783-785">source</a><h4 class="code-header">pub async fn <a href="#method.network_change" class="fn">network_change</a>(&self)</h4></section></summary><div class="docblock"><p>Notifies the system of potential network changes.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.network_change" class="method"><a class="src rightside" href="../../src/iroh_net/endpoint.rs.html#780-782">source</a><h4 class="code-header">pub async fn <a href="#method.network_change" class="fn">network_change</a>(&self)</h4></section></summary><div class="docblock"><p>Notifies the system of potential network changes.</p>
|
||||
<p>On many systems iroh is able to detect network changes by itself, however
|
||||
some systems like android do not expose this functionality to native code.
|
||||
Android does however provide this functionality to Java code. This
|
||||
@@ -167,7 +167,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_net/endpoint.rs.html#799-817">source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(self, error_code: <a class="struct" href="struct.VarInt.html" title="struct iroh_net::endpoint::VarInt">VarInt</a>, reason: &[<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.85/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_net/endpoint.rs.html#796-814">source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(self, error_code: <a class="struct" href="struct.VarInt.html" title="struct iroh_net::endpoint::VarInt">VarInt</a>, reason: &[<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.85/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 all open QUIC connections with the provided error_code and
|
||||
reason. See <a href="struct.Connection.html" title="struct iroh_net::endpoint::Connection"><code>quinn::Connection</code></a> for details on how these are interpreted.</p>
|
||||
<p>It will then wait for all connections to actually be shutdown, and afterwards
|
||||
|
||||
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="Cryptographic key handling for `iroh-net`."><title>iroh_net::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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.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_net</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_net/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_net</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-net</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-net`."><title>iroh_net::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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.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_net</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_net/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_net</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#8">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-net</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_net::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_net::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_net::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_net::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_net::key::KeyParsingError">KeyParsingError</a></div><div class="desc docblock-short">Error when deserialising a <a href="struct.PublicKey.html" title="struct iroh_net::key::PublicKey"><code>PublicKey</code></a> or a <a href="struct.SecretKey.html" title="struct iroh_net::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_net::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_net::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
@@ -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_net::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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.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_net::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_net/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_net</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_net::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_net::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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.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_net::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_net/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_net</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#107">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_net::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
@@ -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_net - 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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.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_net</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_net/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_net</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_net::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_net - 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_net" 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_net/index.html">iroh_net</a><span class="version">0.23.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_net</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_net/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_net</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#107">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_net::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
@@ -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 and run a client"><title>client in iroh_net_bench::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_net_bench" 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_net_bench/index.html">iroh_net_bench</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net_bench::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_net_bench/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_net_bench</a>::<wbr><a href="index.html">iroh</a>::<wbr><a class="fn" href="#">client</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_net_bench/iroh.rs.html#40-52">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 client(server_addr: NodeAddr, opt: <a class="struct" href="../struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.ClientStats.html" title="struct iroh_net_bench::ClientStats">ClientStats</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create and run a client</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 and run a client"><title>client in iroh_net_bench::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_net_bench" 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_net_bench/index.html">iroh_net_bench</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net_bench::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_net_bench/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_net_bench</a>::<wbr><a href="index.html">iroh</a>::<wbr><a class="fn" href="#">client</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_net_bench/iroh.rs.html#40-52">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 client(server_addr: <a class="struct" href="../../iroh_base/node_addr/struct.NodeAddr.html" title="struct iroh_base::node_addr::NodeAddr">NodeAddr</a>, opt: <a class="struct" href="../struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../struct.ClientStats.html" title="struct iroh_net_bench::ClientStats">ClientStats</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create and run a client</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="Create a client endpoint and client connection"><title>connect_client in iroh_net_bench::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_net_bench" 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_net_bench/index.html">iroh_net_bench</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net_bench::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_net_bench/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_net_bench</a>::<wbr><a href="index.html">iroh</a>::<wbr><a class="fn" href="#">connect_client</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_net_bench/iroh.rs.html#55-75">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 connect_client(
|
||||
server_addr: NodeAddr,
|
||||
server_addr: <a class="struct" href="../../iroh_base/node_addr/struct.NodeAddr.html" title="struct iroh_base::node_addr::NodeAddr">NodeAddr</a>,
|
||||
opt: <a class="struct" href="../struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><(Endpoint, Connection)></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a client endpoint and client connection</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a><(<a class="struct" href="../../iroh_net/endpoint/struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint">Endpoint</a>, Connection)></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a client endpoint and client connection</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Take the provided endpoint and run the server"><title>server in iroh_net_bench::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_net_bench" 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_net_bench/index.html">iroh_net_bench</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net_bench::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_net_bench/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_net_bench</a>::<wbr><a href="index.html">iroh</a>::<wbr><a class="fn" href="#">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_net_bench/iroh.rs.html#194-245">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 server(endpoint: Endpoint, opt: <a class="struct" href="../struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Take the provided endpoint and run the 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="Take the provided endpoint and run the server"><title>server in iroh_net_bench::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_net_bench" 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_net_bench/index.html">iroh_net_bench</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net_bench::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_net_bench/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_net_bench</a>::<wbr><a href="index.html">iroh</a>::<wbr><a class="fn" href="#">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_net_bench/iroh.rs.html#194-245">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 server(endpoint: <a class="struct" href="../../iroh_net/endpoint/struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint">Endpoint</a>, opt: <a class="struct" href="../struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Take the provided endpoint and run the server</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a server endpoint which runs on the given runtime"><title>server_endpoint in iroh_net_bench::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_net_bench" 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_net_bench/index.html">iroh_net_bench</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net_bench::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_net_bench/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_net_bench</a>::<wbr><a href="index.html">iroh</a>::<wbr><a class="fn" href="#">server_endpoint</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_net_bench/iroh.rs.html#22-37">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn server_endpoint(rt: &Runtime, opt: &<a class="struct" href="../struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>) -> (NodeAddr, Endpoint)</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a server endpoint which runs on the given runtime</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="Creates a server endpoint which runs on the given runtime"><title>server_endpoint in iroh_net_bench::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_net_bench" 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_net_bench/index.html">iroh_net_bench</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_net_bench::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_net_bench/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_net_bench</a>::<wbr><a href="index.html">iroh</a>::<wbr><a class="fn" href="#">server_endpoint</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_net_bench/iroh.rs.html#22-37">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub fn server_endpoint(rt: &Runtime, opt: &<a class="struct" href="../struct.Opt.html" title="struct iroh_net_bench::Opt">Opt</a>) -> (<a class="struct" href="../../iroh_base/node_addr/struct.NodeAddr.html" title="struct iroh_base::node_addr::NodeAddr">NodeAddr</a>, <a class="struct" href="../../iroh_net/endpoint/struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint">Endpoint</a>)</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a server endpoint which runs on the given runtime</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
@@ -1684,9 +1684,6 @@
|
||||
<a href="#1684" id="1684">1684</a>
|
||||
<a href="#1685" id="1685">1685</a>
|
||||
<a href="#1686" id="1686">1686</a>
|
||||
<a href="#1687" id="1687">1687</a>
|
||||
<a href="#1688" id="1688">1688</a>
|
||||
<a href="#1689" id="1689">1689</a>
|
||||
</pre></div><pre class="rust"><code><span class="doccomment">//! The [`Endpoint`] allows establishing connections to other iroh-net nodes.
|
||||
//!
|
||||
//! The [`Endpoint`] is the main API interface to manage a local iroh-net node. It allows
|
||||
@@ -1713,7 +1710,7 @@
|
||||
<span class="kw">use </span>futures_lite::{Stream, StreamExt};
|
||||
<span class="kw">use </span>pin_project::pin_project;
|
||||
<span class="kw">use </span>tokio_util::sync::{CancellationToken, WaitForCancellationFuture};
|
||||
<span class="kw">use </span>tracing::{debug, info_span, trace, warn};
|
||||
<span class="kw">use </span>tracing::{debug, instrument, trace, warn};
|
||||
<span class="kw">use </span>url::Url;
|
||||
|
||||
<span class="kw">use crate</span>::{
|
||||
@@ -2045,13 +2042,12 @@
|
||||
///
|
||||
/// This is for internal use, the public interface is the [`Builder`] obtained from
|
||||
/// [Self::builder]. See the methods on the builder for documentation of the parameters.
|
||||
</span><span class="attr">#[instrument(skip_all, fields(me = %static_config.secret_key.public().fmt_short()))]
|
||||
</span><span class="kw">async fn </span>bind(
|
||||
static_config: StaticConfig,
|
||||
msock_opts: magicsock::Options,
|
||||
initial_alpns: Vec<Vec<u8>>,
|
||||
) -> <span class="prelude-ty">Result</span><<span class="self">Self</span>> {
|
||||
<span class="kw">let </span>span = <span class="macro">info_span!</span>(<span class="string">"magic_ep"</span>, me = %static_config.secret_key.public().fmt_short());
|
||||
<span class="kw">let </span>_guard = span.enter();
|
||||
<span class="kw">let </span>msock = magicsock::MagicSock::spawn(msock_opts).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
<span class="macro">trace!</span>(<span class="string">"created magicsock"</span>);
|
||||
|
||||
@@ -2114,10 +2110,8 @@
|
||||
/// The `alpn`, or application-level protocol identifier, is also required. The remote
|
||||
/// endpoint must support this `alpn`, otherwise the connection attempt will fail with
|
||||
/// an error.
|
||||
</span><span class="attr">#[instrument(skip_all, fields(me = %<span class="self">self</span>.node_id().fmt_short(), node_id = %node_addr.node_id.fmt_short(), alpn = <span class="question-mark">?</span>String::from_utf8_lossy(alpn)))]
|
||||
</span><span class="kw">pub async fn </span>connect(<span class="kw-2">&</span><span class="self">self</span>, node_addr: NodeAddr, alpn: <span class="kw-2">&</span>[u8]) -> <span class="prelude-ty">Result</span><quinn::Connection> {
|
||||
<span class="kw">let </span>ep_span = <span class="macro">info_span!</span>(<span class="string">"magic_ep"</span>, me = %<span class="self">self</span>.node_id().fmt_short());
|
||||
<span class="kw">let </span>span = <span class="macro">info_span!</span>(parent: <span class="kw-2">&</span>ep_span, <span class="string">"connect"</span>);
|
||||
<span class="kw">let </span>_guard = span.enter();
|
||||
<span class="comment">// Connecting to ourselves is not supported.
|
||||
</span><span class="kw">if </span>node_addr.node_id == <span class="self">self</span>.node_id() {
|
||||
<span class="macro">bail!</span>(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
(function() {var implementors = {
|
||||
"iroh":[],
|
||||
"iroh_base":[],
|
||||
"iroh_docs":[["impl Ticket for <a class=\"struct\" href=\"iroh_docs/struct.DocTicket.html\" title=\"struct iroh_docs::DocTicket\">DocTicket</a>"]]
|
||||
"iroh_docs":[["impl <a class=\"trait\" href=\"iroh_base/ticket/trait.Ticket.html\" title=\"trait iroh_base::ticket::Ticket\">Ticket</a> for <a class=\"struct\" href=\"iroh_docs/struct.DocTicket.html\" title=\"struct iroh_docs::DocTicket\">DocTicket</a>"]]
|
||||
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||
@@ -1,9 +1,9 @@
|
||||
(function() {var implementors = {
|
||||
"iroh":[["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh/metrics/struct.Metrics.html\" title=\"struct iroh::metrics::Metrics\">Metrics</a>"]],
|
||||
"iroh_blobs":[["impl Metric for <a class=\"struct\" href=\"iroh_blobs/metrics/struct.Metrics.html\" title=\"struct iroh_blobs::metrics::Metrics\">Metrics</a>"]],
|
||||
"iroh_blobs":[["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh_blobs/metrics/struct.Metrics.html\" title=\"struct iroh_blobs::metrics::Metrics\">Metrics</a>"]],
|
||||
"iroh_dns_server":[["impl Metric for <a class=\"struct\" href=\"iroh_dns_server/metrics/struct.Metrics.html\" title=\"struct iroh_dns_server::metrics::Metrics\">Metrics</a>"]],
|
||||
"iroh_docs":[["impl Metric for <a class=\"struct\" href=\"iroh_docs/metrics/struct.Metrics.html\" title=\"struct iroh_docs::metrics::Metrics\">Metrics</a>"]],
|
||||
"iroh_gossip":[["impl Metric for <a class=\"struct\" href=\"iroh_gossip/metrics/struct.Metrics.html\" title=\"struct iroh_gossip::metrics::Metrics\">Metrics</a>"]],
|
||||
"iroh_net":[["impl Metric for <a class=\"struct\" href=\"iroh_net/metrics/struct.MagicsockMetrics.html\" title=\"struct iroh_net::metrics::MagicsockMetrics\">Metrics</a>"],["impl Metric for <a class=\"struct\" href=\"iroh_net/netcheck/struct.Metrics.html\" title=\"struct iroh_net::netcheck::Metrics\">Metrics</a>"],["impl Metric for <a class=\"struct\" href=\"iroh_net/portmapper/struct.Metrics.html\" title=\"struct iroh_net::portmapper::Metrics\">Metrics</a>"],["impl Metric for <a class=\"struct\" href=\"iroh_net/relay/server/struct.Metrics.html\" title=\"struct iroh_net::relay::server::Metrics\">Metrics</a>"]],
|
||||
"iroh_relay":[["impl Metric for <a class=\"struct\" href=\"iroh_relay/metrics/struct.StunMetrics.html\" title=\"struct iroh_relay::metrics::StunMetrics\">StunMetrics</a>"]]
|
||||
"iroh_docs":[["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh_docs/metrics/struct.Metrics.html\" title=\"struct iroh_docs::metrics::Metrics\">Metrics</a>"]],
|
||||
"iroh_gossip":[["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh_gossip/metrics/struct.Metrics.html\" title=\"struct iroh_gossip::metrics::Metrics\">Metrics</a>"]],
|
||||
"iroh_net":[["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh_net/metrics/struct.MagicsockMetrics.html\" title=\"struct iroh_net::metrics::MagicsockMetrics\">Metrics</a>"],["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh_net/netcheck/struct.Metrics.html\" title=\"struct iroh_net::netcheck::Metrics\">Metrics</a>"],["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh_net/portmapper/struct.Metrics.html\" title=\"struct iroh_net::portmapper::Metrics\">Metrics</a>"],["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh_net/relay/server/struct.Metrics.html\" title=\"struct iroh_net::relay::server::Metrics\">Metrics</a>"]],
|
||||
"iroh_relay":[["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh_relay/metrics/struct.StunMetrics.html\" title=\"struct iroh_relay::metrics::StunMetrics\">StunMetrics</a>"]]
|
||||
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user