mpvrc/rustix/fs/type.Stat.html

21 lines
No EOL
14 KiB
HTML

<!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="`struct stat` for use with `statat` and `fstat`."><title>Stat in rustix::fs - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.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-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="rustix" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.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="../../rustix/index.html">rustix</a><span class="version">0.38.42</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Stat</a></h2><h3><a href="#aliased-type">Aliased type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.__pad0" title="__pad0">__pad0</a></li><li><a href="#structfield.__unused" title="__unused">__unused</a></li><li><a href="#structfield.st_atime" title="st_atime">st_atime</a></li><li><a href="#structfield.st_atime_nsec" title="st_atime_nsec">st_atime_nsec</a></li><li><a href="#structfield.st_blksize" title="st_blksize">st_blksize</a></li><li><a href="#structfield.st_blocks" title="st_blocks">st_blocks</a></li><li><a href="#structfield.st_ctime" title="st_ctime">st_ctime</a></li><li><a href="#structfield.st_ctime_nsec" title="st_ctime_nsec">st_ctime_nsec</a></li><li><a href="#structfield.st_dev" title="st_dev">st_dev</a></li><li><a href="#structfield.st_gid" title="st_gid">st_gid</a></li><li><a href="#structfield.st_ino" title="st_ino">st_ino</a></li><li><a href="#structfield.st_mode" title="st_mode">st_mode</a></li><li><a href="#structfield.st_mtime" title="st_mtime">st_mtime</a></li><li><a href="#structfield.st_mtime_nsec" title="st_mtime_nsec">st_mtime_nsec</a></li><li><a href="#structfield.st_nlink" title="st_nlink">st_nlink</a></li><li><a href="#structfield.st_rdev" title="st_rdev">st_rdev</a></li><li><a href="#structfield.st_size" title="st_size">st_size</a></li><li><a href="#structfield.st_uid" title="st_uid">st_uid</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-StatExt-for-stat" title="StatExt">StatExt</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In rustix::<wbr>fs</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">rustix</a>::<wbr><a href="index.html">fs</a></span><h1>Type Alias <span class="type">Stat</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/rustix/backend/linux_raw/fs/types.rs.html#689">Source</a> </span></div><pre class="rust item-decl"><code>pub type Stat = <a class="struct" href="../../linux_raw_sys/general/struct.stat.html" title="struct linux_raw_sys::general::stat">stat</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><code>struct stat</code> for use with <a href="fn.statat.html" title="fn rustix::fs::statat"><code>statat</code></a> and <a href="fn.fstat.html" title="fn rustix::fs::fstat"><code>fstat</code></a>.</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 Stat {<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 18 fields</span></summary>
pub st_dev: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
pub st_ino: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
pub st_nlink: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
pub st_mode: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>,
pub st_uid: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>,
pub st_gid: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>,
pub __pad0: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>,
pub st_rdev: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
pub st_size: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a>,
pub st_blksize: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a>,
pub st_blocks: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a>,
pub st_atime: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
pub st_atime_nsec: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
pub st_mtime: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
pub st_mtime_nsec: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
pub st_ctime: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
pub st_ctime_nsec: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
pub __unused: [<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.array.html">3</a>],
</details>}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.st_dev" class="structfield section-header"><a href="#structfield.st_dev" class="anchor field">§</a><code>st_dev: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a></code></span><span id="structfield.st_ino" class="structfield section-header"><a href="#structfield.st_ino" class="anchor field">§</a><code>st_ino: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a></code></span><span id="structfield.st_nlink" class="structfield section-header"><a href="#structfield.st_nlink" class="anchor field">§</a><code>st_nlink: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a></code></span><span id="structfield.st_mode" class="structfield section-header"><a href="#structfield.st_mode" class="anchor field">§</a><code>st_mode: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a></code></span><span id="structfield.st_uid" class="structfield section-header"><a href="#structfield.st_uid" class="anchor field">§</a><code>st_uid: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a></code></span><span id="structfield.st_gid" class="structfield section-header"><a href="#structfield.st_gid" class="anchor field">§</a><code>st_gid: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a></code></span><span id="structfield.__pad0" class="structfield section-header"><a href="#structfield.__pad0" class="anchor field">§</a><code>__pad0: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a></code></span><span id="structfield.st_rdev" class="structfield section-header"><a href="#structfield.st_rdev" class="anchor field">§</a><code>st_rdev: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a></code></span><span id="structfield.st_size" class="structfield section-header"><a href="#structfield.st_size" class="anchor field">§</a><code>st_size: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a></code></span><span id="structfield.st_blksize" class="structfield section-header"><a href="#structfield.st_blksize" class="anchor field">§</a><code>st_blksize: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a></code></span><span id="structfield.st_blocks" class="structfield section-header"><a href="#structfield.st_blocks" class="anchor field">§</a><code>st_blocks: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a></code></span><span id="structfield.st_atime" class="structfield section-header"><a href="#structfield.st_atime" class="anchor field">§</a><code>st_atime: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a></code></span><span id="structfield.st_atime_nsec" class="structfield section-header"><a href="#structfield.st_atime_nsec" class="anchor field">§</a><code>st_atime_nsec: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a></code></span><span id="structfield.st_mtime" class="structfield section-header"><a href="#structfield.st_mtime" class="anchor field">§</a><code>st_mtime: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a></code></span><span id="structfield.st_mtime_nsec" class="structfield section-header"><a href="#structfield.st_mtime_nsec" class="anchor field">§</a><code>st_mtime_nsec: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a></code></span><span id="structfield.st_ctime" class="structfield section-header"><a href="#structfield.st_ctime" class="anchor field">§</a><code>st_ctime: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a></code></span><span id="structfield.st_ctime_nsec" class="structfield section-header"><a href="#structfield.st_ctime_nsec" class="anchor field">§</a><code>st_ctime_nsec: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a></code></span><span id="structfield.__unused" class="structfield section-header"><a href="#structfield.__unused" class="anchor field">§</a><code>__unused: [<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.array.html">3</a>]</code></span><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-StatExt-for-stat" class="impl"><a class="src rightside" href="../../src/rustix/fs/mod.rs.html#170-185">Source</a><a href="#impl-StatExt-for-stat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.StatExt.html" title="trait rustix::fs::StatExt">StatExt</a> for <a class="type" href="type.Stat.html" title="type rustix::fs::Stat">Stat</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.atime" class="method trait-impl"><a class="src rightside" href="../../src/rustix/fs/mod.rs.html#172-174">Source</a><a href="#method.atime" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StatExt.html#tymethod.atime" class="fn">atime</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a></h4></section></summary><div class='docblock'>Return the value of the <code>st_atime</code> field, casted to the correct type.</div></details><details class="toggle method-toggle" open><summary><section id="method.mtime" class="method trait-impl"><a class="src rightside" href="../../src/rustix/fs/mod.rs.html#177-179">Source</a><a href="#method.mtime" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StatExt.html#tymethod.mtime" class="fn">mtime</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a></h4></section></summary><div class='docblock'>Return the value of the <code>st_mtime</code> field, casted to the correct type.</div></details><details class="toggle method-toggle" open><summary><section id="method.ctime" class="method trait-impl"><a class="src rightside" href="../../src/rustix/fs/mod.rs.html#182-184">Source</a><a href="#method.ctime" class="anchor">§</a><h4 class="code-header">fn <a href="trait.StatExt.html#tymethod.ctime" class="fn">ctime</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.i64.html">i64</a></h4></section></summary><div class='docblock'>Return the value of the <code>st_ctime</code> field, casted to the correct type.</div></details></div></details></div><script src="../../type.impl/linux_raw_sys/general/struct.stat.js" data-self-path="rustix::backend::fs::types::Stat" async></script></section></div></main></body></html>