|
24 | 24 | &self, |
25 | 25 | conn: impl <a class="trait" href="trait.GetConnection.html" title="trait iroh_blobs::api::remote::GetConnection">GetConnection</a>, |
26 | 26 | content: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../struct.HashAndFormat.html" title="struct iroh_blobs::HashAndFormat">HashAndFormat</a>>, |
27 | | - progress: impl Sink<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, Error = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>, |
| 27 | + progress: impl <a class="trait" href="../../util/sink/trait.Sink.html" title="trait iroh_blobs::util::sink::Sink">Sink</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, Error = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>, |
28 | 28 | ) -> <a class="type" href="../../get/type.GetResult.html" title="type iroh_blobs::get::GetResult">GetResult</a><<a class="struct" href="../../get/struct.Stats.html" title="struct iroh_blobs::get::Stats">Stats</a>></h4></section></summary><div class="docblock"><p>Get a blob or hash sequence from the given connection, taking the locally available |
29 | 29 | ranges into account.</p> |
30 | 30 | <p>You can provide a progress channel to get updates on the download progress. This progress |
|
42 | 42 | &self, |
43 | 43 | conn: Connection, |
44 | 44 | request: <a class="struct" href="../../protocol/struct.PushRequest.html" title="struct iroh_blobs::protocol::PushRequest">PushRequest</a>, |
45 | | - progress: impl Sink<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, Error = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>, |
| 45 | + progress: impl <a class="trait" href="../../util/sink/trait.Sink.html" title="trait iroh_blobs::util::sink::Sink">Sink</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, Error = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>, |
46 | 46 | ) -> <a class="type" href="https://docs.rs/anyhow/1.0.98/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../../get/struct.Stats.html" title="struct iroh_blobs::get::Stats">Stats</a>></h4></section></summary><div class="docblock"><p>Push the given blob or hash sequence to a remote node.</p> |
47 | 47 | <p>Note that many nodes will reject push requests. Also, this is an experimental feature for now.</p> |
48 | 48 | </div></details><section id="method.execute_get" class="method"><a class="src rightside" href="../../../src/iroh_blobs/api/remote.rs.html#628-630">Source</a><h4 class="code-header">pub fn <a href="#method.execute_get" class="fn">execute_get</a>(&self, conn: Connection, request: <a class="struct" href="../../protocol/struct.GetRequest.html" title="struct iroh_blobs::protocol::GetRequest">GetRequest</a>) -> <a class="struct" href="struct.GetProgress.html" title="struct iroh_blobs::api::remote::GetProgress">GetProgress</a></h4></section><section id="method.execute_get_with_opts" class="method"><a class="src rightside" href="../../../src/iroh_blobs/api/remote.rs.html#632-647">Source</a><h4 class="code-header">pub fn <a href="#method.execute_get_with_opts" class="fn">execute_get_with_opts</a>( |
|
53 | 53 | &self, |
54 | 54 | conn: Connection, |
55 | 55 | request: <a class="struct" href="../../protocol/struct.GetRequest.html" title="struct iroh_blobs::protocol::GetRequest">GetRequest</a>, |
56 | | - progress: impl Sink<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, Error = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>, |
| 56 | + progress: impl <a class="trait" href="../../util/sink/trait.Sink.html" title="trait iroh_blobs::util::sink::Sink">Sink</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, Error = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>, |
57 | 57 | ) -> <a class="type" href="../../get/type.GetResult.html" title="type iroh_blobs::get::GetResult">GetResult</a><<a class="struct" href="../../get/struct.Stats.html" title="struct iroh_blobs::get::Stats">Stats</a>></h4></section></summary><div class="docblock"><p>Execute a get request <em>without</em> taking the locally available ranges into account.</p> |
58 | 58 | <p>You can provide a progress channel to get updates on the download progress. This progress |
59 | 59 | is the aggregated number of downloaded payload bytes in the request.</p> |
|
67 | 67 | &self, |
68 | 68 | conn: Connection, |
69 | 69 | request: <a class="struct" href="../../protocol/struct.GetManyRequest.html" title="struct iroh_blobs::protocol::GetManyRequest">GetManyRequest</a>, |
70 | | - progress: impl Sink<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, Error = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>, |
| 70 | + progress: impl <a class="trait" href="../../util/sink/trait.Sink.html" title="trait iroh_blobs::util::sink::Sink">Sink</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>, Error = <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>, |
71 | 71 | ) -> <a class="type" href="../../get/type.GetResult.html" title="type iroh_blobs::get::GetResult">GetResult</a><<a class="struct" href="../../get/struct.Stats.html" title="struct iroh_blobs::get::Stats">Stats</a>></h4></section></summary><div class="docblock"><p>Execute a get request <em>without</em> taking the locally available ranges into account.</p> |
72 | 72 | <p>You can provide a progress channel to get updates on the download progress. This progress |
73 | 73 | is the aggregated number of downloaded payload bytes in the request.</p> |
|
0 commit comments