deploy: 1df1ff6236661a403e7b7b4b8ec849f36b57fe8f

This commit is contained in:
rklaehn
2024-08-15 08:45:29 +00:00
parent 6a91df93ff
commit d86af36e82
60 changed files with 264 additions and 249 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -22,4 +22,4 @@ to open readers for both the data and the outboard</p>
is an entry. Creating an entry should be cheap, any expensive ops should
be deferred to the creation of the actual readers.</p>
<p>It is not guaranteed that the entry is complete.</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#1262">source</a><a href="#impl-Map-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh::blobs::store::Map">Map</a> for iroh::blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh::blobs::store::fs::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-1" class="associatedtype trait-impl"><a href="#associatedtype.Entry-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = BaoFileHandle</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#346">source</a><a href="#impl-Map-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh::blobs::store::Map">Map</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh::blobs::store::mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-2" class="associatedtype trait-impl"><a href="#associatedtype.Entry-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = <a class="struct" href="mem/struct.Entry.html" title="struct iroh::blobs::store::mem::Entry">Entry</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store-2" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#180">source</a><a href="#impl-Map-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh::blobs::store::Map">Map</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh::blobs::store::readonly_mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-3" class="associatedtype trait-impl"><a href="#associatedtype.Entry-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = <a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh::blobs::store::readonly_mem::Entry">Entry</a></h4></section></div></details></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.Map.js" data-ignore-extern-crates="iroh_blobs" async></script></section></div></main></body></html>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#1266">source</a><a href="#impl-Map-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh::blobs::store::Map">Map</a> for iroh::blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh::blobs::store::fs::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-1" class="associatedtype trait-impl"><a href="#associatedtype.Entry-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = BaoFileHandle</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#346">source</a><a href="#impl-Map-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh::blobs::store::Map">Map</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh::blobs::store::mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-2" class="associatedtype trait-impl"><a href="#associatedtype.Entry-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = <a class="struct" href="mem/struct.Entry.html" title="struct iroh::blobs::store::mem::Entry">Entry</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store-2" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#180">source</a><a href="#impl-Map-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh::blobs::store::Map">Map</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh::blobs::store::readonly_mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-3" class="associatedtype trait-impl"><a href="#associatedtype.Entry-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = <a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh::blobs::store::readonly_mem::Entry">Entry</a></h4></section></div></details></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.Map.js" data-ignore-extern-crates="iroh_blobs" async></script></section></div></main></body></html>
@@ -48,4 +48,4 @@ of the store the entry is present.</p>
&amp;self,
entry: Self::<a class="associatedtype" href="trait.MapMut.html#associatedtype.EntryMut" title="type iroh::blobs::store::MapMut::EntryMut">EntryMut</a>
) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a></h4></section></summary><div class="docblock"><p>Upgrade a partial entry to a complete entry.</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#1270">source</a><a href="#impl-MapMut-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh::blobs::store::MapMut">MapMut</a> for iroh::blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh::blobs::store::fs::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-1" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = BaoFileHandle</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#354">source</a><a href="#impl-MapMut-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh::blobs::store::MapMut">MapMut</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh::blobs::store::mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-2" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = <a class="struct" href="mem/struct.Entry.html" title="struct iroh::blobs::store::mem::Entry">Entry</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store-2" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#191">source</a><a href="#impl-MapMut-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh::blobs::store::MapMut">MapMut</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh::blobs::store::readonly_mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-3" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = <a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh::blobs::store::readonly_mem::Entry">Entry</a></h4></section></div></details></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.MapMut.js" data-ignore-extern-crates="iroh_blobs" async></script></section></div></main></body></html>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#1274">source</a><a href="#impl-MapMut-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh::blobs::store::MapMut">MapMut</a> for iroh::blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh::blobs::store::fs::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-1" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = BaoFileHandle</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#354">source</a><a href="#impl-MapMut-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh::blobs::store::MapMut">MapMut</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh::blobs::store::mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-2" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = <a class="struct" href="mem/struct.Entry.html" title="struct iroh::blobs::store::mem::Entry">Entry</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store-2" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#191">source</a><a href="#impl-MapMut-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh::blobs::store::MapMut">MapMut</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh::blobs::store::readonly_mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-3" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = <a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh::blobs::store::readonly_mem::Entry">Entry</a></h4></section></div></details></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.MapMut.js" data-ignore-extern-crates="iroh_blobs" async></script></section></div></main></body></html>
@@ -50,4 +50,4 @@ been imported, and hash sequences that have been created internally.</p>
<code>target</code> is the path to the target file
<code>mode</code> is a hint how the file should be exported.
<code>progress</code> is a callback that is called with the total number of bytes that have been written</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ReadableStore-for-Store" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#1294">source</a><a href="#impl-ReadableStore-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh::blobs::store::ReadableStore">ReadableStore</a> for iroh::blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh::blobs::store::fs::Store">Store</a></h3></section><section id="impl-ReadableStore-for-Store-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#405">source</a><a href="#impl-ReadableStore-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh::blobs::store::ReadableStore">ReadableStore</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh::blobs::store::mem::Store">Store</a></h3></section><section id="impl-ReadableStore-for-Store-2" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#222">source</a><a href="#impl-ReadableStore-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh::blobs::store::ReadableStore">ReadableStore</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh::blobs::store::readonly_mem::Store">Store</a></h3></section></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.ReadableStore.js" data-ignore-extern-crates="iroh_blobs" async></script></section></div></main></body></html>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ReadableStore-for-Store" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#1298">source</a><a href="#impl-ReadableStore-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh::blobs::store::ReadableStore">ReadableStore</a> for iroh::blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh::blobs::store::fs::Store">Store</a></h3></section><section id="impl-ReadableStore-for-Store-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#405">source</a><a href="#impl-ReadableStore-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh::blobs::store::ReadableStore">ReadableStore</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh::blobs::store::mem::Store">Store</a></h3></section><section id="impl-ReadableStore-for-Store-2" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#222">source</a><a href="#impl-ReadableStore-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh::blobs::store::ReadableStore">ReadableStore</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh::blobs::store::readonly_mem::Store">Store</a></h3></section></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.ReadableStore.js" data-ignore-extern-crates="iroh_blobs" async></script></section></div></main></body></html>
@@ -134,4 +134,4 @@ to completion just means that some garbage will remain in the database.</p>
<p>This will check that the file and outboard content is correct for all complete
entries, and output valid ranges for all partial entries.</p>
<p>It will not check the internal consistency of the database.</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Store-for-Store" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#1331">source</a><a href="#impl-Store-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh::blobs::store::Store">Store</a> for iroh::blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh::blobs::store::fs::Store">Store</a></h3></section><section id="impl-Store-for-Store-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#149">source</a><a href="#impl-Store-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh::blobs::store::Store">Store</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh::blobs::store::mem::Store">Store</a></h3></section><section id="impl-Store-for-Store-2" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#287">source</a><a href="#impl-Store-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh::blobs::store::Store">Store</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh::blobs::store::readonly_mem::Store">Store</a></h3></section></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.Store.js" data-ignore-extern-crates="iroh_blobs" async></script></section></div></main></body></html>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Store-for-Store" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#1335">source</a><a href="#impl-Store-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh::blobs::store::Store">Store</a> for iroh::blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh::blobs::store::fs::Store">Store</a></h3></section><section id="impl-Store-for-Store-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#149">source</a><a href="#impl-Store-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh::blobs::store::Store">Store</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh::blobs::store::mem::Store">Store</a></h3></section><section id="impl-Store-for-Store-2" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#287">source</a><a href="#impl-Store-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh::blobs::store::Store">Store</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh::blobs::store::readonly_mem::Store">Store</a></h3></section></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.Store.js" data-ignore-extern-crates="iroh_blobs" async></script></section></div></main></body></html>
@@ -14,4 +14,4 @@ whereas protecting a raw blob only protects the blob itself.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.on_create" class="method"><a class="src rightside" href="../../../src/iroh_blobs/util.rs.html#157">source</a><h4 class="code-header">fn <a href="#tymethod.on_create" class="fn">on_create</a>(&amp;self, inner: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>)</h4></section></summary><div class="docblock"><p>Called on creation of a temp tag</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.as_weak" class="method"><a class="src rightside" href="../../../src/iroh_blobs/util.rs.html#160">source</a><h4 class="code-header">fn <a href="#method.as_weak" class="fn">as_weak</a>(self: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;Self&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Weak.html" title="struct alloc::sync::Weak">Weak</a>&lt;dyn <a class="trait" href="trait.TagDrop.html" title="trait iroh::blobs::util::TagDrop">TagDrop</a>&gt;</h4></section></summary><div class="docblock"><p>Get this as a weak reference for use in temp tags</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.temp_tag" class="method"><a class="src rightside" href="../../../src/iroh_blobs/util.rs.html#166">source</a><h4 class="code-header">fn <a href="#method.temp_tag" class="fn">temp_tag</a>(self: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;Self&gt;, inner: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>) -&gt; <a class="struct" href="../struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a></h4></section></summary><div class="docblock"><p>Create a new temp tag for the given hash and format</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-TagCounter-for-RwLock%3CTempCounterMap%3E" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#780">source</a><a href="#impl-TagCounter-for-RwLock%3CTempCounterMap%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TagCounter.html" title="trait iroh::blobs::util::TagCounter">TagCounter</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/rwlock/struct.RwLock.html" title="struct std::sync::rwlock::RwLock">RwLock</a>&lt;TempCounterMap&gt;</h3></section></summary><div class="impl-items"><section id="method.on_create" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#781">source</a><a href="#method.on_create" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.on_create" class="fn">on_create</a>(&amp;self, content: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../trait.impl/iroh_blobs/util/trait.TagCounter.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-TagCounter-for-RwLock%3CTempCounterMap%3E" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#784">source</a><a href="#impl-TagCounter-for-RwLock%3CTempCounterMap%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TagCounter.html" title="trait iroh::blobs::util::TagCounter">TagCounter</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/rwlock/struct.RwLock.html" title="struct std::sync::rwlock::RwLock">RwLock</a>&lt;TempCounterMap&gt;</h3></section></summary><div class="impl-items"><section id="method.on_create" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#785">source</a><a href="#method.on_create" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.on_create" class="fn">on_create</a>(&amp;self, content: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../trait.impl/iroh_blobs/util/trait.TagCounter.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
@@ -4,4 +4,4 @@
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trait used from temp tags to notify an abstract store that a temp tag is
being dropped.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.on_drop" class="method"><a class="src rightside" href="../../../src/iroh_blobs/util.rs.html#144">source</a><h4 class="code-header">fn <a href="#tymethod.on_drop" class="fn">on_drop</a>(&amp;self, inner: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>)</h4></section></summary><div class="docblock"><p>Called on drop</p>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-TagDrop-for-RwLock%3CTempCounterMap%3E" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#774">source</a><a href="#impl-TagDrop-for-RwLock%3CTempCounterMap%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TagDrop.html" title="trait iroh::blobs::util::TagDrop">TagDrop</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/rwlock/struct.RwLock.html" title="struct std::sync::rwlock::RwLock">RwLock</a>&lt;TempCounterMap&gt;</h3></section></summary><div class="impl-items"><section id="method.on_drop" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#775">source</a><a href="#method.on_drop" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.on_drop" class="fn">on_drop</a>(&amp;self, content: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../trait.impl/iroh_blobs/util/trait.TagDrop.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-TagDrop-for-RwLock%3CTempCounterMap%3E" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#778">source</a><a href="#impl-TagDrop-for-RwLock%3CTempCounterMap%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TagDrop.html" title="trait iroh::blobs::util::TagDrop">TagDrop</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/rwlock/struct.RwLock.html" title="struct std::sync::rwlock::RwLock">RwLock</a>&lt;TempCounterMap&gt;</h3></section></summary><div class="impl-items"><section id="method.on_drop" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_blobs/store/fs.rs.html#779">source</a><a href="#method.on_drop" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.on_drop" class="fn">on_drop</a>(&amp;self, content: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../trait.impl/iroh_blobs/util/trait.TagDrop.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
@@ -2,47 +2,48 @@
<p>This serves mostly as a scope for temporary tags.</p>
<p>It is not a transaction, so things in a batch are not atomic. Also, there is
no isolation between batches.</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-Batch" class="impl"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#125-461">source</a><a href="#impl-Batch" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Batch.html" title="struct iroh::client::blobs::Batch">Batch</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.add_bytes" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#141-143">source</a><h4 class="code-header">pub async fn <a href="#method.add_bytes" class="fn">add_bytes</a>(&amp;self, bytes: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Bytes&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Write a blob by passing bytes.</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-Batch" class="impl"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#125-463">source</a><a href="#impl-Batch" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Batch.html" title="struct iroh::client::blobs::Batch">Batch</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.add_bytes" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#141-143">source</a><h4 class="code-header">pub async fn <a href="#method.add_bytes" class="fn">add_bytes</a>(&amp;self, bytes: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Bytes&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Write a blob by passing bytes.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_file" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#148-150">source</a><h4 class="code-header">pub async fn <a href="#method.add_file" class="fn">add_file</a>(&amp;self, path: <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;(<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)&gt;</h4></section></summary><div class="docblock"><p>Import a blob from a filesystem path, using the default options.</p>
<p>For more control, use <a href="struct.Batch.html#method.add_file_with_opts" title="method iroh::client::blobs::Batch::add_file_with_opts"><code>Self::add_file_with_opts</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_dir" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#153-155">source</a><h4 class="code-header">pub async fn <a href="#method.add_dir" class="fn">add_dir</a>(&amp;self, root: <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Add a directory as a hashseq in iroh collection format</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_reader" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#160-165">source</a><h4 class="code-header">pub async fn <a href="#method.add_reader" class="fn">add_reader</a>(
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_reader" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#162-167">source</a><h4 class="code-header">pub async fn <a href="#method.add_reader" class="fn">add_reader</a>(
&amp;self,
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> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Write a blob by passing an async reader.</p>
<p>This will use a default chunk size of 64KB, and a format of <a href="../../blobs/enum.BlobFormat.html#variant.Raw" title="variant iroh::blobs::BlobFormat::Raw">BlobFormat::Raw</a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_stream" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#168-173">source</a><h4 class="code-header">pub async fn <a href="#method.add_stream" class="fn">add_stream</a>(
<p>This will consume the stream in 64KB chunks, and use a format of <a href="../../blobs/enum.BlobFormat.html#variant.Raw" title="variant iroh::blobs::BlobFormat::Raw">BlobFormat::Raw</a>.</p>
<p>For more options, see <a href="struct.Batch.html#method.add_reader_with_opts" title="method iroh::client::blobs::Batch::add_reader_with_opts"><code>Self::add_reader_with_opts</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_stream" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#170-175">source</a><h4 class="code-header">pub async fn <a href="#method.add_stream" class="fn">add_stream</a>(
&amp;self,
input: impl Stream&lt;Item = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a>&lt;Bytes&gt;&gt; + <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.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + 'static
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Write a blob by passing a stream of bytes.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.temp_tag" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#181-192">source</a><h4 class="code-header">pub async fn <a href="#method.temp_tag" class="fn">temp_tag</a>(&amp;self, content: <a class="struct" href="../../blobs/struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Creates a temp tag to protect some content (blob or hashseq) from being deleted.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.temp_tag" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#183-194">source</a><h4 class="code-header">pub async fn <a href="#method.temp_tag" class="fn">temp_tag</a>(&amp;self, content: <a class="struct" href="../../blobs/struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Creates a temp tag to protect some content (blob or hashseq) from being deleted.</p>
<p>This is a lower-level API. The other functions in <a href="struct.Batch.html" title="struct iroh::client::blobs::Batch"><code>Batch</code></a> already create <a href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag"><code>TempTag</code></a>s automatically.</p>
<p><a href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag"><code>TempTag</code></a>s allow you to protect some data from deletion while a download is ongoing,
even if you don’t want to protect it permanently.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_reader_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#197-205">source</a><h4 class="code-header">pub async fn <a href="#method.add_reader_with_opts" class="fn">add_reader_with_opts</a>(
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_reader_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#199-207">source</a><h4 class="code-header">pub async fn <a href="#method.add_reader_with_opts" class="fn">add_reader_with_opts</a>(
&amp;self,
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> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
opts: <a class="struct" href="struct.AddReaderOpts.html" title="struct iroh::client::blobs::AddReaderOpts">AddReaderOpts</a>
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Write a blob by passing an async reader.</p>
<p>This produces a stream from the reader with a hardcoded buffer size of 64KB.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_bytes_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#208-215">source</a><h4 class="code-header">pub async fn <a href="#method.add_bytes_with_opts" class="fn">add_bytes_with_opts</a>(
<p>This consumes the stream in chunks using <code>opts.chunk_size</code>. A good default is 64KB.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_bytes_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#210-217">source</a><h4 class="code-header">pub async fn <a href="#method.add_bytes_with_opts" class="fn">add_bytes_with_opts</a>(
&amp;self,
bytes: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Bytes&gt;,
format: <a class="enum" href="../../blobs/enum.BlobFormat.html" title="enum iroh::blobs::BlobFormat">BlobFormat</a>
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Write a blob by passing bytes.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_file_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#229-276">source</a><h4 class="code-header">pub async fn <a href="#method.add_file_with_opts" class="fn">add_file_with_opts</a>(
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_file_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#231-278">source</a><h4 class="code-header">pub async fn <a href="#method.add_file_with_opts" class="fn">add_file_with_opts</a>(
&amp;self,
path: <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>,
opts: <a class="struct" href="struct.AddFileOpts.html" title="struct iroh::client::blobs::AddFileOpts">AddFileOpts</a>
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;(<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)&gt;</h4></section></summary><div class="docblock"><p>Import a blob from a filesystem path.</p>
<p><code>path</code> should be an absolute path valid for the file system on which
the node runs, which refers to a file.</p>
<p>If you use <a href="../../blobs/store/enum.ImportMode.html#variant.TryReference" title="variant iroh::blobs::store::ImportMode::TryReference">ImportMode::TryReference</a>, Iroh will assume that the data will not
<p>If you use <a href="../../blobs/store/enum.ImportMode.html#variant.TryReference" title="variant iroh::blobs::store::ImportMode::TryReference"><code>ImportMode::TryReference</code></a>, Iroh will assume that the data will not
change and will share it in place without copying to the Iroh data directory
if appropriate. However, for tiny files, Iroh will copy the data.</p>
<p>If you use <a href="../../blobs/store/enum.ImportMode.html#variant.Copy" title="variant iroh::blobs::store::ImportMode::Copy">ImportMode::Copy</a>, Iroh will always copy the data.</p>
<p>If you use <a href="../../blobs/store/enum.ImportMode.html#variant.Copy" title="variant iroh::blobs::store::ImportMode::Copy"><code>ImportMode::Copy</code></a>, Iroh will always copy the data.</p>
<p>Will return a temp tag for the added blob, as well as the size of the file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_dir_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#284-326">source</a><h4 class="code-header">pub async fn <a href="#method.add_dir_with_opts" class="fn">add_dir_with_opts</a>(
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_dir_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#286-328">source</a><h4 class="code-header">pub async fn <a href="#method.add_dir_with_opts" class="fn">add_dir_with_opts</a>(
&amp;self,
root: <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>,
opts: <a class="struct" href="struct.AddDirOpts.html" title="struct iroh::client::blobs::AddDirOpts">AddDirOpts</a>
@@ -50,34 +51,34 @@ if appropriate. However, for tiny files, Iroh will copy the data.</p>
<p>This can also be used to add a single file as a collection, if
wrap is set to <a href="enum.WrapOption.html#variant.Wrap" title="variant iroh::client::blobs::WrapOption::Wrap">WrapOption::Wrap</a>.</p>
<p>However, if you want to add a single file as a raw blob, use add_file instead.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_stream_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#332-379">source</a><h4 class="code-header">pub async fn <a href="#method.add_stream_with_opts" class="fn">add_stream_with_opts</a>(
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_stream_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#334-381">source</a><h4 class="code-header">pub async fn <a href="#method.add_stream_with_opts" class="fn">add_stream_with_opts</a>(
&amp;self,
input: impl Stream&lt;Item = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a>&lt;Bytes&gt;&gt; + <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.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + 'static,
format: <a class="enum" href="../../blobs/enum.BlobFormat.html" title="enum iroh::blobs::BlobFormat">BlobFormat</a>
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Write a blob by passing a stream of bytes.</p>
<p>For convenient interop with common sources of data, this function takes a stream of <code>io::Result&lt;Bytes&gt;</code>.
If you have raw bytes, you need to wrap them in <code>io::Result::Ok</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_collection" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#390-392">source</a><h4 class="code-header">pub async fn <a href="#method.add_collection" class="fn">add_collection</a>(&amp;self, collection: <a class="struct" href="../../blobs/format/collection/struct.Collection.html" title="struct iroh::blobs::format::collection::Collection">Collection</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Add a collection</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_collection" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#392-394">source</a><h4 class="code-header">pub async fn <a href="#method.add_collection" class="fn">add_collection</a>(&amp;self, collection: <a class="struct" href="../../blobs/format/collection/struct.Collection.html" title="struct iroh::blobs::format::collection::Collection">Collection</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Add a collection.</p>
<p>This is a convenience function that converts the collection into two blobs
(the metadata and the hash sequence) and adds them, returning a temp tag for
the hash sequence.</p>
<p>Note that this does not guarantee that the data that the collection refers to
actually exists. It will just create 2 blobs, the metadata and the hash sequence
itself.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_blob_seq" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#399-411">source</a><h4 class="code-header">pub async fn <a href="#method.add_blob_seq" class="fn">add_blob_seq</a>(
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_blob_seq" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#401-413">source</a><h4 class="code-header">pub async fn <a href="#method.add_blob_seq" class="fn">add_blob_seq</a>(
&amp;self,
iter: 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>&lt;Item = Bytes&gt;
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>&gt;</h4></section></summary><div class="docblock"><p>Add a sequence of blobs, where the last is a hash sequence.</p>
<p>It is a common pattern in iroh to have a hash sequence with one or more
blobs of metadata, and the remaining blobs being the actual data. E.g.
a collection is a hash sequence where the first child is the metadata.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.persist" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#414-425">source</a><h4 class="code-header">pub async fn <a href="#method.persist" class="fn">persist</a>(&amp;self, tt: <a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.Tag.html" title="struct iroh::blobs::Tag">Tag</a>&gt;</h4></section></summary><div class="docblock"><p>Upgrade a temp tag to a persistent tag.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.persist_to" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#428-439">source</a><h4 class="code-header">pub async fn <a href="#method.persist_to" class="fn">persist_to</a>(&amp;self, tt: <a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>, tag: <a class="struct" href="../../blobs/struct.Tag.html" title="struct iroh::blobs::Tag">Tag</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Upgrade a temp tag to a persistent tag with a specific name.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#443-451">source</a><h4 class="code-header">pub async fn <a href="#method.upgrade_with_opts" class="fn">upgrade_with_opts</a>(
</div></details><details class="toggle method-toggle" open><summary><section id="method.persist" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#416-427">source</a><h4 class="code-header">pub async fn <a href="#method.persist" class="fn">persist</a>(&amp;self, tt: <a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.Tag.html" title="struct iroh::blobs::Tag">Tag</a>&gt;</h4></section></summary><div class="docblock"><p>Upgrades a temp tag to a persistent tag.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.persist_to" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#430-441">source</a><h4 class="code-header">pub async fn <a href="#method.persist_to" class="fn">persist_to</a>(&amp;self, tt: <a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>, tag: <a class="struct" href="../../blobs/struct.Tag.html" title="struct iroh::blobs::Tag">Tag</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Upgrades a temp tag to a persistent tag with a specific name.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade_with_opts" class="method"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#445-453">source</a><h4 class="code-header">pub async fn <a href="#method.upgrade_with_opts" class="fn">upgrade_with_opts</a>(
&amp;self,
tt: <a class="struct" href="../../blobs/struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>,
opts: <a class="enum" href="../../blobs/util/enum.SetTagOption.html" title="enum iroh::blobs::util::SetTagOption">SetTagOption</a>
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.Tag.html" title="struct iroh::blobs::Tag">Tag</a>&gt;</h4></section></summary><div class="docblock"><p>Upgrade a temp tag to a persistent tag with either a specific name or
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="../../blobs/struct.Tag.html" title="struct iroh::blobs::Tag">Tag</a>&gt;</h4></section></summary><div class="docblock"><p>Upgrades a temp tag to a persistent tag with either a specific name or
an automatically generated name.</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-Batch" class="impl"><a class="src rightside" href="../../../src/iroh/client/blobs/batch.rs.html#55">source</a><a href="#impl-Debug-for-Batch" 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.Batch.html" title="struct iroh::client::blobs::Batch">Batch</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/client/blobs/batch.rs.html#55">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>(&amp;self, __derive_more_f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Batch" class="impl"><a href="#impl-Freeze-for-Batch" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Batch.html" title="struct iroh::client::blobs::Batch">Batch</a></h3></section><section id="impl-RefUnwindSafe-for-Batch" class="impl"><a href="#impl-RefUnwindSafe-for-Batch" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Batch.html" title="struct iroh::client::blobs::Batch">Batch</a></h3></section><section id="impl-Send-for-Batch" class="impl"><a href="#impl-Send-for-Batch" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Batch.html" title="struct iroh::client::blobs::Batch">Batch</a></h3></section><section id="impl-Sync-for-Batch" class="impl"><a href="#impl-Sync-for-Batch" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Batch.html" title="struct iroh::client::blobs::Batch">Batch</a></h3></section><section id="impl-Unpin-for-Batch" class="impl"><a href="#impl-Unpin-for-Batch" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Batch.html" title="struct iroh::client::blobs::Batch">Batch</a></h3></section><section id="impl-UnwindSafe-for-Batch" class="impl"><a href="#impl-UnwindSafe-for-Batch" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Batch.html" title="struct iroh::client::blobs::Batch">Batch</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#141">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AsTaggedExplicit%3C'a,+E%3E-for-T" class="impl"><a href="#impl-AsTaggedExplicit%3C'a,+E%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T, E&gt; AsTaggedExplicit&lt;'a, E&gt; for T<div class="where">where
@@ -1,2 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The default bind addr of the RPC ."><title>DEFAULT_RPC_ADDR in iroh::node - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.22.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::node</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Constant <a href="../index.html">iroh</a>::<wbr><a href="index.html">node</a>::<wbr><a class="constant" href="#">DEFAULT_RPC_ADDR</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/node/builder.rs.html#879-880">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub const DEFAULT_RPC_ADDR: <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The default bind addr of the RPC .</p>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The default bind addr of the RPC ."><title>DEFAULT_RPC_ADDR in iroh::node - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.22.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In iroh::node</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Constant <a href="../index.html">iroh</a>::<wbr><a href="index.html">node</a>::<wbr><a class="constant" href="#">DEFAULT_RPC_ADDR</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/node/builder.rs.html#881-882">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub const DEFAULT_RPC_ADDR: <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The default bind addr of the RPC .</p>
</div></details></section></div></main></body></html>
File diff suppressed because one or more lines are too long
+17 -17
View File
@@ -18,25 +18,25 @@ using <a href="struct.Node.html#method.shutdown" title="method iroh::node::Node:
docs_storage: <a class="enum" href="enum.DocsStorage.html" title="enum iroh::node::DocsStorage">DocsStorage</a>,
storage: <a class="enum" href="enum.StorageConfig.html" title="enum iroh::node::StorageConfig">StorageConfig</a>
) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new builder for <a href="struct.Node.html" title="struct iroh::node::Node"><code>Node</code></a> using the given databases.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Builder%3CD%3E-1" class="impl"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#281-649">source</a><a href="#impl-Builder%3CD%3E-1" class="anchor">§</a><h3 class="code-header">impl&lt;D&gt; <a class="struct" href="struct.Builder.html" title="struct iroh::node::Builder">Builder</a>&lt;D&gt;<div class="where">where
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Builder%3CD%3E-1" class="impl"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#281-651">source</a><a href="#impl-Builder%3CD%3E-1" class="anchor">§</a><h3 class="code-header">impl&lt;D&gt; <a class="struct" href="struct.Builder.html" title="struct iroh::node::Builder">Builder</a>&lt;D&gt;<div class="where">where
D: <a class="trait" href="../blobs/store/trait.Store.html" title="trait iroh::blobs::store::Store">BaoStore</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.blobs_events" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#289-292">source</a><h4 class="code-header">pub fn <a href="#method.blobs_events" class="fn">blobs_events</a>(self, blob_events: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../blobs/provider/struct.EventSender.html" title="struct iroh::blobs::provider::EventSender">EventSender</a>&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Configure a blob events sender. This will replace the previous blob
event sender. By default, no events are sent.</p>
<p>To define an event sender, implement the <a href="../blobs/provider/trait.CustomEventSender.html" title="trait iroh::blobs::provider::CustomEventSender"><code>iroh_blobs::provider::CustomEventSender</code></a> trait.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.persist" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#295-352">source</a><h4 class="code-header">pub async fn <a href="#method.persist" class="fn">persist</a>(self, root: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.Builder.html" title="struct iroh::node::Builder">Builder</a>&lt;<a class="struct" href="../blobs/store/fs/struct.Store.html" title="struct iroh::blobs::store::fs::Store">Store</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Persist all node data in the provided directory.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rpc_endpoint" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#355-361">source</a><h4 class="code-header">pub fn <a href="#method.rpc_endpoint" class="fn">rpc_endpoint</a>(
</div></details><details class="toggle method-toggle" open><summary><section id="method.persist" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#295-354">source</a><h4 class="code-header">pub async fn <a href="#method.persist" class="fn">persist</a>(self, root: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.Builder.html" title="struct iroh::node::Builder">Builder</a>&lt;<a class="struct" href="../blobs/store/fs/struct.Store.html" title="struct iroh::blobs::store::fs::Store">Store</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Persist all node data in the provided directory.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rpc_endpoint" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#357-363">source</a><h4 class="code-header">pub fn <a href="#method.rpc_endpoint" class="fn">rpc_endpoint</a>(
self,
value: <a class="type" href="type.IrohServerEndpoint.html" title="type iroh::node::IrohServerEndpoint">IrohServerEndpoint</a>,
rpc_addr: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;
) -&gt; Self</h4></section></summary><div class="docblock"><p>Configure rpc endpoint.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.enable_rpc" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#364-366">source</a><h4 class="code-header">pub async fn <a href="#method.enable_rpc" class="fn">enable_rpc</a>(self) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.Builder.html" title="struct iroh::node::Builder">Builder</a>&lt;D&gt;&gt;</h4></section></summary><div class="docblock"><p>Configure the default iroh rpc endpoint, on the default address.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.enable_rpc_with_addr" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#369-384">source</a><h4 class="code-header">pub async fn <a href="#method.enable_rpc_with_addr" class="fn">enable_rpc_with_addr</a>(
</div></details><details class="toggle method-toggle" open><summary><section id="method.enable_rpc" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#366-368">source</a><h4 class="code-header">pub async fn <a href="#method.enable_rpc" class="fn">enable_rpc</a>(self) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.Builder.html" title="struct iroh::node::Builder">Builder</a>&lt;D&gt;&gt;</h4></section></summary><div class="docblock"><p>Configure the default iroh rpc endpoint, on the default address.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.enable_rpc_with_addr" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#371-386">source</a><h4 class="code-header">pub async fn <a href="#method.enable_rpc_with_addr" class="fn">enable_rpc_with_addr</a>(
self,
rpc_addr: <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.Builder.html" title="struct iroh::node::Builder">Builder</a>&lt;D&gt;&gt;</h4></section></summary><div class="docblock"><p>Configure the default iroh rpc endpoint.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gc_policy" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#389-392">source</a><h4 class="code-header">pub fn <a href="#method.gc_policy" class="fn">gc_policy</a>(self, gc_policy: <a class="enum" href="enum.GcPolicy.html" title="enum iroh::node::GcPolicy">GcPolicy</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the garbage collection policy.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gc_policy" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#391-394">source</a><h4 class="code-header">pub fn <a href="#method.gc_policy" class="fn">gc_policy</a>(self, gc_policy: <a class="enum" href="enum.GcPolicy.html" title="enum iroh::node::GcPolicy">GcPolicy</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the garbage collection policy.</p>
<p>By default garbage collection is disabled.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.disable_docs" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#395-398">source</a><h4 class="code-header">pub fn <a href="#method.disable_docs" class="fn">disable_docs</a>(self) -&gt; Self</h4></section></summary><div class="docblock"><p>Disables documents support on this node completely.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.relay_mode" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#414-417">source</a><h4 class="code-header">pub fn <a href="#method.relay_mode" class="fn">relay_mode</a>(self, relay_mode: <a class="enum" href="../net/relay/enum.RelayMode.html" title="enum iroh::net::relay::RelayMode">RelayMode</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the relay servers to assist in establishing connectivity.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.disable_docs" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#397-400">source</a><h4 class="code-header">pub fn <a href="#method.disable_docs" class="fn">disable_docs</a>(self) -&gt; Self</h4></section></summary><div class="docblock"><p>Disables documents support on this node completely.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.relay_mode" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#416-419">source</a><h4 class="code-header">pub fn <a href="#method.relay_mode" class="fn">relay_mode</a>(self, relay_mode: <a class="enum" href="../net/relay/enum.RelayMode.html" title="enum iroh::net::relay::RelayMode">RelayMode</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the relay servers to assist in establishing connectivity.</p>
<p>Relay servers are used to discover other nodes by <code>PublicKey</code> and also help
establish connections between peers by being an initial relay for traffic while
assisting in holepunching to establish a direct connection between peers.</p>
@@ -46,33 +46,33 @@ configured relay node. If an invalid <a href="../net/relay/enum.RelayMode.html"
<h5 id="usage-during-tests"><a class="doc-anchor" href="#usage-during-tests">§</a>Usage during tests</h5>
<p>Note that while the default is <a href="../net/relay/enum.RelayMode.html#variant.Default" title="variant iroh::net::relay::RelayMode::Default"><code>RelayMode::Default</code></a>, when using <code>cfg(test)</code> or
when the <code>test-utils</code> cargo feature <a href="../net/relay/enum.RelayMode.html#variant.Staging" title="variant iroh::net::relay::RelayMode::Staging"><code>RelayMode::Staging</code></a> is the default.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_discovery" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#430-433">source</a><h4 class="code-header">pub fn <a href="#method.node_discovery" class="fn">node_discovery</a>(self, config: <a class="enum" href="enum.DiscoveryConfig.html" title="enum iroh::node::DiscoveryConfig">DiscoveryConfig</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the node discovery mechanism.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.node_discovery" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#432-435">source</a><h4 class="code-header">pub fn <a href="#method.node_discovery" class="fn">node_discovery</a>(self, config: <a class="enum" href="enum.DiscoveryConfig.html" title="enum iroh::node::DiscoveryConfig">DiscoveryConfig</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Sets the node discovery mechanism.</p>
<p>Node discovery enables connecting to other peers by only the <a href="../net/type.NodeId.html" title="type iroh::net::NodeId"><code>NodeId</code></a>. This
usually works by the nodes publishing their <a href="../net/relay/struct.RelayUrl.html" title="struct iroh::net::relay::RelayUrl"><code>RelayUrl</code></a> and/or their direct
addresses to some publicly available service.</p>
<p>See <a href="enum.DiscoveryConfig.html#method.default" title="associated function iroh::node::DiscoveryConfig::default"><code>DiscoveryConfig::default</code></a> for the defaults, note that the defaults change
when using <code>cfg(test)</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.dns_resolver" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#443-446">source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(self, dns_resolver: <a class="type" href="../net/dns/type.DnsResolver.html" title="type iroh::net::dns::DnsResolver">DnsResolver</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Optionally set a custom DNS resolver to use for the magic endpoint.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.dns_resolver" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#445-448">source</a><h4 class="code-header">pub fn <a href="#method.dns_resolver" class="fn">dns_resolver</a>(self, dns_resolver: <a class="type" href="../net/dns/type.DnsResolver.html" title="type iroh::net::dns::DnsResolver">DnsResolver</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Optionally set a custom DNS resolver to use for the magic endpoint.</p>
<p>The DNS resolver is used to resolve relay hostnames, and node addresses if
<a href="../net/discovery/dns/struct.DnsDiscovery.html" title="struct iroh::net::discovery::dns::DnsDiscovery"><code>DnsDiscovery</code></a> is configured (which is the default).</p>
<p>By default, all magic endpoints share a DNS resolver, which is configured to use the
host system’s DNS configuration. You can pass a custom instance of <a href="../net/dns/type.DnsResolver.html" title="type iroh::net::dns::DnsResolver"><code>DnsResolver</code></a>
here to use a differently configured DNS resolver for this endpoint.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.bind_port" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#451-454">source</a><h4 class="code-header">pub fn <a href="#method.bind_port" class="fn">bind_port</a>(self, port: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Binds the node service to a different socket.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.bind_port" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#453-456">source</a><h4 class="code-header">pub fn <a href="#method.bind_port" class="fn">bind_port</a>(self, port: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Binds the node service to a different socket.</p>
<p>By default it binds to <code>127.0.0.1:11204</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.secret_key" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#457-460">source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(self, secret_key: <a class="struct" href="../net/key/struct.SecretKey.html" title="struct iroh::net::key::SecretKey">SecretKey</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Uses the given <a href="../net/key/struct.SecretKey.html" title="struct iroh::net::key::SecretKey"><code>SecretKey</code></a> for the <code>PublicKey</code> instead of a newly generated one.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.insecure_skip_relay_cert_verify" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#466-469">source</a><h4 class="code-header">pub fn <a href="#method.insecure_skip_relay_cert_verify" class="fn">insecure_skip_relay_cert_verify</a>(self, skip_verify: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Skip verification of SSL certificates from relay servers</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.secret_key" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#459-462">source</a><h4 class="code-header">pub fn <a href="#method.secret_key" class="fn">secret_key</a>(self, secret_key: <a class="struct" href="../net/key/struct.SecretKey.html" title="struct iroh::net::key::SecretKey">SecretKey</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Uses the given <a href="../net/key/struct.SecretKey.html" title="struct iroh::net::key::SecretKey"><code>SecretKey</code></a> for the <code>PublicKey</code> instead of a newly generated one.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.insecure_skip_relay_cert_verify" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#468-471">source</a><h4 class="code-header">pub fn <a href="#method.insecure_skip_relay_cert_verify" class="fn">insecure_skip_relay_cert_verify</a>(self, skip_verify: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Skip verification of SSL certificates from relay servers</p>
<p>May only be used in tests.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.register_gc_done_cb" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#473-476">source</a><h4 class="code-header">pub fn <a href="#method.register_gc_done_cb" class="fn">register_gc_done_cb</a>(self, cb: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;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="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Register a callback for when GC is done.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.keylog" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#483-486">source</a><h4 class="code-header">pub fn <a href="#method.keylog" class="fn">keylog</a>(self, keylog: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Whether to log the SSL pre-master key.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.register_gc_done_cb" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#475-478">source</a><h4 class="code-header">pub fn <a href="#method.register_gc_done_cb" class="fn">register_gc_done_cb</a>(self, cb: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;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="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Register a callback for when GC is done.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.keylog" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#485-488">source</a><h4 class="code-header">pub fn <a href="#method.keylog" class="fn">keylog</a>(self, keylog: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Whether to log the SSL pre-master key.</p>
<p>If <code>true</code> and the <code>SSLKEYLOGFILE</code> environment variable is the path to a file this
file will be used to log the SSL pre-master key. This is useful to inspect captured
traffic.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.spawn" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#493-496">source</a><h4 class="code-header">pub async fn <a href="#method.spawn" class="fn">spawn</a>(self) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.Node.html" title="struct iroh::node::Node">Node</a>&lt;D&gt;&gt;</h4></section></summary><div class="docblock"><p>Spawns the <a href="struct.Node.html" title="struct iroh::node::Node"><code>Node</code></a> in a tokio task.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.spawn" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#495-498">source</a><h4 class="code-header">pub async fn <a href="#method.spawn" class="fn">spawn</a>(self) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.Node.html" title="struct iroh::node::Node">Node</a>&lt;D&gt;&gt;</h4></section></summary><div class="docblock"><p>Spawns the <a href="struct.Node.html" title="struct iroh::node::Node"><code>Node</code></a> in a tokio task.</p>
<p>This will create the underlying network server and spawn a tokio task accepting
connections. The returned <a href="struct.Node.html" title="struct iroh::node::Node"><code>Node</code></a> can be used to control the task as well as
get information about it.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.build" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#502-512">source</a><h4 class="code-header">pub async fn <a href="#method.build" class="fn">build</a>(self) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.ProtocolBuilder.html" title="struct iroh::node::ProtocolBuilder">ProtocolBuilder</a>&lt;D&gt;&gt;</h4></section></summary><div class="docblock"><p>Builds a node without spawning it.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.build" class="method"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#504-514">source</a><h4 class="code-header">pub async fn <a href="#method.build" class="fn">build</a>(self) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.ProtocolBuilder.html" title="struct iroh::node::ProtocolBuilder">ProtocolBuilder</a>&lt;D&gt;&gt;</h4></section></summary><div class="docblock"><p>Builds a node without spawning it.</p>
<p>Returns a <a href="struct.ProtocolBuilder.html" title="struct iroh::node::ProtocolBuilder"><code>ProtocolBuilder</code></a>, on which custom protocols can be registered with
<a href="struct.ProtocolBuilder.html#method.accept" title="method iroh::node::ProtocolBuilder::accept"><code>ProtocolBuilder::accept</code></a>. To spawn the node, call <a href="struct.ProtocolBuilder.html#method.spawn" title="method iroh::node::ProtocolBuilder::spawn"><code>ProtocolBuilder::spawn</code></a>.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Builder%3CD%3E" class="impl"><a class="src rightside" href="../../src/iroh/node/builder.rs.html#94">source</a><a href="#impl-Debug-for-Builder%3CD%3E" class="anchor">§</a><h3 class="code-header">impl&lt;D&gt; <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.Builder.html" title="struct iroh::node::Builder">Builder</a>&lt;D&gt;<div class="where">where
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,15 +1,15 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Trait modeling a dialer. This allows for IO-less testing."><title>Dialer in iroh_blobs::downloader - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh_blobs" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh_blobs/index.html">iroh_blobs</a><span class="version">0.22.0</span></h2></div><h2 class="location"><a href="#">Dialer</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Connection">Connection</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.is_pending">is_pending</a></li><li><a href="#tymethod.node_id">node_id</a></li><li><a href="#tymethod.pending_count">pending_count</a></li><li><a href="#tymethod.queue_dial">queue_dial</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Dialer-for-Dialer">Dialer</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In iroh_blobs::downloader</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh_blobs/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">iroh_blobs</a>::<wbr><a href="index.html">downloader</a>::<wbr><a class="trait" href="#">Dialer</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh_blobs/downloader.rs.html#80-91">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Dialer: Stream&lt;Item = (<a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>, <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Dialer.html#associatedtype.Connection" title="type iroh_blobs::downloader::Dialer::Connection">Connection</a>&gt;)&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> {
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Trait modeling a dialer. This allows for IO-less testing."><title>Dialer in iroh_blobs::downloader - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh_blobs" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh_blobs/index.html">iroh_blobs</a><span class="version">0.22.0</span></h2></div><h2 class="location"><a href="#">Dialer</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Connection">Connection</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.is_pending">is_pending</a></li><li><a href="#tymethod.node_id">node_id</a></li><li><a href="#tymethod.pending_count">pending_count</a></li><li><a href="#tymethod.queue_dial">queue_dial</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Dialer-for-Dialer">Dialer</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In iroh_blobs::downloader</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh_blobs/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">iroh_blobs</a>::<wbr><a href="index.html">downloader</a>::<wbr><a class="trait" href="#">Dialer</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/iroh_blobs/downloader.rs.html#80-91">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Dialer: Stream&lt;Item = (NodeId, <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Dialer.html#associatedtype.Connection" title="type iroh_blobs::downloader::Dialer::Connection">Connection</a>&gt;)&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> {
type <a href="#associatedtype.Connection" class="associatedtype">Connection</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static;
// Required methods
fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&amp;mut self, node_id: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>);
fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&amp;mut self, node_id: NodeId);
<span class="item-spacer"></span> fn <a href="#tymethod.pending_count" class="fn">pending_count</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&amp;self, node: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.node_id" class="fn">node_id</a>(&amp;self) -&gt; <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&amp;self, node: NodeId) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.node_id" class="fn">node_id</a>(&amp;self) -&gt; NodeId;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trait modeling a dialer. This allows for IO-less testing.</p>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Connection" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#82">source</a><h4 class="code-header">type <a href="#associatedtype.Connection" class="associatedtype">Connection</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static</h4></section></summary><div class="docblock"><p>Type of connections returned by the Dialer.</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.queue_dial" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#84">source</a><h4 class="code-header">fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&amp;mut self, node_id: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>)</h4></section></summary><div class="docblock"><p>Dial a node.</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.queue_dial" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#84">source</a><h4 class="code-header">fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&amp;mut self, node_id: NodeId)</h4></section></summary><div class="docblock"><p>Dial a node.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.pending_count" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#86">source</a><h4 class="code-header">fn <a href="#tymethod.pending_count" class="fn">pending_count</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get the number of dialing nodes.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_pending" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#88">source</a><h4 class="code-header">fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&amp;self, node: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check if a node is being dialed.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.node_id" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#90">source</a><h4 class="code-header">fn <a href="#tymethod.node_id" class="fn">node_id</a>(&amp;self) -&gt; <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a></h4></section></summary><div class="docblock"><p>Get the node id of our node.</p>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Dialer-for-Dialer" class="impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1495-1513">source</a><a href="#impl-Dialer-for-Dialer" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Dialer.html" title="trait iroh_blobs::downloader::Dialer">Dialer</a> for <a class="struct" href="../../iroh_net/dialer/struct.Dialer.html" title="struct iroh_net::dialer::Dialer">Dialer</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Connection-1" class="associatedtype trait-impl"><a href="#associatedtype.Connection-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Connection" class="associatedtype">Connection</a> = Connection</h4></section><section id="method.queue_dial" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1498-1500">source</a><a href="#method.queue_dial" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&amp;mut self, node_id: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>)</h4></section><section id="method.pending_count" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1502-1504">source</a><a href="#method.pending_count" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.pending_count" class="fn">pending_count</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section><section id="method.is_pending" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1506-1508">source</a><a href="#method.is_pending" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&amp;self, node: <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.node_id" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1510-1512">source</a><a href="#method.node_id" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.node_id" class="fn">node_id</a>(&amp;self) -&gt; <a class="type" href="../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/iroh_blobs/downloader/trait.Dialer.js" data-ignore-extern-crates="iroh_net" async></script></section></div></main></body></html>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_pending" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#88">source</a><h4 class="code-header">fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&amp;self, node: NodeId) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check if a node is being dialed.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.node_id" class="method"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#90">source</a><h4 class="code-header">fn <a href="#tymethod.node_id" class="fn">node_id</a>(&amp;self) -&gt; NodeId</h4></section></summary><div class="docblock"><p>Get the node id of our node.</p>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Dialer-for-Dialer" class="impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1495-1513">source</a><a href="#impl-Dialer-for-Dialer" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Dialer.html" title="trait iroh_blobs::downloader::Dialer">Dialer</a> for <a class="struct" href="../../iroh_net/dialer/struct.Dialer.html" title="struct iroh_net::dialer::Dialer">Dialer</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Connection-1" class="associatedtype trait-impl"><a href="#associatedtype.Connection-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Connection" class="associatedtype">Connection</a> = Connection</h4></section><section id="method.queue_dial" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1498-1500">source</a><a href="#method.queue_dial" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.queue_dial" class="fn">queue_dial</a>(&amp;mut self, node_id: NodeId)</h4></section><section id="method.pending_count" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1502-1504">source</a><a href="#method.pending_count" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.pending_count" class="fn">pending_count</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section><section id="method.is_pending" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1506-1508">source</a><a href="#method.is_pending" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_pending" class="fn">is_pending</a>(&amp;self, node: NodeId) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.node_id" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/downloader.rs.html#1510-1512">source</a><a href="#method.node_id" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.node_id" class="fn">node_id</a>(&amp;self) -&gt; NodeId</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/iroh_blobs/downloader/trait.Dialer.js" data-ignore-extern-crates="iroh_net" async></script></section></div></main></body></html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -17,7 +17,7 @@
format: <a class="enum" href="../enum.BlobFormat.html" title="enum iroh_blobs::BlobFormat">BlobFormat</a>,
tag: <a class="struct" href="../util/struct.Tag.html" title="struct iroh_blobs::util::Tag">Tag</a>,
},
Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>),
Abort(RpcError),
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Progress updates for the add operation.</p>
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Found" class="variant"><a href="#variant.Found" class="anchor">§</a><h3 class="code-header">Found</h3></section><div class="docblock"><p>An item was found with name <code>name</code>, from now on referred to via <code>id</code></p>
</div><div class="sub-variant" id="variant.Found.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Found.field.id" class="section-header"><a href="#variant.Found.field.id" class="anchor field">§</a><code>id: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>A new unique id for this entry.</p>
@@ -33,7 +33,7 @@
</div><div class="sub-variant" id="variant.AllDone.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.AllDone.field.hash" class="section-header"><a href="#variant.AllDone.field.hash" class="anchor field">§</a><code>hash: <a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a></code></span><div class="docblock"><p>The hash of the created data.</p>
</div></div><div class="sub-variant-field"><span id="variant.AllDone.field.format" class="section-header"><a href="#variant.AllDone.field.format" class="anchor field">§</a><code>format: <a class="enum" href="../enum.BlobFormat.html" title="enum iroh_blobs::BlobFormat">BlobFormat</a></code></span><div class="docblock"><p>The format of the added data.</p>
</div></div><div class="sub-variant-field"><span id="variant.AllDone.field.tag" class="section-header"><a href="#variant.AllDone.field.tag" class="anchor field">§</a><code>tag: <a class="struct" href="../util/struct.Tag.html" title="struct iroh_blobs::util::Tag">Tag</a></code></span><div class="docblock"><p>The tag of the added data.</p>
</div></div></div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
</div></div></div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(RpcError)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
<p>This will be the last message in the stream.</p>
</div></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-AddProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#impl-Debug-for-AddProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.AddProgress.html" title="enum iroh_blobs::provider::AddProgress">AddProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-AddProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#impl-Deserialize%3C'de%3E-for-AddProgress" class="anchor">§</a><h3 class="code-header">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="enum" href="enum.AddProgress.html" title="enum iroh_blobs::provider::AddProgress">AddProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __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>&gt;<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>&lt;'de&gt;,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-AddProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#impl-Serialize-for-AddProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="enum" href="enum.AddProgress.html" title="enum iroh_blobs::provider::AddProgress">AddProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#122">source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a>&lt;__S&gt;(&amp;self, __serializer: __S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;__S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;<div class="where">where
@@ -8,7 +8,7 @@
Done {
hash: <a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a>,
},
Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>),
Abort(RpcError),
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Progress updates for the batch add operation.</p>
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Found" class="variant"><a href="#variant.Found" class="anchor">§</a><h3 class="code-header">Found</h3></section><div class="docblock"><p>An item was found with the given size</p>
</div><div class="sub-variant" id="variant.Found.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Found.field.size" class="section-header"><a href="#variant.Found.field.size" class="anchor field">§</a><code>size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The size of the entry in bytes.</p>
@@ -16,7 +16,7 @@
</div><div class="sub-variant" id="variant.Progress.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Progress.field.offset" class="section-header"><a href="#variant.Progress.field.offset" class="anchor field">§</a><code>offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The offset of the progress, in bytes.</p>
</div></div></div><section id="variant.Done" class="variant"><a href="#variant.Done" class="anchor">§</a><h3 class="code-header">Done</h3></section><div class="docblock"><p>We are done, and the hash is <code>hash</code>.</p>
</div><div class="sub-variant" id="variant.Done.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Done.field.hash" class="section-header"><a href="#variant.Done.field.hash" class="anchor field">§</a><code>hash: <a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a></code></span><div class="docblock"><p>The hash of the entry.</p>
</div></div></div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
</div></div></div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(RpcError)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
<p>This will be the last message in the stream.</p>
</div></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-BatchAddPathProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#impl-Debug-for-BatchAddPathProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.BatchAddPathProgress.html" title="enum iroh_blobs::provider::BatchAddPathProgress">BatchAddPathProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-BatchAddPathProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#impl-Deserialize%3C'de%3E-for-BatchAddPathProgress" class="anchor">§</a><h3 class="code-header">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="enum" href="enum.BatchAddPathProgress.html" title="enum iroh_blobs::provider::BatchAddPathProgress">BatchAddPathProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __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>&gt;<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>&lt;'de&gt;,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-BatchAddPathProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#impl-Serialize-for-BatchAddPathProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="enum" href="enum.BatchAddPathProgress.html" title="enum iroh_blobs::provider::BatchAddPathProgress">BatchAddPathProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/provider.rs.html#163">source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a>&lt;__S&gt;(&amp;self, __serializer: __S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;__S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;<div class="where">where
@@ -6,7 +6,7 @@
level: <a class="enum" href="enum.ReportLevel.html" title="enum iroh_blobs::store::ReportLevel">ReportLevel</a>,
},
Done,
Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>),
Abort(RpcError),
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Progress updates for the validate operation</p>
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Start" class="variant"><a href="#variant.Start" class="anchor">§</a><h3 class="code-header">Start</h3></section><div class="docblock"><p>Consistency check started</p>
</div><section id="variant.Update" class="variant"><a href="#variant.Update" class="anchor">§</a><h3 class="code-header">Update</h3></section><div class="docblock"><p>Consistency check update</p>
@@ -14,7 +14,7 @@
</div></div><div class="sub-variant-field"><span id="variant.Update.field.entry" class="section-header"><a href="#variant.Update.field.entry" class="anchor field">§</a><code>entry: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a>&gt;</code></span><div class="docblock"><p>The entry this message is about, if any</p>
</div></div><div class="sub-variant-field"><span id="variant.Update.field.level" class="section-header"><a href="#variant.Update.field.level" class="anchor field">§</a><code>level: <a class="enum" href="enum.ReportLevel.html" title="enum iroh_blobs::store::ReportLevel">ReportLevel</a></code></span><div class="docblock"><p>The level of the message</p>
</div></div></div><section id="variant.Done" class="variant"><a href="#variant.Done" class="anchor">§</a><h3 class="code-header">Done</h3></section><div class="docblock"><p>Consistency check ended</p>
</div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
</div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(RpcError)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
</div></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-ConsistencyCheckProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#impl-Debug-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-ConsistencyCheckProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#impl-Deserialize%3C'de%3E-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __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>&gt;<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>&lt;'de&gt;,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-ConsistencyCheckProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#impl-Serialize-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#807">source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a>&lt;__S&gt;(&amp;self, __serializer: __S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;__S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;<div class="where">where
__S: <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-ConsistencyCheckProgress" class="impl"><a href="#impl-Freeze-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section><section id="impl-RefUnwindSafe-for-ConsistencyCheckProgress" class="impl"><a href="#impl-RefUnwindSafe-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section><section id="impl-Send-for-ConsistencyCheckProgress" class="impl"><a href="#impl-Send-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section><section id="impl-Sync-for-ConsistencyCheckProgress" class="impl"><a href="#impl-Sync-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section><section id="impl-Unpin-for-ConsistencyCheckProgress" class="impl"><a href="#impl-Unpin-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section><section id="impl-UnwindSafe-for-ConsistencyCheckProgress" class="impl"><a href="#impl-UnwindSafe-for-ConsistencyCheckProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="enum.ConsistencyCheckProgress.html" title="enum iroh_blobs::store::ConsistencyCheckProgress">ConsistencyCheckProgress</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
@@ -31,7 +31,7 @@
ranges: <a class="struct" href="../protocol/struct.RangeSpec.html" title="struct iroh_blobs::protocol::RangeSpec">RangeSpec</a>,
},
AllDone,
Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>),
Abort(RpcError),
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Progress updates for the validate operation</p>
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Starting" class="variant"><a href="#variant.Starting" class="anchor">§</a><h3 class="code-header">Starting</h3></section><div class="docblock"><p>started validating</p>
</div><div class="sub-variant" id="variant.Starting.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Starting.field.total" class="section-header"><a href="#variant.Starting.field.total" class="anchor field">§</a><code>total: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The total number of entries to validate</p>
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.</
</div><div class="sub-variant" id="variant.PartialEntryDone.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.PartialEntryDone.field.id" class="section-header"><a href="#variant.PartialEntryDone.field.id" class="anchor field">§</a><code>id: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>The unique id of the entry.</p>
</div></div><div class="sub-variant-field"><span id="variant.PartialEntryDone.field.ranges" class="section-header"><a href="#variant.PartialEntryDone.field.ranges" class="anchor field">§</a><code>ranges: <a class="struct" href="../protocol/struct.RangeSpec.html" title="struct iroh_blobs::protocol::RangeSpec">RangeSpec</a></code></span><div class="docblock"><p>Available ranges.</p>
</div></div></div><section id="variant.AllDone" class="variant"><a href="#variant.AllDone" class="anchor">§</a><h3 class="code-header">AllDone</h3></section><div class="docblock"><p>We are done with the whole operation.</p>
</div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(<a class="struct" href="../../iroh_base/rpc/struct.RpcError.html" title="struct iroh_base::rpc::RpcError">RpcError</a>)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
</div><section id="variant.Abort" class="variant"><a href="#variant.Abort" class="anchor">§</a><h3 class="code-header">Abort(RpcError)</h3></section><div class="docblock"><p>We got an error and need to abort.</p>
</div></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-ValidateProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#impl-Debug-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-ValidateProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#impl-Deserialize%3C'de%3E-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __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>&gt;<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>&lt;'de&gt;,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-ValidateProgress" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#impl-Serialize-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#827">source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a>&lt;__S&gt;(&amp;self, __serializer: __S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;__S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;<div class="where">where
__S: <a class="trait" href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.204/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-ValidateProgress" class="impl"><a href="#impl-Freeze-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section><section id="impl-RefUnwindSafe-for-ValidateProgress" class="impl"><a href="#impl-RefUnwindSafe-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section><section id="impl-Send-for-ValidateProgress" class="impl"><a href="#impl-Send-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section><section id="impl-Sync-for-ValidateProgress" class="impl"><a href="#impl-Sync-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section><section id="impl-Unpin-for-ValidateProgress" class="impl"><a href="#impl-Unpin-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section><section id="impl-UnwindSafe-for-ValidateProgress" class="impl"><a href="#impl-UnwindSafe-for-ValidateProgress" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
+1 -1
View File
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="redb backed storage"><title>iroh_blobs::store::fs - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh_blobs" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc 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_blobs/index.html">iroh_blobs</a><span class="version">0.22.0</span></h2></div><h2 class="location"><a href="#">Module fs</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#types">Type Aliases</a></li></ul></section><h2><a href="../index.html">In iroh_blobs::store</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../iroh_blobs/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../../index.html">iroh_blobs</a>::<wbr><a href="../index.html">store</a>::<wbr><a class="mod" href="#">fs</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/iroh_blobs/store/fs.rs.html#1-2527">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>redb backed storage</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="redb backed storage"><title>iroh_blobs::store::fs - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh_blobs" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc 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_blobs/index.html">iroh_blobs</a><span class="version">0.22.0</span></h2></div><h2 class="location"><a href="#">Module fs</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#types">Type Aliases</a></li></ul></section><h2><a href="../index.html">In iroh_blobs::store</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../iroh_blobs/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../../index.html">iroh_blobs</a>::<wbr><a href="../index.html">store</a>::<wbr><a class="mod" href="#">fs</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/iroh_blobs/store/fs.rs.html#1-2531">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>redb backed storage</p>
<p>Data can get into the store in two ways:</p>
<ol>
<li>import from local data</li>
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -22,4 +22,4 @@ to open readers for both the data and the outboard</p>
is an entry. Creating an entry should be cheap, any expensive ops should
be deferred to the creation of the actual readers.</p>
<p>It is not guaranteed that the entry is complete.</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#1262-1268">source</a><a href="#impl-Map-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh_blobs::store::Map">Map</a> for iroh_blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh_blobs::store::fs::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-1" class="associatedtype trait-impl"><a href="#associatedtype.Entry-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = BaoFileHandle</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#346-352">source</a><a href="#impl-Map-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh_blobs::store::Map">Map</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh_blobs::store::mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-2" class="associatedtype trait-impl"><a href="#associatedtype.Entry-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = <a class="struct" href="mem/struct.Entry.html" title="struct iroh_blobs::store::mem::Entry">Entry</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store-2" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#180-189">source</a><a href="#impl-Map-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh_blobs::store::Map">Map</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-3" class="associatedtype trait-impl"><a href="#associatedtype.Entry-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = <a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh_blobs::store::readonly_mem::Entry">Entry</a></h4></section></div></details></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.Map.js" async></script></section></div></main></body></html>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#1266-1272">source</a><a href="#impl-Map-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh_blobs::store::Map">Map</a> for iroh_blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh_blobs::store::fs::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-1" class="associatedtype trait-impl"><a href="#associatedtype.Entry-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = BaoFileHandle</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#346-352">source</a><a href="#impl-Map-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh_blobs::store::Map">Map</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh_blobs::store::mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-2" class="associatedtype trait-impl"><a href="#associatedtype.Entry-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = <a class="struct" href="mem/struct.Entry.html" title="struct iroh_blobs::store::mem::Entry">Entry</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Map-for-Store-2" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#180-189">source</a><a href="#impl-Map-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Map.html" title="trait iroh_blobs::store::Map">Map</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Entry-3" class="associatedtype trait-impl"><a href="#associatedtype.Entry-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Entry" class="associatedtype">Entry</a> = <a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh_blobs::store::readonly_mem::Entry">Entry</a></h4></section></div></details></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.Map.js" async></script></section></div></main></body></html>
@@ -48,4 +48,4 @@ of the store the entry is present.</p>
&amp;self,
entry: Self::<a class="associatedtype" href="trait.MapMut.html#associatedtype.EntryMut" title="type iroh_blobs::store::MapMut::EntryMut">EntryMut</a>
) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a></h4></section></summary><div class="docblock"><p>Upgrade a partial entry to a complete entry.</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#1270-1292">source</a><a href="#impl-MapMut-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh_blobs::store::MapMut">MapMut</a> for iroh_blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh_blobs::store::fs::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-1" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = BaoFileHandle</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#354-403">source</a><a href="#impl-MapMut-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh_blobs::store::MapMut">MapMut</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh_blobs::store::mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-2" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = <a class="struct" href="mem/struct.Entry.html" title="struct iroh_blobs::store::mem::Entry">Entry</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store-2" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#191-220">source</a><a href="#impl-MapMut-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh_blobs::store::MapMut">MapMut</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-3" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = <a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh_blobs::store::readonly_mem::Entry">Entry</a></h4></section></div></details></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.MapMut.js" async></script></section></div></main></body></html>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#1274-1296">source</a><a href="#impl-MapMut-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh_blobs::store::MapMut">MapMut</a> for iroh_blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh_blobs::store::fs::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-1" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = BaoFileHandle</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#354-403">source</a><a href="#impl-MapMut-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh_blobs::store::MapMut">MapMut</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh_blobs::store::mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-2" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = <a class="struct" href="mem/struct.Entry.html" title="struct iroh_blobs::store::mem::Entry">Entry</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-MapMut-for-Store-2" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#191-220">source</a><a href="#impl-MapMut-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapMut.html" title="trait iroh_blobs::store::MapMut">MapMut</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a></h3></section></summary><div class="impl-items"><section id="associatedtype.EntryMut-3" class="associatedtype trait-impl"><a href="#associatedtype.EntryMut-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.EntryMut" class="associatedtype">EntryMut</a> = <a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh_blobs::store::readonly_mem::Entry">Entry</a></h4></section></div></details></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.MapMut.js" async></script></section></div></main></body></html>
@@ -46,4 +46,4 @@ been imported, and hash sequences that have been created internally.</p>
<code>target</code> is the path to the target file
<code>mode</code> is a hint how the file should be exported.
<code>progress</code> is a callback that is called with the total number of bytes that have been written</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ReadableStore-for-Store" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#1294-1329">source</a><a href="#impl-ReadableStore-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh_blobs::store::ReadableStore">ReadableStore</a> for iroh_blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh_blobs::store::fs::Store">Store</a></h3></section><section id="impl-ReadableStore-for-Store-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#405-459">source</a><a href="#impl-ReadableStore-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh_blobs::store::ReadableStore">ReadableStore</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh_blobs::store::mem::Store">Store</a></h3></section><section id="impl-ReadableStore-for-Store-2" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#222-263">source</a><a href="#impl-ReadableStore-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh_blobs::store::ReadableStore">ReadableStore</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a></h3></section></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.ReadableStore.js" async></script></section></div></main></body></html>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ReadableStore-for-Store" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#1298-1333">source</a><a href="#impl-ReadableStore-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh_blobs::store::ReadableStore">ReadableStore</a> for iroh_blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh_blobs::store::fs::Store">Store</a></h3></section><section id="impl-ReadableStore-for-Store-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#405-459">source</a><a href="#impl-ReadableStore-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh_blobs::store::ReadableStore">ReadableStore</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh_blobs::store::mem::Store">Store</a></h3></section><section id="impl-ReadableStore-for-Store-2" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#222-263">source</a><a href="#impl-ReadableStore-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ReadableStore.html" title="trait iroh_blobs::store::ReadableStore">ReadableStore</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a></h3></section></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.ReadableStore.js" async></script></section></div></main></body></html>
@@ -131,4 +131,4 @@ to completion just means that some garbage will remain in the database.</p>
<p>This will check that the file and outboard content is correct for all complete
entries, and output valid ranges for all partial entries.</p>
<p>It will not check the internal consistency of the database.</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Store-for-Store" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#1331-1418">source</a><a href="#impl-Store-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh_blobs::store::Store">Store</a> for iroh_blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh_blobs::store::fs::Store">Store</a></h3></section><section id="impl-Store-for-Store-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#149-250">source</a><a href="#impl-Store-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh_blobs::store::Store">Store</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh_blobs::store::mem::Store">Store</a></h3></section><section id="impl-Store-for-Store-2" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#287-340">source</a><a href="#impl-Store-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh_blobs::store::Store">Store</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a></h3></section></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.Store.js" async></script></section></div></main></body></html>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Store-for-Store" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#1335-1422">source</a><a href="#impl-Store-for-Store" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh_blobs::store::Store">Store</a> for iroh_blobs::store::fs::<a class="struct" href="fs/struct.Store.html" title="struct iroh_blobs::store::fs::Store">Store</a></h3></section><section id="impl-Store-for-Store-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#149-250">source</a><a href="#impl-Store-for-Store-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh_blobs::store::Store">Store</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Store.html" title="struct iroh_blobs::store::mem::Store">Store</a></h3></section><section id="impl-Store-for-Store-2" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#287-340">source</a><a href="#impl-Store-for-Store-2" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Store.html" title="trait iroh_blobs::store::Store">Store</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a></h3></section></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.Store.js" async></script></section></div></main></body></html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -14,4 +14,4 @@ whereas protecting a raw blob only protects the blob itself.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.on_create" class="method"><a class="src rightside" href="../../src/iroh_blobs/util.rs.html#157">source</a><h4 class="code-header">fn <a href="#tymethod.on_create" class="fn">on_create</a>(&amp;self, inner: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>)</h4></section></summary><div class="docblock"><p>Called on creation of a temp tag</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.as_weak" class="method"><a class="src rightside" href="../../src/iroh_blobs/util.rs.html#160-163">source</a><h4 class="code-header">fn <a href="#method.as_weak" class="fn">as_weak</a>(self: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;Self&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Weak.html" title="struct alloc::sync::Weak">Weak</a>&lt;dyn <a class="trait" href="trait.TagDrop.html" title="trait iroh_blobs::util::TagDrop">TagDrop</a>&gt;</h4></section></summary><div class="docblock"><p>Get this as a weak reference for use in temp tags</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.temp_tag" class="method"><a class="src rightside" href="../../src/iroh_blobs/util.rs.html#166-169">source</a><h4 class="code-header">fn <a href="#method.temp_tag" class="fn">temp_tag</a>(self: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;Self&gt;, inner: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>) -&gt; <a class="struct" href="struct.TempTag.html" title="struct iroh_blobs::util::TempTag">TempTag</a></h4></section></summary><div class="docblock"><p>Create a new temp tag for the given hash and format</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-TagCounter-for-RwLock%3CTempCounterMap%3E" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#780-784">source</a><a href="#impl-TagCounter-for-RwLock%3CTempCounterMap%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TagCounter.html" title="trait iroh_blobs::util::TagCounter">TagCounter</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/rwlock/struct.RwLock.html" title="struct std::sync::rwlock::RwLock">RwLock</a>&lt;TempCounterMap&gt;</h3></section></summary><div class="impl-items"><section id="method.on_create" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#781-783">source</a><a href="#method.on_create" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.on_create" class="fn">on_create</a>(&amp;self, content: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/iroh_blobs/util/trait.TagCounter.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-TagCounter-for-RwLock%3CTempCounterMap%3E" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#784-788">source</a><a href="#impl-TagCounter-for-RwLock%3CTempCounterMap%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TagCounter.html" title="trait iroh_blobs::util::TagCounter">TagCounter</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/rwlock/struct.RwLock.html" title="struct std::sync::rwlock::RwLock">RwLock</a>&lt;TempCounterMap&gt;</h3></section></summary><div class="impl-items"><section id="method.on_create" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#785-787">source</a><a href="#method.on_create" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.on_create" class="fn">on_create</a>(&amp;self, content: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/iroh_blobs/util/trait.TagCounter.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
@@ -4,4 +4,4 @@
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trait used from temp tags to notify an abstract store that a temp tag is
being dropped.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.on_drop" class="method"><a class="src rightside" href="../../src/iroh_blobs/util.rs.html#144">source</a><h4 class="code-header">fn <a href="#tymethod.on_drop" class="fn">on_drop</a>(&amp;self, inner: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>)</h4></section></summary><div class="docblock"><p>Called on drop</p>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-TagDrop-for-RwLock%3CTempCounterMap%3E" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#774-778">source</a><a href="#impl-TagDrop-for-RwLock%3CTempCounterMap%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TagDrop.html" title="trait iroh_blobs::util::TagDrop">TagDrop</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/rwlock/struct.RwLock.html" title="struct std::sync::rwlock::RwLock">RwLock</a>&lt;TempCounterMap&gt;</h3></section></summary><div class="impl-items"><section id="method.on_drop" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#775-777">source</a><a href="#method.on_drop" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.on_drop" class="fn">on_drop</a>(&amp;self, content: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/iroh_blobs/util/trait.TagDrop.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-TagDrop-for-RwLock%3CTempCounterMap%3E" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#778-782">source</a><a href="#impl-TagDrop-for-RwLock%3CTempCounterMap%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TagDrop.html" title="trait iroh_blobs::util::TagDrop">TagDrop</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/sync/rwlock/struct.RwLock.html" title="struct std::sync::rwlock::RwLock">RwLock</a>&lt;TempCounterMap&gt;</h3></section></summary><div class="impl-items"><section id="method.on_drop" class="method trait-impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#779-781">source</a><a href="#method.on_drop" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.on_drop" class="fn">on_drop</a>(&amp;self, content: &amp;<a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/iroh_blobs/util/trait.TagDrop.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
@@ -10,7 +10,7 @@ peers and a gossip swarm for each syncing document.</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>&lt;<a class="struct" href="struct.DefaultAuthor.html" title="struct iroh_docs::engine::DefaultAuthor">DefaultAuthor</a>&gt;</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>&lt;B: Store&gt;(
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: Downloader,
+1 -1
View File
@@ -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>&lt;Dispatch&gt;,</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) -&gt; <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a>&lt;Self&gt;</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&lt;T&gt; <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&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,</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&lt;T&gt; <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&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,</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&lt;T&gt; 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&lt;T&gt; <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>&amp;[<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 &amp;[<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>&lt;Dispatch&gt;,</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) -&gt; <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a>&lt;Self&gt;</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&lt;T&gt; <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&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,</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&lt;T&gt; <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&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,</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&lt;T&gt; 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&lt;T&gt; <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>
@@ -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>&lt;Dispatch&gt;,</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) -&gt; <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a>&lt;Self&gt;</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&lt;T&gt; <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&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,</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&lt;T&gt; <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&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,</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&lt;T&gt; 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&lt;T&gt; <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>&amp;[<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 &amp;[<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>&lt;Dispatch&gt;,</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) -&gt; <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a>&lt;Self&gt;</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&lt;T&gt; <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&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,</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&lt;T&gt; <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&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,</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&lt;T&gt; 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&lt;T&gt; <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
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>&#x2212;</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>&lt;PublicKey&gt;;</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>&#x2212;</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>&lt;<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>&gt;;</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>&lt;PublicKey&gt;),
Join(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>&gt;),
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>&lt;PublicKey&gt;)</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>&lt;<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>&gt;)</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>&#x2212;</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>&lt;PublicKey&gt;;</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>&#x2212;</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>&lt;<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>&gt;;</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&lt;PublicKey&gt;),
}</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&lt;PublicKey&gt;)</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&lt;<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>&gt;),
}</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&lt;<a class="struct" href="../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>&gt;)</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: &amp;mut BytesMut,
max_message_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../proto/state/struct.Message.html" title="struct iroh_gossip::proto::state::Message">Message</a>&lt;PublicKey&gt;&gt;&gt;</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>
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../proto/state/struct.Message.html" title="struct iroh_gossip::proto::state::Message">Message</a>&lt;<a class="struct" href="../../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>&gt;&gt;&gt;</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>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub async fn write_message&lt;W: AsyncWrite + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>&gt;(
writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut W</a>,
buffer: &amp;mut BytesMut,
frame: &amp;<a class="struct" href="../../proto/state/struct.Message.html" title="struct iroh_gossip::proto::state::Message">Message</a>&lt;PublicKey&gt;,
frame: &amp;<a class="struct" href="../../proto/state/struct.Message.html" title="struct iroh_gossip::proto::state::Message">Message</a>&lt;<a class="struct" href="../../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>&gt;,
max_message_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.85/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</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&lt;PI&gt;)</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&lt;PI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <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>&lt;PI&gt;</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>(&amp;self) -&gt; <a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a>&lt;PI&gt;</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>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;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&lt;PI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <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>&lt;PI&gt;</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>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <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&lt;'de, PI&gt; <a class="trait" href="https://docs.rs/serde/1.0.204/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a>&lt;PI&gt;<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>&lt;'de&gt;,</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>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __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>&gt;<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>&lt;'de&gt;,</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>&lt;<a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a>&lt;PublicKey&gt;&gt; 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>&lt;NodeId&gt;) -&gt; 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&lt;PI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>&gt; <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>&lt;PI&gt;</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>(&amp;self, other: &amp;<a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a>&lt;PI&gt;) -&gt; <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) -&gt; 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>&lt;'de&gt;,</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>&lt;<a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a>&lt;<a class="struct" href="../../../iroh_base/key/struct.PublicKey.html" title="struct iroh_base::key::PublicKey">PublicKey</a>&gt;&gt; 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>&lt;<a class="type" href="../../../iroh_base/key/type.NodeId.html" title="type iroh_base::key::NodeId">NodeId</a>&gt;) -&gt; 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&lt;PI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>&gt; <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>&lt;PI&gt;</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>(&amp;self, other: &amp;<a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a>&lt;PI&gt;) -&gt; <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) -&gt; 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) -&gt; 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) -&gt; 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&lt;PI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt; <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>&lt;PI&gt;</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>(&amp;self, other: &amp;<a class="enum" href="enum.Event.html" title="enum iroh_gossip::proto::topic::Event">Event</a>&lt;PI&gt;) -&gt; <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
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
@@ -459,6 +459,8 @@
<a href="#459" id="459">459</a>
<a href="#460" id="460">460</a>
<a href="#461" id="461">461</a>
<a href="#462" id="462">462</a>
<a href="#463" id="463">463</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>std::{
io,
path::PathBuf,
@@ -617,7 +619,9 @@
<span class="doccomment">/// Write a blob by passing an async reader.
///
/// This will use a default chunk size of 64KB, and a format of [BlobFormat::Raw].
/// This will consume the stream in 64KB chunks, and use a format of [BlobFormat::Raw].
///
/// For more options, see [`Self::add_reader_with_opts`].
</span><span class="kw">pub async fn </span>add_reader(
<span class="kw-2">&amp;</span><span class="self">self</span>,
reader: <span class="kw">impl </span>AsyncRead + Unpin + Send + <span class="lifetime">'static</span>,
@@ -654,7 +658,7 @@
<span class="doccomment">/// Write a blob by passing an async reader.
///
/// This produces a stream from the reader with a hardcoded buffer size of 64KB.
/// This consumes the stream in chunks using `opts.chunk_size`. A good default is 64KB.
</span><span class="kw">pub async fn </span>add_reader_with_opts(
<span class="kw-2">&amp;</span><span class="self">self</span>,
reader: <span class="kw">impl </span>AsyncRead + Unpin + Send + <span class="lifetime">'static</span>,
@@ -680,11 +684,11 @@
/// `path` should be an absolute path valid for the file system on which
/// the node runs, which refers to a file.
///
/// If you use [ImportMode::TryReference], Iroh will assume that the data will not
/// If you use [`ImportMode::TryReference`], Iroh will assume that the data will not
/// change and will share it in place without copying to the Iroh data directory
/// if appropriate. However, for tiny files, Iroh will copy the data.
///
/// If you use [ImportMode::Copy], Iroh will always copy the data.
/// If you use [`ImportMode::Copy`], Iroh will always copy the data.
///
/// Will return a temp tag for the added blob, as well as the size of the file.
</span><span class="kw">pub async fn </span>add_file_with_opts(
@@ -839,7 +843,7 @@
<span class="prelude-val">Ok</span>(<span class="self">self</span>.local_temp_tag(HashAndFormat { hash, format }, <span class="prelude-val">Some</span>(size)))
}
<span class="doccomment">/// Add a collection
<span class="doccomment">/// Add a collection.
///
/// This is a convenience function that converts the collection into two blobs
/// (the metadata and the hash sequence) and adds them, returning a temp tag for
@@ -871,7 +875,7 @@
}
}
<span class="doccomment">/// Upgrade a temp tag to a persistent tag.
<span class="doccomment">/// Upgrades a temp tag to a persistent tag.
</span><span class="kw">pub async fn </span>persist(<span class="kw-2">&amp;</span><span class="self">self</span>, tt: TempTag) -&gt; <span class="prelude-ty">Result</span>&lt;Tag&gt; {
<span class="kw">let </span>tag = <span class="self">self
</span>.<span class="number">0
@@ -885,7 +889,7 @@
<span class="prelude-val">Ok</span>(tag)
}
<span class="doccomment">/// Upgrade a temp tag to a persistent tag with a specific name.
<span class="doccomment">/// Upgrades a temp tag to a persistent tag with a specific name.
</span><span class="kw">pub async fn </span>persist_to(<span class="kw-2">&amp;</span><span class="self">self</span>, tt: TempTag, tag: Tag) -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
<span class="self">self</span>.<span class="number">0
</span>.rpc
@@ -899,7 +903,7 @@
<span class="prelude-val">Ok</span>(())
}
<span class="doccomment">/// Upgrade a temp tag to a persistent tag with either a specific name or
<span class="doccomment">/// Upgrades a temp tag to a persistent tag with either a specific name or
/// an automatically generated name.
</span><span class="kw">pub async fn </span>upgrade_with_opts(<span class="kw-2">&amp;</span><span class="self">self</span>, tt: TempTag, opts: SetTagOption) -&gt; <span class="prelude-ty">Result</span>&lt;Tag&gt; {
<span class="kw">match </span>opts {
+7 -3
View File
@@ -919,6 +919,8 @@
<a href="#919" id="919">919</a>
<a href="#920" id="920">920</a>
<a href="#921" id="921">921</a>
<a href="#922" id="922">922</a>
<a href="#923" id="923">923</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>std::{
net::{Ipv4Addr, SocketAddr, SocketAddrV4},
path::{Path, PathBuf},
@@ -1228,14 +1230,16 @@
})<span class="question-mark">?</span>;
<span class="kw">let </span>docs_storage = DocsStorage::Persistent(IrohPaths::DocsDatabase.with_root(root));
<span class="kw">let </span>v0 = blobs_store
<span class="attr">#[allow(deprecated)]
</span><span class="kw">let </span>v0 = blobs_store
.import_flat_store(iroh_blobs::store::fs::FlatStorePaths {
complete: root.join(<span class="string">"blobs.v0"</span>),
partial: root.join(<span class="string">"blobs-partial.v0"</span>),
meta: root.join(<span class="string">"blobs-meta.v0"</span>),
})
.<span class="kw">await</span><span class="question-mark">?</span>;
<span class="kw">let </span>v1 = blobs_store
<span class="attr">#[allow(deprecated)]
</span><span class="kw">let </span>v1 = blobs_store
.import_flat_store(iroh_blobs::store::fs::FlatStorePaths {
complete: root.join(<span class="string">"blobs.v1"</span>).join(<span class="string">"complete"</span>),
partial: root.join(<span class="string">"blobs.v1"</span>).join(<span class="string">"partial"</span>),
@@ -1243,7 +1247,7 @@
})
.<span class="kw">await</span><span class="question-mark">?</span>;
<span class="kw">if </span>v0 || v1 {
<span class="macro">tracing::info!</span>(<span class="string">"flat data was imported - reapply inline options"</span>);
<span class="macro">tracing::warn!</span>(<span class="string">"Imported deprecated flat data. Future versions will stop supporting migrations from flat stores"</span>);
blobs_store
.update_inline_options(iroh_blobs::store::fs::InlineOptions::default(), <span class="bool-val">true</span>)
.<span class="kw">await</span><span class="question-mark">?</span>;
+1 -3
View File
@@ -1482,7 +1482,6 @@
<a href="#1482" id="1482">1482</a>
<a href="#1483" id="1483">1483</a>
<a href="#1484" id="1484">1484</a>
<a href="#1485" id="1485">1485</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>std::fmt::Debug;
<span class="kw">use </span>std::io;
<span class="kw">use </span>std::sync::{Arc, Mutex};
@@ -2475,8 +2474,7 @@
})
}
<span class="attr">#[allow(clippy::unused_async)]
</span><span class="kw">async fn </span>batch_create_temp_tag(<span class="self">self</span>, msg: BatchCreateTempTagRequest) -&gt; RpcResult&lt;()&gt; {
<span class="kw">async fn </span>batch_create_temp_tag(<span class="self">self</span>, msg: BatchCreateTempTagRequest) -&gt; RpcResult&lt;()&gt; {
<span class="kw">let </span>tag = <span class="self">self</span>.inner.db.temp_tag(msg.content);
<span class="self">self</span>.inner.blob_batches.lock().<span class="kw">await</span>.store(msg.batch, tag);
<span class="prelude-val">Ok</span>(())
@@ -2525,6 +2525,10 @@
<a href="#2525" id="2525">2525</a>
<a href="#2526" id="2526">2526</a>
<a href="#2527" id="2527">2527</a>
<a href="#2528" id="2528">2528</a>
<a href="#2529" id="2529">2529</a>
<a href="#2530" id="2530">2530</a>
<a href="#2531" id="2531">2531</a>
</pre></div><pre class="rust"><code><span class="doccomment">//! redb backed storage
//!
//! Data can get into the store in two ways:
@@ -3285,6 +3289,10 @@
}
<span class="doccomment">/// Import from a v0 or v1 flat store, for backwards compatibility.
</span><span class="attr">#[deprecated(
since = <span class="string">"0.23.0"</span>,
note = <span class="string">"Flat stores are deprecated and future versions will not be able to migrate."
</span>)]
</span><span class="kw">pub async fn </span>import_flat_store(<span class="kw-2">&amp;</span><span class="self">self</span>, paths: FlatStorePaths) -&gt; io::Result&lt;bool&gt; {
<span class="prelude-val">Ok</span>(<span class="self">self</span>.<span class="number">0</span>.import_flat_store(paths).<span class="kw">await</span><span class="question-mark">?</span>)
}
File diff suppressed because one or more lines are too long
@@ -1,9 +1,9 @@
(function() {var implementors = {
"iroh":[["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh/metrics/struct.Metrics.html\" title=\"struct iroh::metrics::Metrics\">Metrics</a>"]],
"iroh_blobs":[["impl <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_blobs":[["impl Metric for <a class=\"struct\" href=\"iroh_blobs/metrics/struct.Metrics.html\" title=\"struct iroh_blobs::metrics::Metrics\">Metrics</a>"]],
"iroh_dns_server":[["impl Metric for <a class=\"struct\" href=\"iroh_dns_server/metrics/struct.Metrics.html\" title=\"struct iroh_dns_server::metrics::Metrics\">Metrics</a>"]],
"iroh_docs":[["impl Metric for <a class=\"struct\" href=\"iroh_docs/metrics/struct.Metrics.html\" title=\"struct iroh_docs::metrics::Metrics\">Metrics</a>"]],
"iroh_gossip":[["impl Metric for <a class=\"struct\" href=\"iroh_gossip/metrics/struct.Metrics.html\" title=\"struct iroh_gossip::metrics::Metrics\">Metrics</a>"]],
"iroh_gossip":[["impl <a class=\"trait\" href=\"iroh_metrics/core/trait.Metric.html\" title=\"trait iroh_metrics::core::Metric\">Metric</a> for <a class=\"struct\" href=\"iroh_gossip/metrics/struct.Metrics.html\" title=\"struct iroh_gossip::metrics::Metrics\">Metrics</a>"]],
"iroh_net":[["impl Metric for <a class=\"struct\" href=\"iroh_net/metrics/struct.MagicsockMetrics.html\" title=\"struct iroh_net::metrics::MagicsockMetrics\">Metrics</a>"],["impl Metric for <a class=\"struct\" href=\"iroh_net/netcheck/struct.Metrics.html\" title=\"struct iroh_net::netcheck::Metrics\">Metrics</a>"],["impl Metric for <a class=\"struct\" href=\"iroh_net/portmapper/struct.Metrics.html\" title=\"struct iroh_net::portmapper::Metrics\">Metrics</a>"],["impl Metric for <a class=\"struct\" href=\"iroh_net/relay/server/struct.Metrics.html\" title=\"struct iroh_net::relay::server::Metrics\">Metrics</a>"]],
"iroh_relay":[["impl Metric for <a class=\"struct\" href=\"iroh_relay/metrics/struct.StunMetrics.html\" title=\"struct iroh_relay::metrics::StunMetrics\">StunMetrics</a>"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()