[][src]Trait cap_fs_ext::MetadataExt

pub trait MetadataExt {
    pub fn dev(&self) -> u64;
pub fn ino(&self) -> u64;
pub fn nlink(&self) -> u64; }

Extension trait for Metadata.

Required methods

pub fn dev(&self) -> u64[src]

Returns the ID of the device containing the file.

This corresponds to std::os::unix::fs::MetadataExt::dev, except that it's supported on Windows platforms as well.

pub fn ino(&self) -> u64[src]

Returns the inode number.

This corresponds to std::os::unix::fs::MetadataExt::ino, except that it's supported on Windows platforms as well.

FIXME: On Windows' ReFS, file identifiers are 128-bit.

Returns the number of hard links pointing to this file.

This corresponds to std::os::unix::fs::MetadataExt::nlink, except that it's supported on Windows platforms as well.

Loading content...

Implementations on Foreign Types

impl MetadataExt for Metadata[src]

Loading content...

Implementors

Loading content...