[][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]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Information

impl Sync for Information

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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