Skip to main content

MountedEngineFileSystem

Struct MountedEngineFileSystem 

Source
pub struct MountedEngineFileSystem<F> { /* private fields */ }

Implementations§

Source§

impl<F> MountedEngineFileSystem<F>

Source

pub fn new(inner: F) -> PosixVfsResult<Self>

Trait Implementations§

Source§

impl<F> MountedFileSystem for MountedEngineFileSystem<F>
where F: VirtualFileSystem + 'static,

Source§

fn as_any(&self) -> &dyn Any

Source§

fn as_any_mut(&mut self) -> &mut dyn Any

Source§

fn read_file(&mut self, path: &str) -> PosixVfsResult<Vec<u8>>

Source§

fn read_dir(&mut self, path: &str) -> PosixVfsResult<Vec<String>>

Source§

fn read_dir_with_types( &mut self, path: &str, ) -> PosixVfsResult<Vec<VirtualDirEntry>>

Source§

fn write_file(&mut self, path: &str, content: Vec<u8>) -> PosixVfsResult<()>

Source§

fn write_file_with_mode( &mut self, path: &str, content: Vec<u8>, mode: Option<u32>, ) -> PosixVfsResult<()>

Source§

fn create_file_exclusive( &mut self, path: &str, content: Vec<u8>, ) -> PosixVfsResult<()>

Source§

fn create_file_exclusive_with_mode( &mut self, path: &str, content: Vec<u8>, mode: Option<u32>, ) -> PosixVfsResult<()>

Source§

fn append_file(&mut self, path: &str, content: Vec<u8>) -> PosixVfsResult<u64>

Source§

fn create_dir(&mut self, path: &str) -> PosixVfsResult<()>

Source§

fn create_dir_with_mode( &mut self, path: &str, mode: Option<u32>, ) -> PosixVfsResult<()>

Source§

fn mkdir(&mut self, path: &str, recursive: bool) -> PosixVfsResult<()>

Source§

fn mkdir_with_mode( &mut self, path: &str, recursive: bool, mode: Option<u32>, ) -> PosixVfsResult<()>

Source§

fn exists(&self, path: &str) -> bool

Source§

fn stat(&mut self, path: &str) -> PosixVfsResult<VirtualStat>

Source§

fn remove_file(&mut self, path: &str) -> PosixVfsResult<()>

Source§

fn remove_dir(&mut self, path: &str) -> PosixVfsResult<()>

Source§

fn rename(&mut self, old_path: &str, new_path: &str) -> PosixVfsResult<()>

Source§

fn realpath(&self, path: &str) -> PosixVfsResult<String>

Source§

fn lstat(&self, path: &str) -> PosixVfsResult<VirtualStat>

Source§

fn chmod(&mut self, path: &str, mode: u32) -> PosixVfsResult<()>

Source§

fn chown(&mut self, path: &str, uid: u32, gid: u32) -> PosixVfsResult<()>

Source§

fn utimes( &mut self, path: &str, atime_ms: u64, mtime_ms: u64, ) -> PosixVfsResult<()>

Source§

fn truncate(&mut self, path: &str, length: u64) -> PosixVfsResult<()>

Source§

fn pread( &mut self, path: &str, offset: u64, length: usize, ) -> PosixVfsResult<Vec<u8>>

Source§

fn read_dir_limited( &mut self, path: &str, max_entries: usize, ) -> VfsResult<Vec<String>>

Source§

fn utimes_spec( &mut self, path: &str, atime: VirtualUtimeSpec, mtime: VirtualUtimeSpec, follow_symlinks: bool, ) -> VfsResult<()>

Source§

fn shutdown(&mut self) -> VfsResult<()>

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.