pub struct MountedEngineFileSystem<F> { /* private fields */ }Implementations§
Source§impl<F> MountedEngineFileSystem<F>
impl<F> MountedEngineFileSystem<F>
pub fn with_runtime_context(inner: F, runtime: RuntimeContext) -> 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 mknod(&mut self, path: &str, mode: u32, rdev: u64) -> 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 chown_spec( &mut self, path: &str, uid: u32, gid: u32, follow_symlinks: bool, ) -> PosixVfsResult<()>
fn lchown(&mut self, path: &str, uid: u32, gid: u32) -> PosixVfsResult<()>
fn get_xattr( &mut self, path: &str, name: &str, follow_symlinks: bool, ) -> PosixVfsResult<Vec<u8>>
fn list_xattrs( &mut self, path: &str, follow_symlinks: bool, ) -> PosixVfsResult<Vec<String>>
fn set_xattr( &mut self, path: &str, name: &str, value: Vec<u8>, flags: u32, follow_symlinks: bool, ) -> PosixVfsResult<()>
fn remove_xattr( &mut self, path: &str, name: &str, follow_symlinks: bool, ) -> PosixVfsResult<()>
fn utimes( &mut self, path: &str, atime_ms: u64, mtime_ms: u64, ) -> PosixVfsResult<()>
fn set_atime(&mut self, path: &str, atime_ms: u64) -> PosixVfsResult<()>
fn truncate(&mut self, path: &str, length: u64) -> PosixVfsResult<()>
fn sync(&mut self, path: &str) -> PosixVfsResult<()>
fn allocate( &mut self, path: &str, offset: u64, length: u64, ) -> PosixVfsResult<()>
fn insert_range( &mut self, path: &str, offset: u64, length: u64, ) -> PosixVfsResult<()>
fn collapse_range( &mut self, path: &str, offset: u64, length: u64, ) -> PosixVfsResult<()>
fn zero_range( &mut self, path: &str, offset: u64, length: u64, keep_size: bool, ) -> PosixVfsResult<()>
fn punch_hole( &mut self, path: &str, offset: u64, length: u64, ) -> PosixVfsResult<()>
fn allocated_ranges(&mut self, path: &str) -> PosixVfsResult<Vec<(u64, u64)>>
fn unwritten_ranges(&mut self, path: &str) -> PosixVfsResult<Vec<(u64, u64)>>
fn pread( &mut self, path: &str, offset: u64, length: usize, ) -> PosixVfsResult<Vec<u8>>
fn pwrite( &mut self, path: &str, content: Vec<u8>, offset: u64, ) -> PosixVfsResult<()>
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>
impl<F> Sync for MountedEngineFileSystem<F>
impl<F> Unpin for MountedEngineFileSystem<F>
impl<F> UnsafeUnpin for MountedEngineFileSystem<F>
impl<F> UnwindSafe for MountedEngineFileSystem<F>where
F: RefUnwindSafe,
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