Enum ntfs::structured_values::NtfsAttributeList
source · pub enum NtfsAttributeList<'n, 'f> {
Resident(&'f [u8], NtfsPosition),
NonResident(NtfsNonResidentAttributeValue<'n, 'f>),
}
Expand description
Structure of an $ATTRIBUTE_LIST attribute.
When a File Record lacks space to incorporate further attributes, NTFS creates an additional File Record, moves all or some of the existing attributes there, and references them via a resident $ATTRIBUTE_LIST attribute in the original File Record. When you add even more attributes, NTFS may turn the resident $ATTRIBUTE_LIST into a non-resident one to make up the required space.
An $ATTRIBUTE_LIST attribute can hence be resident or non-resident.
Reference: https://flatcap.github.io/linux-ntfs/ntfs/attributes/attribute_list.html
Variants§
Resident(&'f [u8], NtfsPosition)
A resident $ATTRIBUTE_LIST attribute.
NonResident(NtfsNonResidentAttributeValue<'n, 'f>)
A non-resident $ATTRIBUTE_LIST attribute.
Implementations§
source§impl<'n, 'f> NtfsAttributeList<'n, 'f>
impl<'n, 'f> NtfsAttributeList<'n, 'f>
sourcepub fn entries(&self) -> NtfsAttributeListEntries<'n, 'f>
pub fn entries(&self) -> NtfsAttributeListEntries<'n, 'f>
Returns an iterator over all entries of this $ATTRIBUTE_LIST attribute (cf. NtfsAttributeListEntry
).
sourcepub fn position(&self) -> NtfsPosition
pub fn position(&self) -> NtfsPosition
Returns the absolute position of this $ATTRIBUTE_LIST attribute value within the filesystem, in bytes.
Trait Implementations§
source§impl<'n, 'f> Clone for NtfsAttributeList<'n, 'f>
impl<'n, 'f> Clone for NtfsAttributeList<'n, 'f>
source§fn clone(&self) -> NtfsAttributeList<'n, 'f>
fn clone(&self) -> NtfsAttributeList<'n, 'f>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'n, 'f> Debug for NtfsAttributeList<'n, 'f>
impl<'n, 'f> Debug for NtfsAttributeList<'n, 'f>
source§impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsAttributeList<'n, 'f>
impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsAttributeList<'n, 'f>
const TY: NtfsAttributeType = NtfsAttributeType::AttributeList
source§fn from_attribute_value<T>(
_fs: &mut T,
value: NtfsAttributeValue<'n, 'f>
) -> Result<Self>where
T: Read + Seek,
fn from_attribute_value<T>( _fs: &mut T, value: NtfsAttributeValue<'n, 'f> ) -> Result<Self>where T: Read + Seek,
NtfsAttributeValue
.