pub struct StdVirtualFS {}

Implementations§

source§

impl StdVirtualFS

source

pub fn new() -> Self

Trait Implementations§

source§

impl Clone for StdVirtualFS

source§

fn clone(&self) -> StdVirtualFS

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl VirtualFileSystem for StdVirtualFS

source§

fn read_to_string(&mut self, path: &Path) -> ForensicResult<String>

Read the entire contents of a file into a string.
source§

fn read_all(&mut self, path: &Path) -> ForensicResult<Vec<u8>>

Read the entire contents of a file into a bytes vector.
source§

fn read( &mut self, path: &Path, pos: u64, buf: &mut [u8] ) -> ForensicResult<usize>

Read part of the content of a file into a bytes vector.
source§

fn metadata(&mut self, path: &Path) -> ForensicResult<VMetadata>

Get the metadata of a file/dir
source§

fn read_dir(&mut self, path: &Path) -> ForensicResult<Vec<VDirEntry>>

Lists the contents of a Directory
source§

fn is_live(&self) -> bool

Check if the VirtualFileSystem is an abstraction over the real filesystem and not a virtual (like a ZIP file).
source§

fn open(&mut self, path: &Path) -> ForensicResult<Box<dyn VirtualFile>>

Open a file
source§

fn duplicate(&self) -> Box<dyn VirtualFileSystem>

Allows duplicating the existing file system
source§

fn from_file( &self, _file: Box<dyn VirtualFile> ) -> ForensicResult<Box<dyn VirtualFileSystem>>

Initializes a virtual filesystem from a file. Ex: a Zip FS from a file
source§

fn from_fs( &self, _fs: Box<dyn VirtualFileSystem> ) -> ForensicResult<Box<dyn VirtualFileSystem>>

Initializes a virtual filesystem from a filesyste. Ex: a remapping of windows routes to Linux routes.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

§

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 Twhere U: TryFrom<T>,

§

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.