Struct mft::entry::MftEntry[][src]

pub struct MftEntry {
    pub header: EntryHeader,
    pub data: Vec<u8>,
    pub valid_fixup: Option<bool>,
}

Fields

header: EntryHeaderdata: Vec<u8>valid_fixup: Option<bool>

Valid fixup allows you to check if the fixup value in the entry’s blocks matched the fixup array value. It is optional because in the case of from_buffer_skip_fixup(), no fixup is even checked, thus, valid_fixup is None

Implementations

Initializes an MFT Entry from a buffer. Since the parser is the entity responsible for knowing the entry size, we take ownership of the buffer instead of trying to read it from stream.

Initializes an MFT Entry from a buffer but skips checking and fixing the fixup array. This will throw InvalidEntrySignature error if the entry header is not valid.

Retrieves most human-readable representation of a file path entry. Will prefer Win32 file name attributes, and fallback to Dos paths.

Returns an iterator over all the attributes of the entry.

Returns an iterator over the attributes in the list given in types, skips other attributes.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.