VfsFileEntry

Enum VfsFileEntry 

Source
pub enum VfsFileEntry {
Show 13 variants Apm(ApmFileEntry), Ext(ExtFileEntry), Ewf(EwfFileEntry), Fake(Arc<FakeFileEntry>), Gpt(GptFileEntry), Mbr(MbrFileEntry), Ntfs(NtfsFileEntry), Os(OsFileEntry), Qcow(QcowFileEntry), SparseImage(SparseImageFileEntry), Udif(UdifFileEntry), Vhd(VhdFileEntry), Vhdx(VhdxFileEntry),
}
Expand description

Virtual File System (VFS) file entry.

Variants§

§

Apm(ApmFileEntry)

§

Ext(ExtFileEntry)

§

Ewf(EwfFileEntry)

§

Fake(Arc<FakeFileEntry>)

§

Gpt(GptFileEntry)

§

Mbr(MbrFileEntry)

§

Ntfs(NtfsFileEntry)

§

Os(OsFileEntry)

§

Qcow(QcowFileEntry)

§

SparseImage(SparseImageFileEntry)

§

Udif(UdifFileEntry)

§

Vhd(VhdFileEntry)

§

Vhdx(VhdxFileEntry)

Implementations§

Source§

impl VfsFileEntry

Source

pub fn get_access_time(&self) -> Option<&DateTime>

Retrieves the access time.

Source

pub fn get_change_time(&self) -> Option<&DateTime>

Retrieves the change time.

Source

pub fn get_creation_time(&self) -> Option<&DateTime>

Retrieves the creation time.

Source

pub fn get_file_type(&self) -> VfsFileType

Retrieves the file type.

Source

pub fn get_modification_time(&self) -> Option<&DateTime>

Retrieves the modification time.

Source

pub fn get_name(&self) -> Option<VfsString>

Retrieves the name.

Source

pub fn get_size(&self) -> u64

Retrieves the size.

Retrieves the symbolic link target.

Source

pub fn get_number_of_data_forks(&self) -> Result<usize, ErrorTrace>

Retrieves the number of data forks.

Source

pub fn get_data_fork_by_index( &self, data_fork_index: usize, ) -> Result<VfsDataFork<'_>, ErrorTrace>

Retrieves a specific data fork.

Source

pub fn get_data_stream(&self) -> Result<Option<DataStreamReference>, ErrorTrace>

Retrieves the default data stream.

Source

pub fn get_data_stream_by_name( &self, name: Option<&str>, ) -> Result<Option<DataStreamReference>, ErrorTrace>

Retrieves a data stream with the specified name.

Source

pub fn get_number_of_sub_file_entries(&mut self) -> Result<usize, ErrorTrace>

Retrieves the number of sub file entries.

Source

pub fn get_sub_file_entry_by_index( &mut self, sub_file_entry_index: usize, ) -> Result<VfsFileEntry, ErrorTrace>

Retrieves a specific sub file entry.

Source

pub fn sub_file_entries( &mut self, ) -> Result<VfsFileEntriesIterator<'_>, ErrorTrace>

Retrieves a sub file entries iterator.

Source

pub fn is_root_directory(&self) -> bool

Determines if the file entry is the root directory.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.