mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-30 16:03:05 +00:00
deploy: 42918585436b734c0ebc33b2a6f993384a634600
This commit is contained in:
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: <a class="struct" href="../../iroh_base/hash/struct.Hash.html" title="struct iroh_base::hash::Hash">Hash</a>,
|
||||
hash: Hash,
|
||||
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.22.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>
|
||||
<!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.22.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>
|
||||
</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.22.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 <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>
|
||||
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>
|
||||
@@ -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: <a class="trait" href="../../iroh_blobs/store/traits/trait.Store.html" title="trait iroh_blobs::store::traits::Store">Store</a>>(
|
||||
</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>(
|
||||
endpoint: <a class="struct" href="../../iroh_net/endpoint/struct.Endpoint.html" title="struct iroh_net::endpoint::Endpoint">Endpoint</a>,
|
||||
gossip: <a class="struct" href="../../iroh_gossip/net/struct.Gossip.html" title="struct iroh_gossip::net::Gossip">Gossip</a>,
|
||||
gossip: Gossip,
|
||||
replica_store: <a class="struct" href="../store/fs/struct.Store.html" title="struct iroh_docs::store::fs::Store">Store</a>,
|
||||
bao_store: B,
|
||||
downloader: <a class="struct" href="../../iroh_blobs/downloader/struct.Downloader.html" title="struct iroh_blobs::downloader::Downloader">Downloader</a>,
|
||||
downloader: Downloader,
|
||||
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><<a class="struct" href="../../iroh_base/node_addr/struct.NodeAddr.html" title="struct iroh_base::node_addr::NodeAddr">NodeAddr</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>
|
||||
) -> <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.22.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/struct.Hash.html" title="struct iroh_base::hash::Hash">32-byte BLAKE3 hash</a>
|
||||
namespace. Its value is the <a href="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
@@ -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: <a class="struct" href="../../iroh_base/node_addr/struct.NodeAddr.html" title="struct iroh_base::node_addr::NodeAddr">NodeAddr</a>
|
||||
peer: NodeAddr
|
||||
) -> <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>, <a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>) -> 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>, PublicKey) -> 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><<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>>(
|
||||
</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>>(
|
||||
&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
|
||||
|
||||
@@ -156,6 +156,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 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: 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: <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>
|
||||
@@ -148,6 +148,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 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: 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: <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
@@ -156,6 +156,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 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: 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: <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>
|
||||
@@ -147,6 +147,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 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: 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: <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: <a class="struct" href="../../iroh_base/hash/struct.Hash.html" title="struct iroh_base::hash::Hash">Hash</a>,
|
||||
hash: Hash,
|
||||
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><<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>
|
||||
) -> <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>
|
||||
<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.22.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>
|
||||
<!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.22.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>
|
||||
</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
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,9 +1,9 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Commands for the gossip protocol"><title>ProtoCommand in iroh_gossip::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_gossip" 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_gossip/index.html">iroh_gossip</a><span class="version">0.22.0</span></h2></div><h2 class="location"><a href="#">ProtoCommand</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.Broadcast">Broadcast</a></li><li><a href="#variant.Join">Join</a></li><li><a href="#variant.Quit">Quit</a></li></ul></section><h2><a href="index.html">In iroh_gossip::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_gossip/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_gossip</a>::<wbr><a href="index.html">net</a>::<wbr><a class="type" href="#">ProtoCommand</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_gossip/net.rs.html#64">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type ProtoCommand = <a class="enum" href="../proto/topic/enum.Command.html" title="enum iroh_gossip::proto::topic::Command">Command</a><PublicKey>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Commands for the gossip protocol</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="Commands for the gossip protocol"><title>ProtoCommand in iroh_gossip::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_gossip" 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_gossip/index.html">iroh_gossip</a><span class="version">0.22.0</span></h2></div><h2 class="location"><a href="#">ProtoCommand</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.Broadcast">Broadcast</a></li><li><a href="#variant.Join">Join</a></li><li><a href="#variant.Quit">Quit</a></li></ul></section><h2><a href="index.html">In iroh_gossip::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_gossip/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_gossip</a>::<wbr><a href="index.html">net</a>::<wbr><a class="type" href="#">ProtoCommand</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_gossip/net.rs.html#64">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type ProtoCommand = <a class="enum" href="../proto/topic/enum.Command.html" title="enum iroh_gossip::proto::topic::Command">Command</a><<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Commands for the gossip protocol</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>enum ProtoCommand {
|
||||
Join(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><PublicKey>),
|
||||
Join(<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/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>>),
|
||||
Broadcast(Bytes, <a class="enum" href="../proto/enum.Scope.html" title="enum iroh_gossip::proto::Scope">Scope</a>),
|
||||
Quit,
|
||||
}</code></pre><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Join" class="variant"><a href="#variant.Join" class="anchor">§</a><h3 class="code-header">Join(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><PublicKey>)</h3></section><div class="docblock"><p>Join this topic and connect to peers.</p>
|
||||
}</code></pre><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Join" class="variant"><a href="#variant.Join" class="anchor">§</a><h3 class="code-header">Join(<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/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>>)</h3></section><div class="docblock"><p>Join this topic and connect to peers.</p>
|
||||
<p>If the list of peers is empty, will prepare the state and accept incoming join requests,
|
||||
but only become operational after the first join request by another peer.</p>
|
||||
</div><section id="variant.Broadcast" class="variant"><a href="#variant.Broadcast" class="anchor">§</a><h3 class="code-header">Broadcast(Bytes, <a class="enum" href="../proto/enum.Scope.html" title="enum iroh_gossip::proto::Scope">Scope</a>)</h3></section><div class="docblock"><p>Broadcast a message for this topic.</p>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Events emitted from the gossip protocol"><title>ProtoEvent in iroh_gossip::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_gossip" 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_gossip/index.html">iroh_gossip</a><span class="version">0.22.0</span></h2></div><h2 class="location"><a href="#">ProtoEvent</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.NeighborDown">NeighborDown</a></li><li><a href="#variant.NeighborUp">NeighborUp</a></li><li><a href="#variant.Received">Received</a></li></ul></section><h2><a href="index.html">In iroh_gossip::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_gossip/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_gossip</a>::<wbr><a href="index.html">net</a>::<wbr><a class="type" href="#">ProtoEvent</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_gossip/net.rs.html#62">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type ProtoEvent = <a class="enum" href="../proto/topic/enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PublicKey>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Events emitted from the gossip protocol</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="Events emitted from the gossip protocol"><title>ProtoEvent in iroh_gossip::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_gossip" 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_gossip/index.html">iroh_gossip</a><span class="version">0.22.0</span></h2></div><h2 class="location"><a href="#">ProtoEvent</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.NeighborDown">NeighborDown</a></li><li><a href="#variant.NeighborUp">NeighborUp</a></li><li><a href="#variant.Received">Received</a></li></ul></section><h2><a href="index.html">In iroh_gossip::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_gossip/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_gossip</a>::<wbr><a href="index.html">net</a>::<wbr><a class="type" href="#">ProtoEvent</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_gossip/net.rs.html#62">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type ProtoEvent = <a class="enum" href="../proto/topic/enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Events emitted from the gossip protocol</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>enum ProtoEvent {
|
||||
NeighborUp(PublicKey),
|
||||
NeighborDown(PublicKey),
|
||||
Received(GossipEvent<PublicKey>),
|
||||
}</code></pre><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.NeighborUp" class="variant"><a href="#variant.NeighborUp" class="anchor">§</a><h3 class="code-header">NeighborUp(PublicKey)</h3></section><div class="docblock"><p>We have a new, direct neighbor in the swarm membership layer for this topic</p>
|
||||
</div><section id="variant.NeighborDown" class="variant"><a href="#variant.NeighborDown" class="anchor">§</a><h3 class="code-header">NeighborDown(PublicKey)</h3></section><div class="docblock"><p>We dropped direct neighbor in the swarm membership layer for this topic</p>
|
||||
</div><section id="variant.Received" class="variant"><a href="#variant.Received" class="anchor">§</a><h3 class="code-header">Received(GossipEvent<PublicKey>)</h3></section><div class="docblock"><p>A gossip message was received for this topic</p>
|
||||
NeighborUp(<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>),
|
||||
NeighborDown(<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>),
|
||||
Received(GossipEvent<<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>>),
|
||||
}</code></pre><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.NeighborUp" class="variant"><a href="#variant.NeighborUp" class="anchor">§</a><h3 class="code-header">NeighborUp(<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>)</h3></section><div class="docblock"><p>We have a new, direct neighbor in the swarm membership layer for this topic</p>
|
||||
</div><section id="variant.NeighborDown" class="variant"><a href="#variant.NeighborDown" class="anchor">§</a><h3 class="code-header">NeighborDown(<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>)</h3></section><div class="docblock"><p>We dropped direct neighbor in the swarm membership layer for this topic</p>
|
||||
</div><section id="variant.Received" class="variant"><a href="#variant.Received" class="anchor">§</a><h3 class="code-header">Received(GossipEvent<<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>>)</h3></section><div class="docblock"><p>A gossip message was received for this topic</p>
|
||||
</div></div><script src="../../type.impl/iroh_gossip/proto/topic/enum.Event.js" data-self-path="iroh_gossip::net::ProtoEvent" async></script></section></div></main></body></html>
|
||||
@@ -2,5 +2,5 @@
|
||||
reader: impl AsyncRead + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
||||
buffer: &mut BytesMut,
|
||||
max_message_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</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="../../proto/state/struct.Message.html" title="struct iroh_gossip::proto::state::Message">Message</a><PublicKey>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Read a length-prefixed message and decode as <code>ProtoMessage</code>;</p>
|
||||
) -> <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</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="../../proto/state/struct.Message.html" title="struct iroh_gossip::proto::state::Message">Message</a><<a class="struct" href="../../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Read a length-prefixed message and decode as <code>ProtoMessage</code>;</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -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="Write a `ProtoMessage` as a length-prefixed, postcard-encoded message."><title>write_message in iroh_gossip::net::util - 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_gossip" 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_gossip/index.html">iroh_gossip</a><span class="version">0.22.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh_gossip::net::util</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_gossip/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_gossip</a>::<wbr><a href="../index.html">net</a>::<wbr><a href="index.html">util</a>::<wbr><a class="fn" href="#">write_message</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_gossip/net/util.rs.html#17-31">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 write_message<W: AsyncWrite + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>>(
|
||||
writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut W</a>,
|
||||
buffer: &mut BytesMut,
|
||||
frame: &<a class="struct" href="../../proto/state/struct.Message.html" title="struct iroh_gossip::proto::state::Message">Message</a><PublicKey>,
|
||||
frame: &<a class="struct" href="../../proto/state/struct.Message.html" title="struct iroh_gossip::proto::state::Message">Message</a><<a class="struct" href="../../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>>,
|
||||
max_message_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</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>Write a <code>ProtoMessage</code> as a length-prefixed, postcard-encoded message.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -8,7 +8,7 @@
|
||||
</div><section id="variant.Received" class="variant"><a href="#variant.Received" class="anchor">§</a><h3 class="code-header">Received(GossipEvent<PI>)</h3></section><div class="docblock"><p>A gossip message was received for this topic</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-Clone-for-Event%3CPI%3E" class="impl"><a class="src rightside" href="../../../src/iroh_gossip/proto/topic.rs.html#119">source</a><a href="#impl-Clone-for-Event%3CPI%3E" class="anchor">§</a><h3 class="code-header">impl<PI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PI></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_gossip/proto/topic.rs.html#119">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PI></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" 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/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Event%3CPI%3E" class="impl"><a class="src rightside" href="../../../src/iroh_gossip/proto/topic.rs.html#119">source</a><a href="#impl-Debug-for-Event%3CPI%3E" class="anchor">§</a><h3 class="code-header">impl<PI: <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/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PI></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_gossip/proto/topic.rs.html#119">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-Event%3CPI%3E" class="impl"><a class="src rightside" href="../../../src/iroh_gossip/proto/topic.rs.html#119">source</a><a href="#impl-Deserialize%3C'de%3E-for-Event%3CPI%3E" class="anchor">§</a><h3 class="code-header">impl<'de, PI> <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.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PI><div class="where">where
|
||||
PI: <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></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_gossip/proto/topic.rs.html#119">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-From%3CEvent%3CPublicKey%3E%3E-for-GossipEvent" class="impl"><a class="src rightside" href="../../../src/iroh_gossip/net/handles.rs.html#211-223">source</a><a href="#impl-From%3CEvent%3CPublicKey%3E%3E-for-GossipEvent" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PublicKey>> for <a class="enum" href="../../net/enum.GossipEvent.html" title="enum iroh_gossip::net::GossipEvent">GossipEvent</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_gossip/net/handles.rs.html#212-222">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(event: <a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><NodeId>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Ord-for-Event%3CPI%3E" class="impl"><a class="src rightside" href="../../../src/iroh_gossip/proto/topic.rs.html#119">source</a><a href="#impl-Ord-for-Event%3CPI%3E" class="anchor">§</a><h3 class="code-header">impl<PI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PI></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_gossip/proto/topic.rs.html#119">source</a><a href="#method.cmp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp" class="fn">cmp</a>(&self, other: &<a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PI>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#856-858">source</a></span><a href="#method.max" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max" class="fn">max</a>(self, other: Self) -> Self<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-From%3CEvent%3CPublicKey%3E%3E-for-GossipEvent" class="impl"><a class="src rightside" href="../../../src/iroh_gossip/net/handles.rs.html#211-223">source</a><a href="#impl-From%3CEvent%3CPublicKey%3E%3E-for-GossipEvent" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><<a class="struct" href="../../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>>> for <a class="enum" href="../../net/enum.GossipEvent.html" title="enum iroh_gossip::net::GossipEvent">GossipEvent</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_gossip/net/handles.rs.html#212-222">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(event: <a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><<a class="type" href="../../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Ord-for-Event%3CPI%3E" class="impl"><a class="src rightside" href="../../../src/iroh_gossip/proto/topic.rs.html#119">source</a><a href="#impl-Ord-for-Event%3CPI%3E" class="anchor">§</a><h3 class="code-header">impl<PI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PI></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_gossip/proto/topic.rs.html#119">source</a><a href="#method.cmp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp" class="fn">cmp</a>(&self, other: &<a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PI>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#856-858">source</a></span><a href="#method.max" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max" class="fn">max</a>(self, other: Self) -> Self<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><div class='docblock'>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#877-879">source</a></span><a href="#method.min" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min" class="fn">min</a>(self, other: Self) -> Self<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><div class='docblock'>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clamp" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.50.0">1.50.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#902-905">source</a></span><a href="#method.clamp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp" class="fn">clamp</a>(self, min: Self, max: Self) -> Self<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> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>,</div></h4></section></summary><div class='docblock'>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-Event%3CPI%3E" class="impl"><a class="src rightside" href="../../../src/iroh_gossip/proto/topic.rs.html#119">source</a><a href="#impl-PartialEq-for-Event%3CPI%3E" class="anchor">§</a><h3 class="code-header">impl<PI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PI></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_gossip/proto/topic.rs.html#119">source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a><PI>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
|
||||
@@ -376,8 +376,6 @@
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
<span class="kw">use </span>futures_lite::StreamExt;
|
||||
<span class="kw">use </span>genawaiter::sync::{Co, Gen};
|
||||
<span class="kw">use crate</span>::{
|
||||
discovery::{
|
||||
pkarr::{DEFAULT_PKARR_TTL, N0_DNS_PKARR_RELAY_PROD},
|
||||
@@ -388,6 +386,8 @@
|
||||
util::AbortingJoinHandle,
|
||||
AddrInfo, Endpoint, NodeId,
|
||||
};
|
||||
<span class="kw">use </span>futures_lite::StreamExt;
|
||||
<span class="kw">use </span>genawaiter::sync::{Co, Gen};
|
||||
<span class="kw">use </span>pkarr::{
|
||||
PkarrClient, PkarrClientAsync, PkarrRelayClient, PkarrRelayClientAsync, PublicKey,
|
||||
RelaySettings, SignedPacket,
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
(function() {var implementors = {
|
||||
"iroh":[],
|
||||
"iroh_base":[],
|
||||
"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>"]]
|
||||
"iroh_docs":[["impl Ticket 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,6 +1,6 @@
|
||||
(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>"]],
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user