[][src]Struct mft::mft::MftParser

pub struct MftParser<T: ReadSeek> { /* fields omitted */ }

Methods

impl MftParser<BufReader<File>>[src]

pub fn from_path(filename: impl AsRef<Path>) -> Result<Self>[src]

Instantiates an instance of the parser from a file path. Does not mutate the file contents in any way.

impl MftParser<Cursor<Vec<u8>>>[src]

pub fn from_buffer(buffer: Vec<u8>) -> Result<Self>[src]

Instantiates an instance of the parser from a buffer containing a full MFT file. Useful for testing.

impl<T: ReadSeek> MftParser<T>[src]

pub fn from_read_seek(data: T, size: Option<u64>) -> Result<Self>[src]

pub fn get_entry_count(&self) -> u64[src]

pub fn get_entry(&mut self, entry_number: u64) -> Result<MftEntry>[src]

Reads an entry from the MFT by entry number.

pub fn iter_entries(&mut self) -> impl Iterator<Item = Result<MftEntry>> + '_[src]

Iterates over all the entries in the MFT.

pub fn get_full_path_for_entry(
    &mut self,
    entry: &MftEntry
) -> Result<Option<PathBuf>>
[src]

Gets the full path for an entry. Caches computations.

Auto Trait Implementations

impl<T> Send for MftParser<T> where
    T: Send

impl<T> Sync for MftParser<T> where
    T: Sync

Blanket Implementations

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]