pub struct NtfsStandardInformation { /* private fields */ }
Expand description

Structure of a $STANDARD_INFORMATION attribute.

Among other things, this is the place where the file times and “File Attributes” (Read-Only, Hidden, System, Archive, etc.) are stored.

A $STANDARD_INFORMATION attribute is always resident.

Reference: https://flatcap.github.io/linux-ntfs/ntfs/attributes/standard_information.html

Implementations§

source§

impl NtfsStandardInformation

source

pub fn access_time(&self) -> NtfsTime

Returns the time this file was last accessed.

source

pub fn class_id(&self) -> Option<u32>

Returns the Class ID of the file, if stored via NTFS 3.x file information.

source

pub fn creation_time(&self) -> NtfsTime

Returns the time this file was created.

source

pub fn file_attributes(&self) -> NtfsFileAttributeFlags

Returns flags that a user can set for a file (Read-Only, Hidden, System, Archive, etc.). Commonly called “File Attributes” in Windows Explorer.

source

pub fn maximum_versions(&self) -> Option<u32>

Returns the maximum allowed versions for this file, if stored via NTFS 3.x file information.

A value of zero means that versioning is disabled for this file.

source

pub fn mft_record_modification_time(&self) -> NtfsTime

Returns the time the MFT record of this file was last modified.

source

pub fn modification_time(&self) -> NtfsTime

Returns the time this file was last modified.

source

pub fn owner_id(&self) -> Option<u32>

Returns the Owner ID of the file, if stored via NTFS 3.x file information.

source

pub fn quota_charged(&self) -> Option<u64>

Returns the quota charged by this file, if stored via NTFS 3.x file information.

source

pub fn security_id(&self) -> Option<u32>

Returns the Security ID of the file, if stored via NTFS 3.x file information.

source

pub fn usn(&self) -> Option<u64>

Returns the Update Sequence Number (USN) of the file, if stored via NTFS 3.x file information.

source

pub fn version(&self) -> Option<u32>

Returns the version of the file, if stored via NTFS 3.x file information.

This will be zero if versioning is disabled for this file.

Trait Implementations§

source§

impl Clone for NtfsStandardInformation

source§

fn clone(&self) -> NtfsStandardInformation

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NtfsStandardInformation

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsStandardInformation

source§

const TY: NtfsAttributeType = NtfsAttributeType::StandardInformation

source§

fn from_attribute_value<T>( fs: &mut T, value: NtfsAttributeValue<'n, 'f> ) -> Result<Self>where T: Read + Seek,

Create a structured value from an arbitrary NtfsAttributeValue.
source§

impl<'n, 'f> NtfsStructuredValueFromResidentAttributeValue<'n, 'f> for NtfsStandardInformation

source§

fn from_resident_attribute_value( value: NtfsResidentAttributeValue<'f> ) -> Result<Self>

Create a structured value from a resident attribute value. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.