[][src]Struct winapi_util::file::Information

pub struct 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.

pub fn is_hidden(&self) -> bool[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.

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.