pub struct MountedEngineFileSystem<F> { /* private fields */ }Implementations§
Source§impl<F> MountedEngineFileSystem<F>
impl<F> MountedEngineFileSystem<F>
pub fn new(inner: F) -> PosixVfsResult<Self>
Trait Implementations§
Source§impl<F> MountedFileSystem for MountedEngineFileSystem<F>where
F: VirtualFileSystem + 'static,
impl<F> MountedFileSystem for MountedEngineFileSystem<F>where
F: VirtualFileSystem + 'static,
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn read_file(&mut self, path: &str) -> PosixVfsResult<Vec<u8>>
fn read_dir(&mut self, path: &str) -> PosixVfsResult<Vec<String>>
fn read_dir_with_types( &mut self, path: &str, ) -> PosixVfsResult<Vec<VirtualDirEntry>>
fn write_file(&mut self, path: &str, content: Vec<u8>) -> PosixVfsResult<()>
fn write_file_with_mode( &mut self, path: &str, content: Vec<u8>, mode: Option<u32>, ) -> PosixVfsResult<()>
fn create_file_exclusive( &mut self, path: &str, content: Vec<u8>, ) -> PosixVfsResult<()>
fn create_file_exclusive_with_mode( &mut self, path: &str, content: Vec<u8>, mode: Option<u32>, ) -> PosixVfsResult<()>
fn append_file(&mut self, path: &str, content: Vec<u8>) -> PosixVfsResult<u64>
fn create_dir(&mut self, path: &str) -> PosixVfsResult<()>
fn create_dir_with_mode( &mut self, path: &str, mode: Option<u32>, ) -> PosixVfsResult<()>
fn mkdir(&mut self, path: &str, recursive: bool) -> PosixVfsResult<()>
fn mkdir_with_mode( &mut self, path: &str, recursive: bool, mode: Option<u32>, ) -> PosixVfsResult<()>
fn exists(&self, path: &str) -> bool
fn stat(&mut self, path: &str) -> PosixVfsResult<VirtualStat>
fn remove_file(&mut self, path: &str) -> PosixVfsResult<()>
fn remove_dir(&mut self, path: &str) -> PosixVfsResult<()>
fn rename(&mut self, old_path: &str, new_path: &str) -> PosixVfsResult<()>
fn realpath(&self, path: &str) -> PosixVfsResult<String>
fn symlink(&mut self, target: &str, link_path: &str) -> PosixVfsResult<()>
fn read_link(&self, path: &str) -> PosixVfsResult<String>
fn lstat(&self, path: &str) -> PosixVfsResult<VirtualStat>
fn link(&mut self, old_path: &str, new_path: &str) -> PosixVfsResult<()>
fn chmod(&mut self, path: &str, mode: u32) -> PosixVfsResult<()>
fn chown(&mut self, path: &str, uid: u32, gid: u32) -> PosixVfsResult<()>
fn utimes( &mut self, path: &str, atime_ms: u64, mtime_ms: u64, ) -> PosixVfsResult<()>
fn truncate(&mut self, path: &str, length: u64) -> PosixVfsResult<()>
fn pread( &mut self, path: &str, offset: u64, length: usize, ) -> PosixVfsResult<Vec<u8>>
fn read_dir_limited( &mut self, path: &str, max_entries: usize, ) -> VfsResult<Vec<String>>
fn utimes_spec( &mut self, path: &str, atime: VirtualUtimeSpec, mtime: VirtualUtimeSpec, follow_symlinks: bool, ) -> VfsResult<()>
fn shutdown(&mut self) -> VfsResult<()>
Auto Trait Implementations§
impl<F> !Freeze for MountedEngineFileSystem<F>
impl<F> RefUnwindSafe for MountedEngineFileSystem<F>where
F: RefUnwindSafe,
impl<F> Send for MountedEngineFileSystem<F>where
F: Send,
impl<F> Sync for MountedEngineFileSystem<F>where
F: Sync,
impl<F> Unpin for MountedEngineFileSystem<F>where
F: Unpin,
impl<F> UnsafeUnpin for MountedEngineFileSystem<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for MountedEngineFileSystem<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more