Trait cap_std::fs::MetadataExt
source · pub trait MetadataExt {
// Required methods
fn file_attributes(&self) -> u32;
fn creation_time(&self) -> u64;
fn last_access_time(&self) -> u64;
fn last_write_time(&self) -> u64;
fn file_size(&self) -> u64;
fn volume_serial_number(&self) -> Option<u32>;
fn number_of_links(&self) -> Option<u32>;
fn file_index(&self) -> Option<u64>;
}
Expand description
Windows-specific extensions to Metadata
.
Required Methods§
sourcefn file_attributes(&self) -> u32
fn file_attributes(&self) -> u32
Returns the value of the dwFileAttributes
field of this metadata.
sourcefn creation_time(&self) -> u64
fn creation_time(&self) -> u64
Returns the value of the ftCreationTime
field of this metadata.
sourcefn last_access_time(&self) -> u64
fn last_access_time(&self) -> u64
Returns the value of the ftLastAccessTime
field of this metadata.
sourcefn last_write_time(&self) -> u64
fn last_write_time(&self) -> u64
Returns the value of the ftLastWriteTime
field of this metadata.
sourcefn file_size(&self) -> u64
fn file_size(&self) -> u64
Returns the value of the nFileSize{High,Low}
fields of this metadata.
sourcefn volume_serial_number(&self) -> Option<u32>
Available on windows_by_handle
only.
fn volume_serial_number(&self) -> Option<u32>
windows_by_handle
only.Returns the value of the dwVolumeSerialNumber
field of this metadata.
sourcefn number_of_links(&self) -> Option<u32>
Available on windows_by_handle
only.
fn number_of_links(&self) -> Option<u32>
windows_by_handle
only.Returns the value of the nNumberOfLinks
field of this metadata.
sourcefn file_index(&self) -> Option<u64>
Available on windows_by_handle
only.
fn file_index(&self) -> Option<u64>
windows_by_handle
only.Returns the value of the nFileIndex{Low,High}
fields of this metadata.
Implementors§
impl MetadataExt for Metadata
Available on Windows only.