Enum ntfs::attribute_value::NtfsAttributeValue
source · 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§
source§impl<'n, 'f> NtfsAttributeValue<'n, 'f>
impl<'n, 'f> NtfsAttributeValue<'n, 'f>
sourcepub fn attach<'a, T>(
self,
fs: &'a mut T
) -> NtfsAttributeValueAttached<'n, 'f, 'a, T> ⓘwhere
T: Read + Seek,
pub fn attach<'a, T>(
self,
fs: &'a mut T
) -> NtfsAttributeValueAttached<'n, 'f, 'a, T> ⓘwhere
T: Read + Seek,
sourcepub fn data_position(&self) -> NtfsPosition
pub fn data_position(&self) -> NtfsPosition
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.
Trait Implementations§
source§impl<'n, 'f> Clone for NtfsAttributeValue<'n, 'f>
impl<'n, 'f> Clone for NtfsAttributeValue<'n, 'f>
source§fn clone(&self) -> NtfsAttributeValue<'n, 'f>
fn clone(&self) -> NtfsAttributeValue<'n, 'f>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'n, 'f> Debug for NtfsAttributeValue<'n, 'f>
impl<'n, 'f> Debug for NtfsAttributeValue<'n, 'f>
source§impl<'n, 'f> NtfsReadSeek for NtfsAttributeValue<'n, 'f>
impl<'n, 'f> NtfsReadSeek for NtfsAttributeValue<'n, 'f>
source§fn read<T>(&mut self, fs: &mut T, buf: &mut [u8]) -> Result<usize>where
T: Read + Seek,
fn read<T>(&mut self, fs: &mut T, buf: &mut [u8]) -> Result<usize>where
T: Read + Seek,
See
std::io::Read::read.source§fn seek<T>(&mut self, fs: &mut T, pos: SeekFrom) -> Result<u64>where
T: Read + Seek,
fn seek<T>(&mut self, fs: &mut T, pos: SeekFrom) -> Result<u64>where
T: Read + Seek,
See
std::io::Seek::seek.