pub enum MftAttributeContent {
Raw(RawAttribute),
AttrX10(StandardInfoAttr),
AttrX20(AttributeListAttr),
AttrX30(FileNameAttr),
AttrX40(ObjectIdAttr),
AttrX80(DataAttr),
AttrX90(IndexRootAttr),
None,
}
Variants§
Raw(RawAttribute)
AttrX10(StandardInfoAttr)
AttrX20(AttributeListAttr)
AttrX30(FileNameAttr)
AttrX40(ObjectIdAttr)
AttrX80(DataAttr)
AttrX90(IndexRootAttr)
None
Empty - used when data is non resident.
Implementations§
Source§impl MftAttributeContent
impl MftAttributeContent
pub fn from_stream_resident<S: Read + Seek>( stream: &mut S, header: &MftAttributeHeader, resident: &ResidentHeader, ) -> Result<Self>
Sourcepub fn into_attribute_list(self) -> Option<AttributeListAttr>
pub fn into_attribute_list(self) -> Option<AttributeListAttr>
Converts the given attributes into a ‘AttributeListAttr’, consuming the object attribute object.
Sourcepub fn into_index_root(self) -> Option<IndexRootAttr>
pub fn into_index_root(self) -> Option<IndexRootAttr>
Converts the given attributes into a IndexRootAttr
, consuming the object attribute object.
Sourcepub fn into_object_id(self) -> Option<ObjectIdAttr>
pub fn into_object_id(self) -> Option<ObjectIdAttr>
Converts the given attributes into a ObjectIdAttr
, consuming the object attribute object.
Sourcepub fn into_standard_info(self) -> Option<StandardInfoAttr>
pub fn into_standard_info(self) -> Option<StandardInfoAttr>
Converts the given attributes into a StandardInfoAttr
, consuming the object attribute object.
Sourcepub fn into_data(self) -> Option<DataAttr>
pub fn into_data(self) -> Option<DataAttr>
Converts the given attributes into a DataAttr
, consuming the object attribute object.
Sourcepub fn into_file_name(self) -> Option<FileNameAttr>
pub fn into_file_name(self) -> Option<FileNameAttr>
Converts the given attributes into a FileNameAttr
, consuming the object attribute object.
Trait Implementations§
Source§impl Clone for MftAttributeContent
impl Clone for MftAttributeContent
Source§fn clone(&self) -> MftAttributeContent
fn clone(&self) -> MftAttributeContent
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 Debug for MftAttributeContent
impl Debug for MftAttributeContent
Auto Trait Implementations§
impl Freeze for MftAttributeContent
impl RefUnwindSafe for MftAttributeContent
impl Send for MftAttributeContent
impl Sync for MftAttributeContent
impl Unpin for MftAttributeContent
impl UnwindSafe for MftAttributeContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more