Struct winapi_util::file::Information
source · pub struct Information(/* private fields */);Expand description
Represents file information such as creation time, file size, etc.
This wraps a BY_HANDLE_FILE_INFORMATION.
Implementations§
source§impl Information
impl Information
sourcepub fn file_attributes(&self) -> u64
pub fn file_attributes(&self) -> u64
Returns file attributes.
This corresponds to dwFileAttributes.
Returns true if and only if this file information has the
FILE_ATTRIBUTE_HIDDEN attribute.
sourcepub fn creation_time(&self) -> Option<u64>
pub fn creation_time(&self) -> Option<u64>
Return the creation time, if one exists.
This corresponds to ftCreationTime.
sourcepub fn last_access_time(&self) -> Option<u64>
pub fn last_access_time(&self) -> Option<u64>
Return the last access time, if one exists.
This corresponds to ftLastAccessTime.
sourcepub fn last_write_time(&self) -> Option<u64>
pub fn last_write_time(&self) -> Option<u64>
Return the last write time, if one exists.
This corresponds to ftLastWriteTime.
sourcepub fn volume_serial_number(&self) -> u64
pub fn volume_serial_number(&self) -> u64
Return the serial number of the volume that the file is on.
This corresponds to dwVolumeSerialNumber.
sourcepub fn file_size(&self) -> u64
pub fn file_size(&self) -> u64
Return the file size, in bytes.
This corresponds to nFileSizeHigh and nFileSizeLow.
sourcepub fn number_of_links(&self) -> u64
pub fn number_of_links(&self) -> u64
Return the number of links to this file.
This corresponds to nNumberOfLinks.
sourcepub fn file_index(&self) -> u64
pub fn file_index(&self) -> u64
Return the index of this file. The index of a file is a purpotedly unique identifier for a file within a particular volume.
Trait Implementations§
source§impl Clone for Information
impl Clone for Information
source§fn clone(&self) -> Information
fn clone(&self) -> Information
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more