pub enum NtfsAttributeValue<'n, 'f> {
    Resident(NtfsResidentAttributeValue<'f>),
    NonResident(NtfsNonResidentAttributeValue<'n, 'f>),
    AttributeListNonResident(NtfsAttributeListNonResidentAttributeValue<'n, 'f>),
}
Expand description

Reader that abstracts over all attribute value types, returned by NtfsAttribute::value.

Variants§

§

Resident(NtfsResidentAttributeValue<'f>)

A resident attribute value (which is entirely contained in the NTFS File Record).

§

NonResident(NtfsNonResidentAttributeValue<'n, 'f>)

A non-resident attribute value (whose data is in a cluster range outside the File Record).

§

AttributeListNonResident(NtfsAttributeListNonResidentAttributeValue<'n, 'f>)

A non-resident attribute value that is part of an Attribute List (and may span multiple connected attributes).

Implementations§

Returns a variant of this reader that implements Read and Seek by mutably borrowing the filesystem reader.

Returns the absolute current data seek position within the filesystem, in bytes. This may be None if:

  • The current seek position is outside the valid range, or
  • The attribute does not have a Data Run, or
  • The current Data Run is a “sparse” Data Run.

Returns true if the attribute value contains no data.

Returns the total length of the attribute value data, in bytes.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.