[][src]Enum mft::attribute::MftAttributeContent

pub enum MftAttributeContent {
    Raw(RawAttribute),
    AttrX80(DataAttr),
    AttrX10(StandardInfoAttr),
    AttrX20(AttributeListAttr),
    AttrX30(FileNameAttr),
    AttrX40(ObjectIdAttr),
    AttrX90(IndexRootAttr),
    None,
}

Variants

Raw(RawAttribute)AttrX80(DataAttr)AttrX10(StandardInfoAttr)AttrX20(AttributeListAttr)AttrX30(FileNameAttr)AttrX40(ObjectIdAttr)AttrX90(IndexRootAttr)None

Empty - used when data is non resident.

Methods

impl MftAttributeContent[src]

pub fn from_stream_resident<S: ReadSeek>(
    stream: &mut S,
    header: &MftAttributeHeader,
    resident: &ResidentHeader
) -> Result<Self>
[src]

pub fn into_index_root(self) -> Option<IndexRootAttr>[src]

Converts the given attributes into a IndexRootAttr, consuming the object attribute object.

pub fn into_object_id(self) -> Option<ObjectIdAttr>[src]

Converts the given attributes into a ObjectIdAttr, consuming the object attribute object.

pub fn into_standard_info(self) -> Option<StandardInfoAttr>[src]

Converts the given attributes into a StandardInfoAttr, consuming the object attribute object.

pub fn into_data(self) -> Option<DataAttr>[src]

Converts the given attributes into a DataAttr, consuming the object attribute object.

pub fn into_file_name(self) -> Option<FileNameAttr>[src]

Converts the given attributes into a FileNameAttr, consuming the object attribute object.

Trait Implementations

impl Clone for MftAttributeContent[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for MftAttributeContent[src]

impl Serialize for MftAttributeContent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]