mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-03 08:01:40 +00:00
deploy: 980ebd1d0ee1dc51a060ca9eee69053d8f3c73d3
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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="Use BaoFileHandle as the entry type for the map."><title>Entry in 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" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../iroh/index.html">iroh</a><span class="version">0.24.0</span></h2></div><h2 class="location"><a href="#">Entry</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3></section><h2><a href="index.html">In iroh::blobs::store::fs</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Type Alias <a href="../../../index.html">iroh</a>::<wbr><a href="../../index.html">blobs</a>::<wbr><a href="../index.html">store</a>::<wbr><a href="index.html">fs</a>::<wbr><a class="type" href="#">Entry</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#466">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type Entry = BaoFileHandle;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Use BaoFileHandle as the entry type for the map.</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="Use BaoFileHandle as the entry type for the map."><title>Entry in 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" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../iroh/index.html">iroh</a><span class="version">0.24.0</span></h2></div><h2 class="location"><a href="#">Entry</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3></section><h2><a href="index.html">In iroh::blobs::store::fs</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Type Alias <a href="../../../index.html">iroh</a>::<wbr><a href="../../index.html">blobs</a>::<wbr><a href="../index.html">store</a>::<wbr><a href="index.html">fs</a>::<wbr><a class="type" href="#">Entry</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#467">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type Entry = BaoFileHandle;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Use BaoFileHandle as the entry type for the map.</p>
|
||||
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>struct Entry(<span class="comment">/* private fields */</span>);</code></pre><script src="../../../../type.impl/iroh_blobs/store/bao_file/struct.BaoFileHandle.js" data-self-path="iroh::blobs::store::fs::Entry" async></script></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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#1237">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#1238">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#351">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#181">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>
|
||||
@@ -23,4 +23,4 @@ it only checks if the entry was marked as complete in the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.data_reader" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#94">source</a><h4 class="code-header">fn <a href="#tymethod.data_reader" class="fn">data_reader</a>(
|
||||
&self
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><impl <a class="trait" href="bao_tree/io/fsm/trait.AsyncSliceReader.html" title="trait iroh::blobs::store::bao_tree::io::fsm::AsyncSliceReader">AsyncSliceReader</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>>> + <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>A future that resolves to a reader that can be used to read the data</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-MapEntry-for-Entry" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#272">source</a><a href="#impl-MapEntry-for-Entry" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntry.html" title="trait iroh::blobs::store::MapEntry">MapEntry</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Entry.html" title="struct iroh::blobs::store::mem::Entry">Entry</a></h3></section><section id="impl-MapEntry-for-Entry-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#158">source</a><a href="#impl-MapEntry-for-Entry-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntry.html" title="trait iroh::blobs::store::MapEntry">MapEntry</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh::blobs::store::readonly_mem::Entry">Entry</a></h3></section></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.MapEntry.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-MapEntry-for-Entry" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#277">source</a><a href="#impl-MapEntry-for-Entry" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntry.html" title="trait iroh::blobs::store::MapEntry">MapEntry</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Entry.html" title="struct iroh::blobs::store::mem::Entry">Entry</a></h3></section><section id="impl-MapEntry-for-Entry-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#159">source</a><a href="#impl-MapEntry-for-Entry-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntry.html" title="trait iroh::blobs::store::MapEntry">MapEntry</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh::blobs::store::readonly_mem::Entry">Entry</a></h3></section></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.MapEntry.js" data-ignore-extern-crates="iroh_blobs" async></script></section></div></main></body></html>
|
||||
@@ -7,4 +7,4 @@
|
||||
</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.batch_writer" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#122">source</a><h4 class="code-header">fn <a href="#tymethod.batch_writer" class="fn">batch_writer</a>(
|
||||
&self
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><impl <a class="trait" href="trait.BaoBatchWriter.html" title="trait iroh::blobs::store::BaoBatchWriter">BaoBatchWriter</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>>> + <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>Get a batch writer</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-MapEntryMut-for-Entry" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#300">source</a><a href="#impl-MapEntryMut-for-Entry" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntryMut.html" title="trait iroh::blobs::store::MapEntryMut">MapEntryMut</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Entry.html" title="struct iroh::blobs::store::mem::Entry">Entry</a></h3></section><section id="impl-MapEntryMut-for-Entry-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#265">source</a><a href="#impl-MapEntryMut-for-Entry-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntryMut.html" title="trait iroh::blobs::store::MapEntryMut">MapEntryMut</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh::blobs::store::readonly_mem::Entry">Entry</a></h3></section></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.MapEntryMut.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-MapEntryMut-for-Entry" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/mem.rs.html#305">source</a><a href="#impl-MapEntryMut-for-Entry" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntryMut.html" title="trait iroh::blobs::store::MapEntryMut">MapEntryMut</a> for iroh::blobs::store::mem::<a class="struct" href="mem/struct.Entry.html" title="struct iroh::blobs::store::mem::Entry">Entry</a></h3></section><section id="impl-MapEntryMut-for-Entry-1" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/store/readonly_mem.rs.html#266">source</a><a href="#impl-MapEntryMut-for-Entry-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntryMut.html" title="trait iroh::blobs::store::MapEntryMut">MapEntryMut</a> for iroh::blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh::blobs::store::readonly_mem::Entry">Entry</a></h3></section></div><script src="../../../trait.impl/iroh_blobs/store/traits/trait.MapEntryMut.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>
|
||||
&self,
|
||||
entry: Self::<a class="associatedtype" href="trait.MapMut.html#associatedtype.EntryMut" title="type iroh::blobs::store::MapMut::EntryMut">EntryMut</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>> + <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#1245">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#1246">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#359">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#192">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#1269">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#1270">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#410">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#223">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>
|
||||
@@ -28,7 +28,13 @@
|
||||
hash: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.Tag.html" title="struct iroh::blobs::Tag">Tag</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>>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.temp_tag" class="fn">temp_tag</a>(&self, value: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>) -> <a class="struct" href="../struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.gc_run" class="fn">gc_run</a>(&self, config: <a class="struct" href="struct.GcConfig.html" title="struct iroh::blobs::store::GcConfig">GcConfig</a>) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.gc_run" class="fn">gc_run</a><G, Gut>(
|
||||
&self,
|
||||
config: <a class="struct" href="struct.GcConfig.html" title="struct iroh::blobs::store::GcConfig">GcConfig</a>,
|
||||
protected_cb: G
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>
|
||||
<span class="where">where G: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -> Gut,
|
||||
Gut: <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="struct" href="../struct.Hash.html" title="struct iroh::blobs::Hash">Hash</a>>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a></span>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.delete" class="fn">delete</a>(
|
||||
&self,
|
||||
hashes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Hash.html" title="struct iroh::blobs::Hash">Hash</a>>
|
||||
@@ -86,21 +92,27 @@ implementations might be able to import a file without copying it.</p>
|
||||
hash: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.Tag.html" title="struct iroh::blobs::Tag">Tag</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>>> + <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>Create a new tag</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.temp_tag" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#357">source</a><h4 class="code-header">fn <a href="#tymethod.temp_tag" class="fn">temp_tag</a>(&self, value: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>) -> <a class="struct" href="../struct.TempTag.html" title="struct iroh::blobs::TempTag">TempTag</a></h4></section></summary><div class="docblock"><p>Create a temporary pin for this store</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.gc_run" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#362">source</a><h4 class="code-header">fn <a href="#tymethod.gc_run" class="fn">gc_run</a>(&self, config: <a class="struct" href="struct.GcConfig.html" title="struct iroh::blobs::store::GcConfig">GcConfig</a>) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Start the GC loop</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.gc_run" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#362-365">source</a><h4 class="code-header">fn <a href="#tymethod.gc_run" class="fn">gc_run</a><G, Gut>(
|
||||
&self,
|
||||
config: <a class="struct" href="struct.GcConfig.html" title="struct iroh::blobs::store::GcConfig">GcConfig</a>,
|
||||
protected_cb: G
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><div class="where">where
|
||||
G: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -> Gut,
|
||||
Gut: <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="struct" href="../struct.Hash.html" title="struct iroh::blobs::Hash">Hash</a>>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h4></section></summary><div class="docblock"><p>Start the GC loop</p>
|
||||
<p>The gc task will shut down, when dropping the returned future.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.delete" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#365">source</a><h4 class="code-header">fn <a href="#tymethod.delete" class="fn">delete</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.delete" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#368">source</a><h4 class="code-header">fn <a href="#tymethod.delete" class="fn">delete</a>(
|
||||
&self,
|
||||
hashes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Hash.html" title="struct iroh::blobs::Hash">Hash</a>>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>> + <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>physically delete the given hashes from the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.shutdown" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#368">source</a><h4 class="code-header">fn <a href="#tymethod.shutdown" class="fn">shutdown</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> + <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>Shutdown the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.sync" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#371">source</a><h4 class="code-header">fn <a href="#tymethod.sync" class="fn">sync</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>> + <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>Sync the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.shutdown" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#371">source</a><h4 class="code-header">fn <a href="#tymethod.shutdown" class="fn">shutdown</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> + <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>Shutdown the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.sync" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#374">source</a><h4 class="code-header">fn <a href="#tymethod.sync" class="fn">sync</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>> + <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>Sync the store.</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.import_reader" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#336-341">source</a><h4 class="code-header">fn <a href="#method.import_reader" class="fn">import_reader</a>(
|
||||
&self,
|
||||
data: impl AsyncRead + <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="../enum.BlobFormat.html" title="enum iroh::blobs::BlobFormat">BlobFormat</a>,
|
||||
progress: impl <a class="trait" href="../util/progress/trait.ProgressSender.html" title="trait iroh::blobs::util::progress::ProgressSender">ProgressSender</a><Msg = <a class="enum" href="enum.ImportProgress.html" title="enum iroh::blobs::store::ImportProgress">ImportProgress</a>> + <a class="trait" href="../util/progress/trait.IdGenerator.html" title="trait iroh::blobs::util::progress::IdGenerator">IdGenerator</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(<a class="struct" href="../struct.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>), <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>> + <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>Import data from an async byte reader.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.validate" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#379-383">source</a><h4 class="code-header">fn <a href="#method.validate" class="fn">validate</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.validate" class="method"><a class="src rightside" href="../../../src/iroh_blobs/store/traits.rs.html#382-386">source</a><h4 class="code-header">fn <a href="#method.validate" class="fn">validate</a>(
|
||||
&self,
|
||||
repair: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
tx: <a class="struct" href="../util/progress/struct.BoxedProgressSender.html" title="struct iroh::blobs::util::progress::BoxedProgressSender">BoxedProgressSender</a><<a class="enum" href="enum.ValidateProgress.html" title="enum iroh::blobs::store::ValidateProgress">ValidateProgress</a>>
|
||||
@@ -108,4 +120,4 @@ implementations might be able to import a file without copying it.</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#1306">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#1307">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#150">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#288">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>(&self, inner: &<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: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><Self>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Weak.html" title="struct alloc::sync::Weak">Weak</a><dyn <a class="trait" href="trait.TagDrop.html" title="trait iroh::blobs::util::TagDrop">TagDrop</a>></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: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><Self>, inner: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh::blobs::HashAndFormat">HashAndFormat</a>) -> <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#757">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><TempCounterMap></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#758">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>(&self, content: &<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#758">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><TempCounterMap></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#759">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>(&self, content: &<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>(&self, inner: &<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#751">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><TempCounterMap></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#752">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>(&self, content: &<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#752">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><TempCounterMap></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#753">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>(&self, content: &<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>
|
||||
@@ -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="Node API"><title>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 mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.24.0</span></h2></div><h2 class="location"><a href="#">Module node</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#types">Type Aliases</a></li></ul></section><h2><a href="../index.html">In crate iroh</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">iroh</a>::<wbr><a class="mod" href="#">node</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.rs.html#1-911">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Node API</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="Node API"><title>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 mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.24.0</span></h2></div><h2 class="location"><a href="#">Module node</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#types">Type Aliases</a></li></ul></section><h2><a href="../index.html">In crate iroh</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../iroh/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">iroh</a>::<wbr><a class="mod" href="#">node</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.rs.html#1-938">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Node API</p>
|
||||
<p>An iroh node is a server that is identified by an Ed25519 keypair and is
|
||||
globally reachable via the <a href="../net/type.NodeId.html" title="type iroh::net::NodeId">node id</a>, which is the
|
||||
public key of the keypair.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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.24.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-2506">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>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.24.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-2516">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A full in memory database for iroh-blobs"><title>iroh_blobs::store::mem - 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.24.0</span></h2></div><h2 class="location"><a href="#">Module mem</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</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="#">mem</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/mem.rs.html#1-459">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A full in memory database for iroh-blobs</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="A full in memory database for iroh-blobs"><title>iroh_blobs::store::mem - 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.24.0</span></h2></div><h2 class="location"><a href="#">Module mem</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</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="#">mem</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/mem.rs.html#1-464">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A full in memory database for iroh-blobs</p>
|
||||
<p>Main entry point is <a href="struct.Store.html" title="struct iroh_blobs::store::mem::Store">Store</a>.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Entry.html" title="struct iroh_blobs::store::mem::Entry">Entry</a></div><div class="desc docblock-short">An in memory entry</div></li><li><div class="item-name"><a class="struct" href="struct.Store.html" title="struct iroh_blobs::store::mem::Store">Store</a></div><div class="desc docblock-short">A fully featured in memory database for iroh-blobs, including support for
|
||||
partial blobs.</div></li></ul></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A readonly in memory database for iroh-blobs, usable for testing and sharing static data."><title>iroh_blobs::store::readonly_mem - 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.24.0</span></h2></div><h2 class="location"><a href="#">Module readonly_mem</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</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="#">readonly_mem</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/readonly_mem.rs.html#1-340">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A readonly in memory database for iroh-blobs, usable for testing and sharing static data.</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="A readonly in memory database for iroh-blobs, usable for testing and sharing static data."><title>iroh_blobs::store::readonly_mem - 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.24.0</span></h2></div><h2 class="location"><a href="#">Module readonly_mem</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</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="#">readonly_mem</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/readonly_mem.rs.html#1-345">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A readonly in memory database for iroh-blobs, usable for testing and sharing static data.</p>
|
||||
<p>Main entry point is <a href="struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a>.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Entry.html" title="struct iroh_blobs::store::readonly_mem::Entry">Entry</a></div><div class="desc docblock-short">The <a href="../trait.MapEntry.html" title="trait iroh_blobs::store::MapEntry">MapEntry</a> implementation for <a href="struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a>.</div></li><li><div class="item-name"><a class="struct" href="struct.Store.html" title="struct iroh_blobs::store::readonly_mem::Store">Store</a></div><div class="desc docblock-short">A readonly in memory database for iroh-blobs.</div></li></ul></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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#1237-1243">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#1238-1244">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#351-357">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#181-190">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>
|
||||
@@ -21,4 +21,4 @@ it only checks if the entry was marked as complete in the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.data_reader" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#94">source</a><h4 class="code-header">fn <a href="#tymethod.data_reader" class="fn">data_reader</a>(
|
||||
&self
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><impl AsyncSliceReader>> + <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>A future that resolves to a reader that can be used to read the data</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-MapEntry-for-Entry" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#272-298">source</a><a href="#impl-MapEntry-for-Entry" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntry.html" title="trait iroh_blobs::store::MapEntry">MapEntry</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Entry.html" title="struct iroh_blobs::store::mem::Entry">Entry</a></h3></section><section id="impl-MapEntry-for-Entry-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#158-178">source</a><a href="#impl-MapEntry-for-Entry-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntry.html" title="trait iroh_blobs::store::MapEntry">MapEntry</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh_blobs::store::readonly_mem::Entry">Entry</a></h3></section><section id="impl-MapEntry-for-BaoFileHandle" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#468-490">source</a><a href="#impl-MapEntry-for-BaoFileHandle" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntry.html" title="trait iroh_blobs::store::MapEntry">MapEntry</a> for iroh_blobs::store::fs::<a class="type" href="fs/type.Entry.html" title="type iroh_blobs::store::fs::Entry">Entry</a></h3></section></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.MapEntry.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-MapEntry-for-Entry" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#277-303">source</a><a href="#impl-MapEntry-for-Entry" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntry.html" title="trait iroh_blobs::store::MapEntry">MapEntry</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Entry.html" title="struct iroh_blobs::store::mem::Entry">Entry</a></h3></section><section id="impl-MapEntry-for-Entry-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#159-179">source</a><a href="#impl-MapEntry-for-Entry-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntry.html" title="trait iroh_blobs::store::MapEntry">MapEntry</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh_blobs::store::readonly_mem::Entry">Entry</a></h3></section><section id="impl-MapEntry-for-BaoFileHandle" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#469-491">source</a><a href="#impl-MapEntry-for-BaoFileHandle" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntry.html" title="trait iroh_blobs::store::MapEntry">MapEntry</a> for iroh_blobs::store::fs::<a class="type" href="fs/type.Entry.html" title="type iroh_blobs::store::fs::Entry">Entry</a></h3></section></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.MapEntry.js" async></script></section></div></main></body></html>
|
||||
@@ -7,4 +7,4 @@
|
||||
</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.batch_writer" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#122">source</a><h4 class="code-header">fn <a href="#tymethod.batch_writer" class="fn">batch_writer</a>(
|
||||
&self
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><impl <a class="trait" href="trait.BaoBatchWriter.html" title="trait iroh_blobs::store::BaoBatchWriter">BaoBatchWriter</a>>> + <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>Get a batch writer</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-MapEntryMut-for-Entry" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#300-304">source</a><a href="#impl-MapEntryMut-for-Entry" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntryMut.html" title="trait iroh_blobs::store::MapEntryMut">MapEntryMut</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Entry.html" title="struct iroh_blobs::store::mem::Entry">Entry</a></h3></section><section id="impl-MapEntryMut-for-Entry-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#265-285">source</a><a href="#impl-MapEntryMut-for-Entry-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntryMut.html" title="trait iroh_blobs::store::MapEntryMut">MapEntryMut</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh_blobs::store::readonly_mem::Entry">Entry</a></h3></section><section id="impl-MapEntryMut-for-BaoFileHandle" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#492-496">source</a><a href="#impl-MapEntryMut-for-BaoFileHandle" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntryMut.html" title="trait iroh_blobs::store::MapEntryMut">MapEntryMut</a> for iroh_blobs::store::fs::<a class="type" href="fs/type.Entry.html" title="type iroh_blobs::store::fs::Entry">Entry</a></h3></section></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.MapEntryMut.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-MapEntryMut-for-Entry" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/mem.rs.html#305-309">source</a><a href="#impl-MapEntryMut-for-Entry" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntryMut.html" title="trait iroh_blobs::store::MapEntryMut">MapEntryMut</a> for iroh_blobs::store::mem::<a class="struct" href="mem/struct.Entry.html" title="struct iroh_blobs::store::mem::Entry">Entry</a></h3></section><section id="impl-MapEntryMut-for-Entry-1" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/readonly_mem.rs.html#266-286">source</a><a href="#impl-MapEntryMut-for-Entry-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntryMut.html" title="trait iroh_blobs::store::MapEntryMut">MapEntryMut</a> for iroh_blobs::store::readonly_mem::<a class="struct" href="readonly_mem/struct.Entry.html" title="struct iroh_blobs::store::readonly_mem::Entry">Entry</a></h3></section><section id="impl-MapEntryMut-for-BaoFileHandle" class="impl"><a class="src rightside" href="../../src/iroh_blobs/store/fs.rs.html#493-497">source</a><a href="#impl-MapEntryMut-for-BaoFileHandle" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.MapEntryMut.html" title="trait iroh_blobs::store::MapEntryMut">MapEntryMut</a> for iroh_blobs::store::fs::<a class="type" href="fs/type.Entry.html" title="type iroh_blobs::store::fs::Entry">Entry</a></h3></section></div><script src="../../trait.impl/iroh_blobs/store/traits/trait.MapEntryMut.js" async></script></section></div></main></body></html>
|
||||
@@ -48,4 +48,4 @@ of the store the entry is present.</p>
|
||||
&self,
|
||||
entry: Self::<a class="associatedtype" href="trait.MapMut.html#associatedtype.EntryMut" title="type iroh_blobs::store::MapMut::EntryMut">EntryMut</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> + <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#1245-1267">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#1246-1268">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#359-408">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#192-221">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#1269-1304">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#1270-1305">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#410-464">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#223-264">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>
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The mutable part of a Bao store."><title>Store in iroh_blobs::store - 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.24.0</span></h2></div><h2 class="location"><a href="#">Store</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.create_tag">create_tag</a></li><li><a href="#tymethod.delete">delete</a></li><li><a href="#tymethod.gc_run">gc_run</a></li><li><a href="#tymethod.import_bytes">import_bytes</a></li><li><a href="#tymethod.import_file">import_file</a></li><li><a href="#tymethod.import_stream">import_stream</a></li><li><a href="#tymethod.set_tag">set_tag</a></li><li><a href="#tymethod.shutdown">shutdown</a></li><li><a href="#tymethod.sync">sync</a></li><li><a href="#tymethod.temp_tag">temp_tag</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.import_reader">import_reader</a></li><li><a href="#method.validate">validate</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In iroh_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>Trait <a href="../index.html">iroh_blobs</a>::<wbr><a href="index.html">store</a>::<wbr><a class="trait" href="#">Store</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/traits.rs.html#298-386">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Store: <a class="trait" href="trait.ReadableStore.html" title="trait iroh_blobs::store::ReadableStore">ReadableStore</a> + <a class="trait" href="trait.MapMut.html" title="trait iroh_blobs::store::MapMut">MapMut</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</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="The mutable part of a Bao store."><title>Store in iroh_blobs::store - 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.24.0</span></h2></div><h2 class="location"><a href="#">Store</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.create_tag">create_tag</a></li><li><a href="#tymethod.delete">delete</a></li><li><a href="#tymethod.gc_run">gc_run</a></li><li><a href="#tymethod.import_bytes">import_bytes</a></li><li><a href="#tymethod.import_file">import_file</a></li><li><a href="#tymethod.import_stream">import_stream</a></li><li><a href="#tymethod.set_tag">set_tag</a></li><li><a href="#tymethod.shutdown">shutdown</a></li><li><a href="#tymethod.sync">sync</a></li><li><a href="#tymethod.temp_tag">temp_tag</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.import_reader">import_reader</a></li><li><a href="#method.validate">validate</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In iroh_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>Trait <a href="../index.html">iroh_blobs</a>::<wbr><a href="index.html">store</a>::<wbr><a class="trait" href="#">Store</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/traits.rs.html#298-389">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Store: <a class="trait" href="trait.ReadableStore.html" title="trait iroh_blobs::store::ReadableStore">ReadableStore</a> + <a class="trait" href="trait.MapMut.html" title="trait iroh_blobs::store::MapMut">MapMut</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.import_file" class="fn">import_file</a>(
|
||||
&self,
|
||||
@@ -28,7 +28,13 @@
|
||||
hash: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="struct" href="../util/struct.Tag.html" title="struct iroh_blobs::util::Tag">Tag</a>>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.temp_tag" class="fn">temp_tag</a>(&self, value: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>) -> <a class="struct" href="../util/struct.TempTag.html" title="struct iroh_blobs::util::TempTag">TempTag</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.gc_run" class="fn">gc_run</a>(&self, config: <a class="struct" href="struct.GcConfig.html" title="struct iroh_blobs::store::GcConfig">GcConfig</a>) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.gc_run" class="fn">gc_run</a><G, Gut>(
|
||||
&self,
|
||||
config: <a class="struct" href="struct.GcConfig.html" title="struct iroh_blobs::store::GcConfig">GcConfig</a>,
|
||||
protected_cb: G
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>
|
||||
<span class="where">where G: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -> Gut,
|
||||
Gut: <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a>>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a></span>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.delete" class="fn">delete</a>(
|
||||
&self,
|
||||
hashes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a>>
|
||||
@@ -86,18 +92,24 @@ implementations might be able to import a file without copying it.</p>
|
||||
hash: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="struct" href="../util/struct.Tag.html" title="struct iroh_blobs::util::Tag">Tag</a>>> + <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>Create a new tag</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.temp_tag" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#357">source</a><h4 class="code-header">fn <a href="#tymethod.temp_tag" class="fn">temp_tag</a>(&self, value: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>) -> <a class="struct" href="../util/struct.TempTag.html" title="struct iroh_blobs::util::TempTag">TempTag</a></h4></section></summary><div class="docblock"><p>Create a temporary pin for this store</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.gc_run" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#362">source</a><h4 class="code-header">fn <a href="#tymethod.gc_run" class="fn">gc_run</a>(&self, config: <a class="struct" href="struct.GcConfig.html" title="struct iroh_blobs::store::GcConfig">GcConfig</a>) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Start the GC loop</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.gc_run" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#362-365">source</a><h4 class="code-header">fn <a href="#tymethod.gc_run" class="fn">gc_run</a><G, Gut>(
|
||||
&self,
|
||||
config: <a class="struct" href="struct.GcConfig.html" title="struct iroh_blobs::store::GcConfig">GcConfig</a>,
|
||||
protected_cb: G
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><div class="where">where
|
||||
G: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -> Gut,
|
||||
Gut: <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a>>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h4></section></summary><div class="docblock"><p>Start the GC loop</p>
|
||||
<p>The gc task will shut down, when dropping the returned future.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.delete" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#365">source</a><h4 class="code-header">fn <a href="#tymethod.delete" class="fn">delete</a>(&self, hashes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a>>) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> + <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>physically delete the given hashes from the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.shutdown" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#368">source</a><h4 class="code-header">fn <a href="#tymethod.shutdown" class="fn">shutdown</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> + <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>Shutdown the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.sync" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#371">source</a><h4 class="code-header">fn <a href="#tymethod.sync" class="fn">sync</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> + <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>Sync the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.delete" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#368">source</a><h4 class="code-header">fn <a href="#tymethod.delete" class="fn">delete</a>(&self, hashes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Hash.html" title="struct iroh_blobs::Hash">Hash</a>>) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> + <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>physically delete the given hashes from the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.shutdown" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#371">source</a><h4 class="code-header">fn <a href="#tymethod.shutdown" class="fn">shutdown</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> + <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>Shutdown the store.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.sync" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#374">source</a><h4 class="code-header">fn <a href="#tymethod.sync" class="fn">sync</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> + <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>Sync the store.</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.import_reader" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#336-344">source</a><h4 class="code-header">fn <a href="#method.import_reader" class="fn">import_reader</a>(
|
||||
&self,
|
||||
data: impl AsyncRead + <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="../enum.BlobFormat.html" title="enum iroh_blobs::BlobFormat">BlobFormat</a>,
|
||||
progress: impl <a class="trait" href="../util/progress/trait.ProgressSender.html" title="trait iroh_blobs::util::progress::ProgressSender">ProgressSender</a><Msg = <a class="enum" href="enum.ImportProgress.html" title="enum iroh_blobs::store::ImportProgress">ImportProgress</a>> + <a class="trait" href="../util/progress/trait.IdGenerator.html" title="trait iroh_blobs::util::progress::IdGenerator">IdGenerator</a>
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><(<a class="struct" href="../util/struct.TempTag.html" title="struct iroh_blobs::util::TempTag">TempTag</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)>> + <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>Import data from an async byte reader.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.validate" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#379-385">source</a><h4 class="code-header">fn <a href="#method.validate" class="fn">validate</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.validate" class="method"><a class="src rightside" href="../../src/iroh_blobs/store/traits.rs.html#382-388">source</a><h4 class="code-header">fn <a href="#method.validate" class="fn">validate</a>(
|
||||
&self,
|
||||
repair: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
tx: <a class="struct" href="../util/progress/struct.BoxedProgressSender.html" title="struct iroh_blobs::util::progress::BoxedProgressSender">BoxedProgressSender</a><<a class="enum" href="enum.ValidateProgress.html" title="enum iroh_blobs::store::ValidateProgress">ValidateProgress</a>>
|
||||
@@ -105,4 +117,4 @@ implementations might be able to import a file without copying it.</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#1306-1400">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#1307-1410">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#150-255">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#288-345">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>
|
||||
@@ -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>(&self, inner: &<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: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><Self>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Weak.html" title="struct alloc::sync::Weak">Weak</a><dyn <a class="trait" href="trait.TagDrop.html" title="trait iroh_blobs::util::TagDrop">TagDrop</a>></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: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><Self>, inner: <a class="struct" href="../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>) -> <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#757-761">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><TempCounterMap></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#758-760">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>(&self, content: &<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#758-762">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><TempCounterMap></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#759-761">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>(&self, content: &<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>(&self, inner: &<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#751-755">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><TempCounterMap></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#752-754">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>(&self, content: &<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#752-756">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><TempCounterMap></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#753-755">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>(&self, content: &<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>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -909,6 +909,33 @@
|
||||
<a href="#909" id="909">909</a>
|
||||
<a href="#910" id="910">910</a>
|
||||
<a href="#911" id="911">911</a>
|
||||
<a href="#912" id="912">912</a>
|
||||
<a href="#913" id="913">913</a>
|
||||
<a href="#914" id="914">914</a>
|
||||
<a href="#915" id="915">915</a>
|
||||
<a href="#916" id="916">916</a>
|
||||
<a href="#917" id="917">917</a>
|
||||
<a href="#918" id="918">918</a>
|
||||
<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>
|
||||
<a href="#924" id="924">924</a>
|
||||
<a href="#925" id="925">925</a>
|
||||
<a href="#926" id="926">926</a>
|
||||
<a href="#927" id="927">927</a>
|
||||
<a href="#928" id="928">928</a>
|
||||
<a href="#929" id="929">929</a>
|
||||
<a href="#930" id="930">930</a>
|
||||
<a href="#931" id="931">931</a>
|
||||
<a href="#932" id="932">932</a>
|
||||
<a href="#933" id="933">933</a>
|
||||
<a href="#934" id="934">934</a>
|
||||
<a href="#935" id="935">935</a>
|
||||
<a href="#936" id="936">936</a>
|
||||
<a href="#937" id="937">937</a>
|
||||
<a href="#938" id="938">938</a>
|
||||
</pre></div><pre class="rust"><code><span class="doccomment">//! Node API
|
||||
//!
|
||||
//! An iroh node is a server that is identified by an Ed25519 keypair and is
|
||||
@@ -1257,14 +1284,41 @@
|
||||
</span><span class="kw">if let </span>GcPolicy::Interval(gc_period) = gc_policy {
|
||||
<span class="kw">let </span>inner = <span class="self">self</span>.clone();
|
||||
<span class="kw">let </span>handle = local_pool.spawn(<span class="kw">move </span>|| <span class="kw">async move </span>{
|
||||
<span class="comment">// TODO: add protection for hashes from documents.
|
||||
|
||||
</span>inner
|
||||
<span class="kw">let </span>inner2 = inner.clone();
|
||||
inner
|
||||
.db
|
||||
.gc_run(iroh_blobs::store::GcConfig {
|
||||
period: gc_period,
|
||||
done_callback: gc_done_callback,
|
||||
})
|
||||
.gc_run(
|
||||
iroh_blobs::store::GcConfig {
|
||||
period: gc_period,
|
||||
done_callback: gc_done_callback,
|
||||
},
|
||||
<span class="kw">move </span>|| {
|
||||
<span class="kw">let </span>inner2 = inner2.clone();
|
||||
<span class="kw">async move </span>{
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>live = BTreeSet::default();
|
||||
<span class="kw">if let </span><span class="prelude-val">Some</span>(docs) = <span class="kw-2">&</span>inner2.docs {
|
||||
<span class="kw">let </span>doc_hashes = <span class="kw">match </span>docs.sync.content_hashes().<span class="kw">await </span>{
|
||||
<span class="prelude-val">Ok</span>(hashes) => hashes,
|
||||
<span class="prelude-val">Err</span>(err) => {
|
||||
<span class="macro">tracing::warn!</span>(<span class="string">"Error getting doc hashes: {}"</span>, err);
|
||||
<span class="kw">return </span>live;
|
||||
}
|
||||
};
|
||||
<span class="kw">for </span>hash <span class="kw">in </span>doc_hashes {
|
||||
<span class="kw">match </span>hash {
|
||||
<span class="prelude-val">Ok</span>(hash) => {
|
||||
live.insert(hash);
|
||||
}
|
||||
<span class="prelude-val">Err</span>(err) => {
|
||||
<span class="macro">tracing::error!</span>(<span class="string">"Error getting doc hash: {}"</span>, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
live
|
||||
}
|
||||
},
|
||||
)
|
||||
.<span class="kw">await</span>;
|
||||
});
|
||||
<span class="comment">// We cannot spawn tasks that run on the local pool directly into the join set,
|
||||
|
||||
@@ -2504,6 +2504,16 @@
|
||||
<a href="#2504" id="2504">2504</a>
|
||||
<a href="#2505" id="2505">2505</a>
|
||||
<a href="#2506" id="2506">2506</a>
|
||||
<a href="#2507" id="2507">2507</a>
|
||||
<a href="#2508" id="2508">2508</a>
|
||||
<a href="#2509" id="2509">2509</a>
|
||||
<a href="#2510" id="2510">2510</a>
|
||||
<a href="#2511" id="2511">2511</a>
|
||||
<a href="#2512" id="2512">2512</a>
|
||||
<a href="#2513" id="2513">2513</a>
|
||||
<a href="#2514" id="2514">2514</a>
|
||||
<a href="#2515" id="2515">2515</a>
|
||||
<a href="#2516" id="2516">2516</a>
|
||||
</pre></div><pre class="rust"><code><span class="doccomment">//! redb backed storage
|
||||
//!
|
||||
//! Data can get into the store in two ways:
|
||||
@@ -2571,6 +2581,7 @@
|
||||
//! errors when communicating with the actor.
|
||||
</span><span class="kw">use </span>std::{
|
||||
collections::{BTreeMap, BTreeSet},
|
||||
future::Future,
|
||||
io,
|
||||
path::{Path, PathBuf},
|
||||
sync::{Arc, RwLock},
|
||||
@@ -3880,15 +3891,24 @@
|
||||
<span class="prelude-val">Ok</span>(<span class="self">self</span>.<span class="number">0</span>.delete(hashes).<span class="kw">await</span><span class="question-mark">?</span>)
|
||||
}
|
||||
|
||||
<span class="kw">async fn </span>gc_run(<span class="kw-2">&</span><span class="self">self</span>, config: <span class="kw">super</span>::GcConfig) {
|
||||
<span class="kw">async fn </span>gc_run<G, Gut>(<span class="kw-2">&</span><span class="self">self</span>, config: <span class="kw">super</span>::GcConfig, protected_cb: G)
|
||||
<span class="kw">where
|
||||
</span>G: Fn() -> Gut,
|
||||
Gut: Future<Output = BTreeSet<Hash>> + Send,
|
||||
{
|
||||
<span class="kw">let </span>inner = <span class="self">self</span>.<span class="number">0</span>.clone();
|
||||
<span class="kw">super</span>::gc_run_loop(<span class="self">self</span>, config, <span class="kw">move </span>|| {
|
||||
<span class="kw">let </span>inner = inner.clone();
|
||||
<span class="kw">async move </span>{
|
||||
inner.gc_start().<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}
|
||||
})
|
||||
<span class="kw">super</span>::gc_run_loop(
|
||||
<span class="self">self</span>,
|
||||
config,
|
||||
<span class="kw">move </span>|| {
|
||||
<span class="kw">let </span>inner = inner.clone();
|
||||
<span class="kw">async move </span>{
|
||||
inner.gc_start().<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}
|
||||
},
|
||||
protected_cb,
|
||||
)
|
||||
.<span class="kw">await
|
||||
</span>}
|
||||
|
||||
|
||||
@@ -457,6 +457,11 @@
|
||||
<a href="#457" id="457">457</a>
|
||||
<a href="#458" id="458">458</a>
|
||||
<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>
|
||||
<a href="#464" id="464">464</a>
|
||||
</pre></div><pre class="rust"><code><span class="doccomment">//! A full in memory database for iroh-blobs
|
||||
//!
|
||||
//! Main entry point is [Store].
|
||||
@@ -469,7 +474,8 @@
|
||||
<span class="kw">use </span>iroh_base::hash::{BlobFormat, Hash, HashAndFormat};
|
||||
<span class="kw">use </span>iroh_io::AsyncSliceReader;
|
||||
<span class="kw">use </span>std::{
|
||||
collections::BTreeMap,
|
||||
collections::{BTreeMap, BTreeSet},
|
||||
future::Future,
|
||||
io,
|
||||
path::PathBuf,
|
||||
sync::{Arc, RwLock, RwLockReadGuard, RwLockWriteGuard},
|
||||
@@ -687,8 +693,12 @@
|
||||
<span class="self">self</span>.inner.temp_tag(tag)
|
||||
}
|
||||
|
||||
<span class="kw">async fn </span>gc_run(<span class="kw-2">&</span><span class="self">self</span>, config: <span class="kw">super</span>::GcConfig) {
|
||||
<span class="kw">super</span>::gc_run_loop(<span class="self">self</span>, config, <span class="kw">move </span>|| <span class="kw">async </span>{ <span class="prelude-val">Ok</span>(()) }).<span class="kw">await
|
||||
<span class="kw">async fn </span>gc_run<G, Gut>(<span class="kw-2">&</span><span class="self">self</span>, config: <span class="kw">super</span>::GcConfig, protected_cb: G)
|
||||
<span class="kw">where
|
||||
</span>G: Fn() -> Gut,
|
||||
Gut: Future<Output = BTreeSet<Hash>> + Send,
|
||||
{
|
||||
<span class="kw">super</span>::gc_run_loop(<span class="self">self</span>, config, <span class="kw">move </span>|| <span class="kw">async </span>{ <span class="prelude-val">Ok</span>(()) }, protected_cb).<span class="kw">await
|
||||
</span>}
|
||||
|
||||
<span class="kw">async fn </span>delete(<span class="kw-2">&</span><span class="self">self</span>, hashes: Vec<Hash>) -> io::Result<()> {
|
||||
|
||||
@@ -338,11 +338,17 @@
|
||||
<a href="#338" id="338">338</a>
|
||||
<a href="#339" id="339">339</a>
|
||||
<a href="#340" id="340">340</a>
|
||||
<a href="#341" id="341">341</a>
|
||||
<a href="#342" id="342">342</a>
|
||||
<a href="#343" id="343">343</a>
|
||||
<a href="#344" id="344">344</a>
|
||||
<a href="#345" id="345">345</a>
|
||||
</pre></div><pre class="rust"><code><span class="doccomment">//! A readonly in memory database for iroh-blobs, usable for testing and sharing static data.
|
||||
//!
|
||||
//! Main entry point is [Store].
|
||||
</span><span class="kw">use </span>std::{
|
||||
collections::{BTreeMap, HashMap},
|
||||
collections::{BTreeMap, BTreeSet, HashMap},
|
||||
future::Future,
|
||||
io,
|
||||
path::PathBuf,
|
||||
sync::Arc,
|
||||
@@ -664,8 +670,12 @@
|
||||
TempTag::new(inner, <span class="prelude-val">None</span>)
|
||||
}
|
||||
|
||||
<span class="kw">async fn </span>gc_run(<span class="kw-2">&</span><span class="self">self</span>, config: <span class="kw">super</span>::GcConfig) {
|
||||
<span class="kw">super</span>::gc_run_loop(<span class="self">self</span>, config, <span class="kw">move </span>|| <span class="kw">async </span>{ <span class="prelude-val">Ok</span>(()) }).<span class="kw">await
|
||||
<span class="kw">async fn </span>gc_run<G, Gut>(<span class="kw-2">&</span><span class="self">self</span>, config: <span class="kw">super</span>::GcConfig, protected_cb: G)
|
||||
<span class="kw">where
|
||||
</span>G: Fn() -> Gut,
|
||||
Gut: Future<Output = BTreeSet<Hash>> + Send,
|
||||
{
|
||||
<span class="kw">super</span>::gc_run_loop(<span class="self">self</span>, config, <span class="kw">move </span>|| <span class="kw">async </span>{ <span class="prelude-val">Ok</span>(()) }, protected_cb).<span class="kw">await
|
||||
</span>}
|
||||
|
||||
<span class="kw">async fn </span>delete(<span class="kw-2">&</span><span class="self">self</span>, _hashes: Vec<Hash>) -> io::Result<()> {
|
||||
|
||||
@@ -947,6 +947,18 @@
|
||||
<a href="#947" id="947">947</a>
|
||||
<a href="#948" id="948">948</a>
|
||||
<a href="#949" id="949">949</a>
|
||||
<a href="#950" id="950">950</a>
|
||||
<a href="#951" id="951">951</a>
|
||||
<a href="#952" id="952">952</a>
|
||||
<a href="#953" id="953">953</a>
|
||||
<a href="#954" id="954">954</a>
|
||||
<a href="#955" id="955">955</a>
|
||||
<a href="#956" id="956">956</a>
|
||||
<a href="#957" id="957">957</a>
|
||||
<a href="#958" id="958">958</a>
|
||||
<a href="#959" id="959">959</a>
|
||||
<a href="#960" id="960">960</a>
|
||||
<a href="#961" id="961">961</a>
|
||||
</pre></div><pre class="rust"><code><span class="doccomment">//! Traits for in-memory or persistent maps of blob with bao encoded outboards.
|
||||
</span><span class="kw">use </span>std::{collections::BTreeSet, future::Future, io, path::PathBuf, time::Duration};
|
||||
|
||||
@@ -1308,7 +1320,10 @@
|
||||
<span class="doccomment">/// Start the GC loop
|
||||
///
|
||||
/// The gc task will shut down, when dropping the returned future.
|
||||
</span><span class="kw">fn </span>gc_run(<span class="kw-2">&</span><span class="self">self</span>, config: GcConfig) -> <span class="kw">impl </span>Future<Output = ()>;
|
||||
</span><span class="kw">fn </span>gc_run<G, Gut>(<span class="kw-2">&</span><span class="self">self</span>, config: <span class="kw">super</span>::GcConfig, protected_cb: G) -> <span class="kw">impl </span>Future<Output = ()>
|
||||
<span class="kw">where
|
||||
</span>G: Fn() -> Gut,
|
||||
Gut: Future<Output = BTreeSet<Hash>> + Send;
|
||||
|
||||
<span class="doccomment">/// physically delete the given hashes from the store.
|
||||
</span><span class="kw">fn </span>delete(<span class="kw-2">&</span><span class="self">self</span>, hashes: Vec<Hash>) -> <span class="kw">impl </span>Future<Output = io::Result<()>> + Send;
|
||||
@@ -1471,16 +1486,22 @@
|
||||
<span class="doccomment">/// The period at which to execute the GC.
|
||||
</span><span class="kw">pub </span>period: Duration,
|
||||
<span class="doccomment">/// An optional callback called everytime a GC round finishes.
|
||||
</span><span class="attr">#[debug(<span class="string">"callback"</span>)]
|
||||
</span><span class="attr">#[debug(<span class="string">"done_callback"</span>)]
|
||||
</span><span class="kw">pub </span>done_callback: <span class="prelude-ty">Option</span><Box<<span class="kw">dyn </span>Fn() + Send>>,
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Implementation of the gc loop.
|
||||
</span><span class="kw">pub</span>(<span class="kw">super</span>) <span class="kw">async fn </span>gc_run_loop<S, F, Fut>(store: <span class="kw-2">&</span>S, config: GcConfig, start_cb: F)
|
||||
<span class="kw">where
|
||||
</span><span class="kw">pub</span>(<span class="kw">super</span>) <span class="kw">async fn </span>gc_run_loop<S, F, Fut, G, Gut>(
|
||||
store: <span class="kw-2">&</span>S,
|
||||
config: GcConfig,
|
||||
start_cb: F,
|
||||
protected_cb: G,
|
||||
) <span class="kw">where
|
||||
</span>S: Store,
|
||||
F: Fn() -> Fut,
|
||||
Fut: Future<Output = io::Result<()>> + Send + <span class="lifetime">'static</span>,
|
||||
G: Fn() -> Gut,
|
||||
Gut: Future<Output = BTreeSet<Hash>> + Send,
|
||||
{
|
||||
<span class="macro">tracing::info!</span>(<span class="string">"Starting GC task with interval {:?}"</span>, config.period);
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>live = BTreeSet::new();
|
||||
@@ -1494,6 +1515,9 @@
|
||||
<span class="macro">tracing::debug!</span>(<span class="string">"Starting GC"</span>);
|
||||
live.clear();
|
||||
|
||||
<span class="kw">let </span>p = protected_cb().<span class="kw">await</span>;
|
||||
live.extend(p);
|
||||
|
||||
<span class="macro">tracing::debug!</span>(<span class="string">"Starting GC mark phase"</span>);
|
||||
<span class="kw">let </span>live_ref = <span class="kw-2">&mut </span>live;
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>stream = Gen::new(|co| <span class="kw">async move </span>{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"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;}})()
|
||||
Reference in New Issue
Block a user