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