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-specific extensions to fs::Metadata
.
Required Methodsยง
Sourcefn dev(&self) -> u64
๐ฌThis is a nightly-only experimental API. (wasi_ext
#71213)
fn dev(&self) -> u64
wasi_ext
#71213)Returns the st_dev
field of the internal filestat_t
Sourcefn ino(&self) -> u64
๐ฌThis is a nightly-only experimental API. (wasi_ext
#71213)
fn ino(&self) -> u64
wasi_ext
#71213)Returns the st_ino
field of the internal filestat_t
Sourcefn nlink(&self) -> u64
๐ฌThis is a nightly-only experimental API. (wasi_ext
#71213)
fn nlink(&self) -> u64
wasi_ext
#71213)Returns the st_nlink
field of the internal filestat_t
Sourcefn size(&self) -> u64
๐ฌThis is a nightly-only experimental API. (wasi_ext
#71213)
fn size(&self) -> u64
wasi_ext
#71213)Returns the st_size
field of the internal filestat_t
Sourcefn atim(&self) -> u64
๐ฌThis is a nightly-only experimental API. (wasi_ext
#71213)
fn atim(&self) -> u64
wasi_ext
#71213)Returns the st_atim
field of the internal filestat_t