Trait std::os::wasi::fs::MetadataExt

source ·
pub trait MetadataExt {
    // Required methods
    fn dev(&self) -> u64;
    fn ino(&self) -> u64;
    fn nlink(&self) -> u64;
    fn size(&self) -> u64;
    fn atim(&self) -> u64;
    fn mtim(&self) -> u64;
    fn ctim(&self) -> u64;
}
🔬This is a nightly-only experimental API. (wasi_ext #71213)
Available on WASI only.
Expand description

特定于 WASI 的 fs::Metadata 的扩展。

Required Methods§

source

fn dev(&self) -> u64

🔬This is a nightly-only experimental API. (wasi_ext #71213)

返回内部 filestat_tst_dev 字段

source

fn ino(&self) -> u64

🔬This is a nightly-only experimental API. (wasi_ext #71213)

返回内部 filestat_tst_ino 字段

🔬This is a nightly-only experimental API. (wasi_ext #71213)

返回内部 filestat_tst_nlink 字段

source

fn size(&self) -> u64

🔬This is a nightly-only experimental API. (wasi_ext #71213)

返回内部 filestat_tst_size 字段

source

fn atim(&self) -> u64

🔬This is a nightly-only experimental API. (wasi_ext #71213)

返回内部 filestat_tst_atim 字段

source

fn mtim(&self) -> u64

🔬This is a nightly-only experimental API. (wasi_ext #71213)

返回内部 filestat_tst_mtim 字段

source

fn ctim(&self) -> u64

🔬This is a nightly-only experimental API. (wasi_ext #71213)

返回内部 filestat_tst_ctim 字段

Implementors§