Enum mft::attribute::MftAttributeContent
source · 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 more