[−][src]Struct winapi_util::file::Information
Represents file information such as creation time, file size, etc.
This wraps a BY_HANDLE_FILE_INFORMATION
.
Methods
impl Information
[src]
pub fn file_attributes(&self) -> u64
[src]
Returns file attributes.
This corresponds to dwFileAttributes
.
[src]
Returns true if and only if this file information has the
FILE_ATTRIBUTE_HIDDEN
attribute.
pub fn creation_time(&self) -> Option<u64>
[src]
Return the creation time, if one exists.
This corresponds to ftCreationTime
.
pub fn last_access_time(&self) -> Option<u64>
[src]
Return the last access time, if one exists.
This corresponds to ftLastAccessTime
.
pub fn last_write_time(&self) -> Option<u64>
[src]
Return the last write time, if one exists.
This corresponds to ftLastWriteTime
.
pub fn volume_serial_number(&self) -> u64
[src]
Return the serial number of the volume that the file is on.
This corresponds to dwVolumeSerialNumber
.
pub fn file_size(&self) -> u64
[src]
Return the file size, in bytes.
This corresponds to nFileSizeHigh
and nFileSizeLow
.
pub fn number_of_links(&self) -> u64
[src]
Return the number of links to this file.
This corresponds to nNumberOfLinks
.
pub fn file_index(&self) -> u64
[src]
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
impl Clone for Information
[src]
fn clone(&self) -> Information
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Information
impl Send for Information
impl Sync for Information
impl Unpin for Information
impl UnwindSafe for Information
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,