| <!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 reference to an open Sgxfile on the filesystem."><meta name="keywords" content="rust, rustlang, rust-lang, SgxFile"><title>SgxFile in sgx_tprotected_fs - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc struct"><!--[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">☰</button><a class="sidebar-logo" href="../sgx_tprotected_fs/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../sgx_tprotected_fs/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">SgxFile</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.append">append</a></li><li><a href="#method.append_integrity_only">append_integrity_only</a></li><li><a href="#method.append_with">append_with</a></li><li><a href="#method.append_with_key">append_with_key</a></li><li><a href="#method.clear_cache">clear_cache</a></li><li><a href="#method.clear_error">clear_error</a></li><li><a href="#method.create">create</a></li><li><a href="#method.create_integrity_only">create_integrity_only</a></li><li><a href="#method.create_with">create_with</a></li><li><a href="#method.create_with_key">create_with_key</a></li><li><a href="#method.file_size">file_size</a></li><li><a href="#method.get_mac">get_mac</a></li><li><a href="#method.is_eof">is_eof</a></li><li><a href="#method.open">open</a></li><li><a href="#method.open_integrity_only">open_integrity_only</a></li><li><a href="#method.open_with">open_with</a></li><li><a href="#method.open_with_key">open_with_key</a></li><li><a href="#method.options">options</a></li><li><a href="#method.rename">rename</a></li><li><a href="#method.set_len">set_len</a></li><li><a href="#method.tell">tell</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-FileExt-for-SgxFile">FileExt</a></li><li><a href="#impl-Map-for-SgxFile">Map</a></li><li><a href="#impl-Read-for-%26SgxFile">Read</a></li><li><a href="#impl-Read-for-SgxFile">Read</a></li><li><a href="#impl-Seek-for-%26SgxFile">Seek</a></li><li><a href="#impl-Seek-for-SgxFile">Seek</a></li><li><a href="#impl-Write-for-%26SgxFile">Write</a></li><li><a href="#impl-Write-for-SgxFile">Write</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-SgxFile">RefUnwindSafe</a></li><li><a href="#impl-Send-for-SgxFile">!Send</a></li><li><a href="#impl-Sync-for-SgxFile">!Sync</a></li><li><a href="#impl-Unpin-for-SgxFile">Unpin</a></li><li><a href="#impl-UnwindSafe-for-SgxFile">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-SgxFile">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-SgxFile">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-SgxFile">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-SgxFile">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-SgxFile">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E-for-SgxFile">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-SgxFile">TryInto<U></a></li></ul></section><h2><a href="index.html">In sgx_tprotected_fs</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="index.html">sgx_tprotected_fs</a>::<wbr><a class="struct" href="#">SgxFile</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/sgx_tprotected_fs/fs.rs.html#55-57">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct SgxFile { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A reference to an open Sgxfile on the filesystem.</p> |
| <p>An instance of a <code>SgxFile</code> can be read and/or written depending on what options |
| it was opened with. SgxFiles also implement [<code>Seek</code>] to alter the logical cursor |
| that the file contains internally.</p> |
| <p>SgxFiles are automatically closed when they go out of scope.</p> |
| </div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-SgxFile" class="impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#126-243">source</a><a href="#impl-SgxFile" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section></summary><div class="impl-items"><section id="method.open" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#128-130">source</a><h4 class="code-header">pub fn <a href="#method.open" class="fnname">open</a><P: AsRef<Path>>(path: P) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.create" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#133-135">source</a><h4 class="code-header">pub fn <a href="#method.create" class="fnname">create</a><P: AsRef<Path>>(path: P) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.append" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#138-140">source</a><h4 class="code-header">pub fn <a href="#method.append" class="fnname">append</a><P: AsRef<Path>>(path: P) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.open_with_key" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#142-146">source</a><h4 class="code-header">pub fn <a href="#method.open_with_key" class="fnname">open_with_key</a><P: AsRef<Path>>(path: P, key: <a class="type" href="../sgx_types/types/crypto/type.Key128bit.html" title="type sgx_types::types::crypto::Key128bit">Key128bit</a>) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.create_with_key" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#148-152">source</a><h4 class="code-header">pub fn <a href="#method.create_with_key" class="fnname">create_with_key</a><P: AsRef<Path>>(<br> path: P,<br> key: <a class="type" href="../sgx_types/types/crypto/type.Key128bit.html" title="type sgx_types::types::crypto::Key128bit">Key128bit</a><br>) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.append_with_key" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#154-158">source</a><h4 class="code-header">pub fn <a href="#method.append_with_key" class="fnname">append_with_key</a><P: AsRef<Path>>(<br> path: P,<br> key: <a class="type" href="../sgx_types/types/crypto/type.Key128bit.html" title="type sgx_types::types::crypto::Key128bit">Key128bit</a><br>) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.open_integrity_only" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#160-164">source</a><h4 class="code-header">pub fn <a href="#method.open_integrity_only" class="fnname">open_integrity_only</a><P: AsRef<Path>>(path: P) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.create_integrity_only" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#166-170">source</a><h4 class="code-header">pub fn <a href="#method.create_integrity_only" class="fnname">create_integrity_only</a><P: AsRef<Path>>(path: P) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.append_integrity_only" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#172-176">source</a><h4 class="code-header">pub fn <a href="#method.append_integrity_only" class="fnname">append_integrity_only</a><P: AsRef<Path>>(path: P) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.open_with" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#178-186">source</a><h4 class="code-header">pub fn <a href="#method.open_with" class="fnname">open_with</a><P: AsRef<Path>>(<br> path: P,<br> encrypt_mode: <a class="struct" href="struct.EncryptMode.html" title="struct sgx_tprotected_fs::EncryptMode">EncryptMode</a>,<br> cache_size: Option<usize><br>) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.create_with" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#188-196">source</a><h4 class="code-header">pub fn <a href="#method.create_with" class="fnname">create_with</a><P: AsRef<Path>>(<br> path: P,<br> encrypt_mode: <a class="struct" href="struct.EncryptMode.html" title="struct sgx_tprotected_fs::EncryptMode">EncryptMode</a>,<br> cache_size: Option<usize><br>) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.append_with" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#198-206">source</a><h4 class="code-header">pub fn <a href="#method.append_with" class="fnname">append_with</a><P: AsRef<Path>>(<br> path: P,<br> encrypt_mode: <a class="struct" href="struct.EncryptMode.html" title="struct sgx_tprotected_fs::EncryptMode">EncryptMode</a>,<br> cache_size: Option<usize><br>) -> Result<<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a>></h4></section><section id="method.options" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#208-210">source</a><h4 class="code-header">pub fn <a href="#method.options" class="fnname">options</a>() -> <a class="struct" href="struct.OpenOptions.html" title="struct sgx_tprotected_fs::OpenOptions">OpenOptions</a></h4></section><section id="method.set_len" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#212-214">source</a><h4 class="code-header">pub fn <a href="#method.set_len" class="fnname">set_len</a>(&self, size: u64) -> Result<()></h4></section><section id="method.tell" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#216-218">source</a><h4 class="code-header">pub fn <a href="#method.tell" class="fnname">tell</a>(&self) -> Result<u64></h4></section><section id="method.file_size" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#220-222">source</a><h4 class="code-header">pub fn <a href="#method.file_size" class="fnname">file_size</a>(&self) -> Result<u64></h4></section><section id="method.is_eof" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#224-226">source</a><h4 class="code-header">pub fn <a href="#method.is_eof" class="fnname">is_eof</a>(&self) -> bool</h4></section><section id="method.clear_error" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#228-230">source</a><h4 class="code-header">pub fn <a href="#method.clear_error" class="fnname">clear_error</a>(&self) -> Result<()></h4></section><section id="method.clear_cache" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#232-234">source</a><h4 class="code-header">pub fn <a href="#method.clear_cache" class="fnname">clear_cache</a>(&self) -> Result<()></h4></section><section id="method.get_mac" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#236-238">source</a><h4 class="code-header">pub fn <a href="#method.get_mac" class="fnname">get_mac</a>(&self) -> Result<<a class="type" href="../sgx_types/types/crypto/type.Mac128bit.html" title="type sgx_types::types::crypto::Mac128bit">Mac128bit</a>></h4></section><section id="method.rename" class="method has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#240-242">source</a><h4 class="code-header">pub fn <a href="#method.rename" class="fnname">rename</a><P: AsRef<str>>(&mut self, old_name: P, new_name: P) -> Result<()></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FileExt-for-SgxFile" class="impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#296-304">source</a><a href="#impl-FileExt-for-SgxFile" class="anchor"></a><h3 class="code-header">impl FileExt for <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_at" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#297-299">source</a><a href="#method.read_at" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_at</a>(&self, buf: &mut [u8], offset: u64) -> Result<usize></h4></section></summary><div class='docblock'>Reads a number of bytes starting from a given offset. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_at" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#301-303">source</a><a href="#method.write_at" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_at</a>(&self, buf: &[u8], offset: u64) -> Result<usize></h4></section></summary><div class='docblock'>Writes a number of bytes starting from a given offset. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_exact_at" class="method trait-impl has-srclink"><a href="#method.read_exact_at" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_exact_at</a>(&self, buf: &mut [u8], offset: u64) -> Result<(), Error></h4></section></summary><div class='docblock'>Reads the exact number of byte required to fill <code>buf</code> from the given offset. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_all_at" class="method trait-impl has-srclink"><a href="#method.write_all_at" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_all_at</a>(&self, buf: &[u8], offset: u64) -> Result<(), Error></h4></section></summary><div class='docblock'>Attempts to write an entire buffer starting from a given offset. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Map-for-SgxFile" class="impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#307-324">source</a><a href="#impl-Map-for-SgxFile" class="anchor"></a><h3 class="code-header">impl Map for <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_at-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#308-312">source</a><a href="#method.read_at-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_at</a>(&self, buf: &mut [u8], offset: usize) -> <a class="type" href="../sgx_types/error/type.OsResult.html" title="type sgx_types::error::OsResult">OsResult</a><usize></h4></section></summary><div class='docblock'>Reads a number of bytes starting from a given offset. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_at-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#313-317">source</a><a href="#method.write_at-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_at</a>(&self, buf: &[u8], offset: usize) -> <a class="type" href="../sgx_types/error/type.OsResult.html" title="type sgx_types::error::OsResult">OsResult</a><usize></h4></section></summary><div class='docblock'>Writes a number of bytes starting from a given offset. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.flush-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#319-323">source</a><a href="#method.flush-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">flush</a>(&self) -> <a class="type" href="../sgx_types/error/type.OsResult.html" title="type sgx_types::error::OsResult">OsResult</a></h4></section></summary><div class='docblock'>Flush this map obejct, ensuring that all intermediately buffered |
| contents reach their destination. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Read-for-%26SgxFile" class="impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#275-279">source</a><a href="#impl-Read-for-%26SgxFile" class="anchor"></a><h3 class="code-header">impl Read for &<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#276-278">source</a><a href="#method.read-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read</a>(&mut self, buf: &mut [u8]) -> Result<usize></h4></section></summary><div class='docblock'>Pull some bytes from this source into the specified buffer, returning |
| how many bytes were read. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_vectored-1" class="method trait-impl has-srclink"><a href="#method.read_vectored-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_vectored</a>(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error></h4></section></summary><div class='docblock'>Like <code>read</code>, except that it reads into a slice of buffers. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_read_vectored-1" class="method trait-impl has-srclink"><a href="#method.is_read_vectored-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">is_read_vectored</a>(&self) -> bool</h4></section></summary><div class='docblock'>Determines if this <code>Read</code>er has an efficient <code>read_vectored</code> |
| implementation. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_to_end-1" class="method trait-impl has-srclink"><a href="#method.read_to_end-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_to_end</a>(&mut self, buf: &mut Vec<u8, Global>) -> Result<usize, Error></h4></section></summary><div class='docblock'>Read all bytes until EOF in this source, placing them into <code>buf</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_to_string-1" class="method trait-impl has-srclink"><a href="#method.read_to_string-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_to_string</a>(&mut self, buf: &mut String) -> Result<usize, Error></h4></section></summary><div class='docblock'>Read all bytes until EOF in this source, appending them to <code>buf</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_exact-1" class="method trait-impl has-srclink"><a href="#method.read_exact-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_exact</a>(&mut self, buf: &mut [u8]) -> Result<(), Error></h4></section></summary><div class='docblock'>Read the exact number of bytes required to fill <code>buf</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_buf-1" class="method trait-impl has-srclink"><a href="#method.read_buf-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_buf</a>(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error></h4></section></summary><div class='docblock'>Pull some bytes from this source into the specified buffer. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_buf_exact-1" class="method trait-impl has-srclink"><a href="#method.read_buf_exact-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_buf_exact</a>(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error></h4></section></summary><div class='docblock'>Read the exact number of bytes required to fill <code>cursor</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.by_ref-2" class="method trait-impl has-srclink"><a href="#method.by_ref-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">by_ref</a>(&mut self) -> &mut Self</h4></section></summary><div class='docblock'>Creates a “by reference” adaptor for this instance of <code>Read</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.bytes-1" class="method trait-impl has-srclink"><a href="#method.bytes-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">bytes</a>(self) -> Bytes<Self></h4></section></summary><div class='docblock'>Transforms this <code>Read</code> instance to an [<code>Iterator</code>] over its bytes. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.chain-1" class="method trait-impl has-srclink"><a href="#method.chain-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">chain</a><R>(self, next: R) -> Chain<Self, R><span class="where fmt-newline">where<br> R: Read,</span></h4></section></summary><div class='docblock'>Creates an adapter which will chain this stream with another. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.take-1" class="method trait-impl has-srclink"><a href="#method.take-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">take</a>(self, limit: u64) -> Take<Self></h4></section></summary><div class='docblock'>Creates an adapter which will read at most <code>limit</code> bytes from it. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Read-for-SgxFile" class="impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#254-258">source</a><a href="#impl-Read-for-SgxFile" class="anchor"></a><h3 class="code-header">impl Read for <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#255-257">source</a><a href="#method.read" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read</a>(&mut self, buf: &mut [u8]) -> Result<usize></h4></section></summary><div class='docblock'>Pull some bytes from this source into the specified buffer, returning |
| how many bytes were read. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_vectored" class="method trait-impl has-srclink"><a href="#method.read_vectored" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_vectored</a>(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error></h4></section></summary><div class='docblock'>Like <code>read</code>, except that it reads into a slice of buffers. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_read_vectored" class="method trait-impl has-srclink"><a href="#method.is_read_vectored" class="anchor"></a><h4 class="code-header">fn <a class="fnname">is_read_vectored</a>(&self) -> bool</h4></section></summary><div class='docblock'>Determines if this <code>Read</code>er has an efficient <code>read_vectored</code> |
| implementation. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_to_end" class="method trait-impl has-srclink"><a href="#method.read_to_end" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_to_end</a>(&mut self, buf: &mut Vec<u8, Global>) -> Result<usize, Error></h4></section></summary><div class='docblock'>Read all bytes until EOF in this source, placing them into <code>buf</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_to_string" class="method trait-impl has-srclink"><a href="#method.read_to_string" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_to_string</a>(&mut self, buf: &mut String) -> Result<usize, Error></h4></section></summary><div class='docblock'>Read all bytes until EOF in this source, appending them to <code>buf</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_exact" class="method trait-impl has-srclink"><a href="#method.read_exact" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_exact</a>(&mut self, buf: &mut [u8]) -> Result<(), Error></h4></section></summary><div class='docblock'>Read the exact number of bytes required to fill <code>buf</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_buf" class="method trait-impl has-srclink"><a href="#method.read_buf" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_buf</a>(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error></h4></section></summary><div class='docblock'>Pull some bytes from this source into the specified buffer. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_buf_exact" class="method trait-impl has-srclink"><a href="#method.read_buf_exact" class="anchor"></a><h4 class="code-header">fn <a class="fnname">read_buf_exact</a>(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error></h4></section></summary><div class='docblock'>Read the exact number of bytes required to fill <code>cursor</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.by_ref" class="method trait-impl has-srclink"><a href="#method.by_ref" class="anchor"></a><h4 class="code-header">fn <a class="fnname">by_ref</a>(&mut self) -> &mut Self</h4></section></summary><div class='docblock'>Creates a “by reference” adaptor for this instance of <code>Read</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.bytes" class="method trait-impl has-srclink"><a href="#method.bytes" class="anchor"></a><h4 class="code-header">fn <a class="fnname">bytes</a>(self) -> Bytes<Self></h4></section></summary><div class='docblock'>Transforms this <code>Read</code> instance to an [<code>Iterator</code>] over its bytes. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.chain" class="method trait-impl has-srclink"><a href="#method.chain" class="anchor"></a><h4 class="code-header">fn <a class="fnname">chain</a><R>(self, next: R) -> Chain<Self, R><span class="where fmt-newline">where<br> R: Read,</span></h4></section></summary><div class='docblock'>Creates an adapter which will chain this stream with another. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.take" class="method trait-impl has-srclink"><a href="#method.take" class="anchor"></a><h4 class="code-header">fn <a class="fnname">take</a>(self, limit: u64) -> Take<Self></h4></section></summary><div class='docblock'>Creates an adapter which will read at most <code>limit</code> bytes from it. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Seek-for-%26SgxFile" class="impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#290-294">source</a><a href="#impl-Seek-for-%26SgxFile" class="anchor"></a><h3 class="code-header">impl Seek for &<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.seek-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#291-293">source</a><a href="#method.seek-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">seek</a>(&mut self, pos: SeekFrom) -> Result<u64></h4></section></summary><div class='docblock'>Seek to an offset, in bytes, in a stream. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rewind-1" class="method trait-impl has-srclink"><a href="#method.rewind-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rewind</a>(&mut self) -> Result<(), Error></h4></section></summary><div class='docblock'>Rewind to the beginning of a stream. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.stream_len-1" class="method trait-impl has-srclink"><a href="#method.stream_len-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">stream_len</a>(&mut self) -> Result<u64, Error></h4></section></summary><div class='docblock'>Returns the length of this stream (in bytes). <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.stream_position-1" class="method trait-impl has-srclink"><a href="#method.stream_position-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">stream_position</a>(&mut self) -> Result<u64, Error></h4></section></summary><div class='docblock'>Returns the current seek position from the start of the stream. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Seek-for-SgxFile" class="impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#269-273">source</a><a href="#impl-Seek-for-SgxFile" class="anchor"></a><h3 class="code-header">impl Seek for <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.seek" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#270-272">source</a><a href="#method.seek" class="anchor"></a><h4 class="code-header">fn <a class="fnname">seek</a>(&mut self, pos: SeekFrom) -> Result<u64></h4></section></summary><div class='docblock'>Seek to an offset, in bytes, in a stream. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rewind" class="method trait-impl has-srclink"><a href="#method.rewind" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rewind</a>(&mut self) -> Result<(), Error></h4></section></summary><div class='docblock'>Rewind to the beginning of a stream. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.stream_len" class="method trait-impl has-srclink"><a href="#method.stream_len" class="anchor"></a><h4 class="code-header">fn <a class="fnname">stream_len</a>(&mut self) -> Result<u64, Error></h4></section></summary><div class='docblock'>Returns the length of this stream (in bytes). <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.stream_position" class="method trait-impl has-srclink"><a href="#method.stream_position" class="anchor"></a><h4 class="code-header">fn <a class="fnname">stream_position</a>(&mut self) -> Result<u64, Error></h4></section></summary><div class='docblock'>Returns the current seek position from the start of the stream. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Write-for-%26SgxFile" class="impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#281-288">source</a><a href="#impl-Write-for-%26SgxFile" class="anchor"></a><h3 class="code-header">impl Write for &<a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#282-284">source</a><a href="#method.write-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write</a>(&mut self, buf: &[u8]) -> Result<usize></h4></section></summary><div class='docblock'>Write a buffer into this writer, returning how many bytes were written. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.flush-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#285-287">source</a><a href="#method.flush-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">flush</a>(&mut self) -> Result<()></h4></section></summary><div class='docblock'>Flush this output stream, ensuring that all intermediately buffered |
| contents reach their destination. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_vectored-1" class="method trait-impl has-srclink"><a href="#method.write_vectored-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_vectored</a>(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error></h4></section></summary><div class='docblock'>Like <a href="Write::write"><code>write</code></a>, except that it writes from a slice of buffers. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_write_vectored-1" class="method trait-impl has-srclink"><a href="#method.is_write_vectored-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">is_write_vectored</a>(&self) -> bool</h4></section></summary><div class='docblock'>Determines if this <code>Write</code>r has an efficient <a href="Write::write_vectored"><code>write_vectored</code></a> |
| implementation. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_all-1" class="method trait-impl has-srclink"><a href="#method.write_all-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_all</a>(&mut self, buf: &[u8]) -> Result<(), Error></h4></section></summary><div class='docblock'>Attempts to write an entire buffer into this writer. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_all_vectored-1" class="method trait-impl has-srclink"><a href="#method.write_all_vectored-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_all_vectored</a>(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error></h4></section></summary><div class='docblock'>Attempts to write multiple buffers into this writer. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_fmt-1" class="method trait-impl has-srclink"><a href="#method.write_fmt-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_fmt</a>(&mut self, fmt: Arguments<'_>) -> Result<(), Error></h4></section></summary><div class='docblock'>Writes a formatted string into this writer, returning any error |
| encountered. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.by_ref-3" class="method trait-impl has-srclink"><a href="#method.by_ref-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">by_ref</a>(&mut self) -> &mut Self</h4></section></summary><div class='docblock'>Creates a “by reference” adapter for this instance of <code>Write</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Write-for-SgxFile" class="impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#260-267">source</a><a href="#impl-Write-for-SgxFile" class="anchor"></a><h3 class="code-header">impl Write for <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#261-263">source</a><a href="#method.write" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write</a>(&mut self, buf: &[u8]) -> Result<usize></h4></section></summary><div class='docblock'>Write a buffer into this writer, returning how many bytes were written. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.flush" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/sgx_tprotected_fs/fs.rs.html#264-266">source</a><a href="#method.flush" class="anchor"></a><h4 class="code-header">fn <a class="fnname">flush</a>(&mut self) -> Result<()></h4></section></summary><div class='docblock'>Flush this output stream, ensuring that all intermediately buffered |
| contents reach their destination. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_vectored" class="method trait-impl has-srclink"><a href="#method.write_vectored" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_vectored</a>(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error></h4></section></summary><div class='docblock'>Like <a href="Write::write"><code>write</code></a>, except that it writes from a slice of buffers. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_write_vectored" class="method trait-impl has-srclink"><a href="#method.is_write_vectored" class="anchor"></a><h4 class="code-header">fn <a class="fnname">is_write_vectored</a>(&self) -> bool</h4></section></summary><div class='docblock'>Determines if this <code>Write</code>r has an efficient <a href="Write::write_vectored"><code>write_vectored</code></a> |
| implementation. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_all" class="method trait-impl has-srclink"><a href="#method.write_all" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_all</a>(&mut self, buf: &[u8]) -> Result<(), Error></h4></section></summary><div class='docblock'>Attempts to write an entire buffer into this writer. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_all_vectored" class="method trait-impl has-srclink"><a href="#method.write_all_vectored" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_all_vectored</a>(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error></h4></section></summary><div class='docblock'>Attempts to write multiple buffers into this writer. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_fmt" class="method trait-impl has-srclink"><a href="#method.write_fmt" class="anchor"></a><h4 class="code-header">fn <a class="fnname">write_fmt</a>(&mut self, fmt: Arguments<'_>) -> Result<(), Error></h4></section></summary><div class='docblock'>Writes a formatted string into this writer, returning any error |
| encountered. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.by_ref-1" class="method trait-impl has-srclink"><a href="#method.by_ref-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">by_ref</a>(&mut self) -> &mut Self</h4></section></summary><div class='docblock'>Creates a “by reference” adapter for this instance of <code>Write</code>. <a>Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-SgxFile" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-SgxFile" class="anchor"></a><h3 class="code-header">impl RefUnwindSafe for <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section><section id="impl-Send-for-SgxFile" class="impl has-srclink"><a href="#impl-Send-for-SgxFile" class="anchor"></a><h3 class="code-header">impl !Send for <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section><section id="impl-Sync-for-SgxFile" class="impl has-srclink"><a href="#impl-Sync-for-SgxFile" class="anchor"></a><h3 class="code-header">impl !Sync for <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section><section id="impl-Unpin-for-SgxFile" class="impl has-srclink"><a href="#impl-Unpin-for-SgxFile" class="anchor"></a><h3 class="code-header">impl Unpin for <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section><section id="impl-UnwindSafe-for-SgxFile" class="impl has-srclink"><a href="#impl-UnwindSafe-for-SgxFile" class="anchor"></a><h3 class="code-header">impl UnwindSafe for <a class="struct" href="struct.SgxFile.html" title="struct sgx_tprotected_fs::SgxFile">SgxFile</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-SgxFile" class="impl has-srclink"><a href="#impl-Any-for-SgxFile" class="anchor"></a><h3 class="code-header">impl<T> Any for T<span class="where fmt-newline">where<br> T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&self) -> TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-SgxFile" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-SgxFile" class="anchor"></a><h3 class="code-header">impl<T> Borrow<T> for T<span class="where fmt-newline">where<br> T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&self) -> &T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-SgxFile" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-SgxFile" class="anchor"></a><h3 class="code-header">impl<T> BorrowMut<T> for T<span class="where fmt-newline">where<br> T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&mut self) -> &mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-SgxFile" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-SgxFile" class="anchor"></a><h3 class="code-header">impl<T> From<T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-SgxFile" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-SgxFile" class="anchor"></a><h3 class="code-header">impl<T, U> Into<U> for T<span class="where fmt-newline">where<br> U: From<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p> |
| <p>That is, this conversion is whatever the implementation of |
| <code>[From]<T> for U</code> chooses to do.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-SgxFile" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-SgxFile" class="anchor"></a><h3 class="code-header">impl<T, U> TryFrom<U> for T<span class="where fmt-newline">where<br> U: Into<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -> Result<T, <T as TryFrom<U>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-SgxFile" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-SgxFile" class="anchor"></a><h3 class="code-header">impl<T, U> TryInto<U> for T<span class="where fmt-newline">where<br> U: TryFrom<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <U as TryFrom<T>>::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -> Result<U, <U as TryFrom<T>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="sgx_tprotected_fs" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html> |