This commit is contained in:
robin-nitrokey
2024-06-03 08:15:41 +00:00
parent 77e926bc63
commit 4e76a67c28
27 changed files with 208 additions and 198 deletions
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 -1
View File
@@ -8,4 +8,4 @@
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The <code>Read</code> trait allows for reading bytes from a file.</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.read" class="method"><a class="src rightside" href="../../src/littlefs2/io.rs.html#11">source</a><h4 class="code-header">fn <a href="#tymethod.read" class="fn">read</a>(&amp;self, buf: &amp;mut [<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>]) -&gt; <a class="type" href="type.Result.html" title="type littlefs2::io::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div class="docblock"><p>Read at most buf.len() bytes.
Upon success, return how many bytes were read.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.read_exact" class="method"><a class="src rightside" href="../../src/littlefs2/io.rs.html#13-22">source</a><h4 class="code-header">fn <a href="#method.read_exact" class="fn">read_exact</a>(&amp;self, buf: &amp;mut [<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>]) -&gt; <a class="type" href="type.Result.html" title="type littlefs2::io::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>&gt;</h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Read-for-File%3C'_,+'_,+S%3E" class="impl"><a class="src rightside" href="../../src/littlefs2/fs.rs.html#944-959">source</a><a href="#impl-Read-for-File%3C'_,+'_,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S: <a class="trait" href="../driver/trait.Storage.html" title="trait littlefs2::driver::Storage">Storage</a>&gt; <a class="trait" href="trait.Read.html" title="trait littlefs2::io::Read">Read</a> for <a class="struct" href="../fs/struct.File.html" title="struct littlefs2::fs::File">File</a>&lt;'_, '_, S&gt;</h3></section></div><script src="../../trait.impl/littlefs2/io/trait.Read.js" async></script></section></div></main></body></html>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.read_exact" class="method"><a class="src rightside" href="../../src/littlefs2/io.rs.html#13-22">source</a><h4 class="code-header">fn <a href="#method.read_exact" class="fn">read_exact</a>(&amp;self, buf: &amp;mut [<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>]) -&gt; <a class="type" href="type.Result.html" title="type littlefs2::io::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>&gt;</h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Read-for-File%3C'_,+'_,+S%3E" class="impl"><a class="src rightside" href="../../src/littlefs2/fs.rs.html#945-960">source</a><a href="#impl-Read-for-File%3C'_,+'_,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S: <a class="trait" href="../driver/trait.Storage.html" title="trait littlefs2::driver::Storage">Storage</a>&gt; <a class="trait" href="trait.Read.html" title="trait littlefs2::io::Read">Read</a> for <a class="struct" href="../fs/struct.File.html" title="struct littlefs2::fs::File">File</a>&lt;'_, '_, S&gt;</h3></section></div><script src="../../trait.impl/littlefs2/io/trait.Read.js" async></script></section></div></main></body></html>
+1 -1
View File
@@ -6,4 +6,4 @@
<p>It is possible to seek relative to either end or the current offset.</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.seek" class="method"><a class="src rightside" href="../../src/littlefs2/io.rs.html#110">source</a><h4 class="code-header">fn <a href="#tymethod.seek" class="fn">seek</a>(&amp;self, pos: <a class="enum" href="enum.SeekFrom.html" title="enum littlefs2::io::SeekFrom">SeekFrom</a>) -&gt; <a class="type" href="type.Result.html" title="type littlefs2::io::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.usize.html">usize</a>&gt;</h4></section></summary><div class="docblock"><p>Seek to an offset in bytes.
If successful, returns the new position from start of file.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Seek-for-File%3C'_,+'_,+S%3E" class="impl"><a class="src rightside" href="../../src/littlefs2/fs.rs.html#961-976">source</a><a href="#impl-Seek-for-File%3C'_,+'_,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S: <a class="trait" href="../driver/trait.Storage.html" title="trait littlefs2::driver::Storage">Storage</a>&gt; <a class="trait" href="trait.Seek.html" title="trait littlefs2::io::Seek">Seek</a> for <a class="struct" href="../fs/struct.File.html" title="struct littlefs2::fs::File">File</a>&lt;'_, '_, S&gt;</h3></section></div><script src="../../trait.impl/littlefs2/io/trait.Seek.js" async></script></section></div></main></body></html>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Seek-for-File%3C'_,+'_,+S%3E" class="impl"><a class="src rightside" href="../../src/littlefs2/fs.rs.html#962-977">source</a><a href="#impl-Seek-for-File%3C'_,+'_,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S: <a class="trait" href="../driver/trait.Storage.html" title="trait littlefs2::driver::Storage">Storage</a>&gt; <a class="trait" href="trait.Seek.html" title="trait littlefs2::io::Seek">Seek</a> for <a class="struct" href="../fs/struct.File.html" title="struct littlefs2::fs::File">File</a>&lt;'_, '_, S&gt;</h3></section></div><script src="../../trait.impl/littlefs2/io/trait.Seek.js" async></script></section></div></main></body></html>
+1 -1
View File
@@ -15,4 +15,4 @@ The file will not necessarily be updated unless
flush is called as there is a cache.
Upon success, return how many bytes were written.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.flush" class="method"><a class="src rightside" href="../../src/littlefs2/io.rs.html#39">source</a><h4 class="code-header">fn <a href="#tymethod.flush" class="fn">flush</a>(&amp;self) -&gt; <a class="type" href="type.Result.html" title="type littlefs2::io::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Write out all pending writes to storage.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.write_all" class="method"><a class="src rightside" href="../../src/littlefs2/io.rs.html#41-53">source</a><h4 class="code-header">fn <a href="#method.write_all" class="fn">write_all</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>]) -&gt; <a class="type" href="type.Result.html" title="type littlefs2::io::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>&gt;</h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Write-for-File%3C'_,+'_,+S%3E" class="impl"><a class="src rightside" href="../../src/littlefs2/fs.rs.html#978-997">source</a><a href="#impl-Write-for-File%3C'_,+'_,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S: <a class="trait" href="../driver/trait.Storage.html" title="trait littlefs2::driver::Storage">Storage</a>&gt; <a class="trait" href="trait.Write.html" title="trait littlefs2::io::Write">Write</a> for <a class="struct" href="../fs/struct.File.html" title="struct littlefs2::fs::File">File</a>&lt;'_, '_, S&gt;</h3></section></div><script src="../../trait.impl/littlefs2/io/trait.Write.js" async></script></section></div></main></body></html>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.write_all" class="method"><a class="src rightside" href="../../src/littlefs2/io.rs.html#41-53">source</a><h4 class="code-header">fn <a href="#method.write_all" class="fn">write_all</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.u8.html">u8</a>]) -&gt; <a class="type" href="type.Result.html" title="type littlefs2::io::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.78.0/core/primitive.unit.html">()</a>&gt;</h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Write-for-File%3C'_,+'_,+S%3E" class="impl"><a class="src rightside" href="../../src/littlefs2/fs.rs.html#979-998">source</a><a href="#impl-Write-for-File%3C'_,+'_,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S: <a class="trait" href="../driver/trait.Storage.html" title="trait littlefs2::driver::Storage">Storage</a>&gt; <a class="trait" href="trait.Write.html" title="trait littlefs2::io::Write">Write</a> for <a class="struct" href="../fs/struct.File.html" title="struct littlefs2::fs::File">File</a>&lt;'_, '_, S&gt;</h3></section></div><script src="../../trait.impl/littlefs2/io/trait.Write.js" async></script></section></div></main></body></html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More