|
3 | 3 | </div></details><details class="toggle method-toggle" open><summary><section id="method.bytes_read" class="method"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#23-25">Source</a><h4 class="code-header">pub fn <a href="#method.bytes_read" class="fn">bytes_read</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></h4></section></summary><div class="docblock"><p>Get the number of bytes read</p>
|
4 | 4 | </div></details><details class="toggle method-toggle" open><summary><section id="method.into_parts" class="method"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#28-30">Source</a><h4 class="code-header">pub fn <a href="#method.into_parts" class="fn">into_parts</a>(self) -> (R, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)</h4></section></summary><div class="docblock"><p>Get the inner reader</p>
|
5 | 5 | </div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-AsyncStreamReader-for-TrackingReader%3CR%3E" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#33-48">Source</a><a href="#impl-AsyncStreamReader-for-TrackingReader%3CR%3E" class="anchor">§</a><h3 class="code-header">impl<R> AsyncStreamReader for <a class="struct" href="struct.TrackingReader.html" title="struct iroh_blobs::util::io::TrackingReader">TrackingReader</a><R><div class="where">where
|
6 |
| - R: AsyncStreamReader,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.read_bytes" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#37-41">Source</a><a href="#method.read_bytes" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">read_bytes</a>(&mut self, len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><Bytes></h4></section></summary><div class='docblock'>Read at most <code>len</code> bytes. To read to the end, pass u64::MAX. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.read" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#43-47">Source</a><a href="#method.read" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">read</a><const L: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>(&mut self) -> <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.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">L</a>]></h4></section></summary><div class='docblock'>Read a fixed size buffer. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-TrackingReader%3CR%3E" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#9">Source</a><a href="#impl-Debug-for-TrackingReader%3CR%3E" class="anchor">§</a><h3 class="code-header">impl<R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.TrackingReader.html" title="struct iroh_blobs::util::io::TrackingReader">TrackingReader</a><R></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#9">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-TrackingReader%3CR%3E" class="impl"><a href="#impl-Freeze-for-TrackingReader%3CR%3E" class="anchor">§</a><h3 class="code-header">impl<R> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.TrackingReader.html" title="struct iroh_blobs::util::io::TrackingReader">TrackingReader</a><R><div class="where">where |
| 6 | + R: AsyncStreamReader,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.read_bytes" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#37-41">Source</a><a href="#method.read_bytes" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">read_bytes</a>(&mut self, len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><Bytes></h4></section></summary><div class='docblock'>Read at most <code>len</code> bytes. To read to the end, pass u64::MAX. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.read" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#43-47">Source</a><a href="#method.read" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">read</a><const L: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>(&mut self) -> <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.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">L</a>]></h4></section></summary><div class='docblock'>Read a fixed size buffer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.read_bytes_exact" class="method trait-impl"><a href="#method.read_bytes_exact" class="anchor">§</a><h4 class="code-header">fn <a class="fn">read_bytes_exact</a>( |
| 7 | + &mut self, |
| 8 | + len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, |
| 9 | +) -> 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><Bytes, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>>></h4></section></summary><div class='docblock'>Variant of read_bytes that returns an error if less than <code>len</code> bytes are read.</div></details><details class="toggle method-toggle" open><summary><section id="method.read_exact" class="method trait-impl"><a href="#method.read_exact" class="anchor">§</a><h4 class="code-header">fn <a class="fn">read_exact</a><const L: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>( |
| 10 | + &mut self, |
| 11 | +) -> 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.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">L</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>>></h4></section></summary><div class='docblock'>Variant of read that returns an error if less than <code>L</code> bytes are read.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-TrackingReader%3CR%3E" class="impl"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#9">Source</a><a href="#impl-Debug-for-TrackingReader%3CR%3E" class="anchor">§</a><h3 class="code-header">impl<R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.TrackingReader.html" title="struct iroh_blobs::util::io::TrackingReader">TrackingReader</a><R></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../../src/iroh_blobs/util/io.rs.html#9">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-TrackingReader%3CR%3E" class="impl"><a href="#impl-Freeze-for-TrackingReader%3CR%3E" class="anchor">§</a><h3 class="code-header">impl<R> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.TrackingReader.html" title="struct iroh_blobs::util::io::TrackingReader">TrackingReader</a><R><div class="where">where |
7 | 12 | R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-TrackingReader%3CR%3E" class="impl"><a href="#impl-RefUnwindSafe-for-TrackingReader%3CR%3E" class="anchor">§</a><h3 class="code-header">impl<R> <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.TrackingReader.html" title="struct iroh_blobs::util::io::TrackingReader">TrackingReader</a><R><div class="where">where
|
8 | 13 | R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Send-for-TrackingReader%3CR%3E" class="impl"><a href="#impl-Send-for-TrackingReader%3CR%3E" class="anchor">§</a><h3 class="code-header">impl<R> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.TrackingReader.html" title="struct iroh_blobs::util::io::TrackingReader">TrackingReader</a><R><div class="where">where
|
9 | 14 | R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-TrackingReader%3CR%3E" class="impl"><a href="#impl-Sync-for-TrackingReader%3CR%3E" class="anchor">§</a><h3 class="code-header">impl<R> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.TrackingReader.html" title="struct iroh_blobs::util::io::TrackingReader">TrackingReader</a><R><div class="where">where
|
|
0 commit comments