Struct virtual_fs::webc_fs::WebcFileSystem
source · pub struct WebcFileSystem<T>{
pub webc: Arc<T>,
pub memory: Arc<FileSystem>,
/* private fields */
}
Available on crate feature
webc-fs
only.Expand description
Custom file system wrapper to map requested file paths
Fields§
§webc: Arc<T>
§memory: Arc<FileSystem>
Implementations§
Trait Implementations§
source§impl<T> Debug for WebcFileSystem<T>
impl<T> Debug for WebcFileSystem<T>
source§impl<T> FileOpener for WebcFileSystem<T>
impl<T> FileOpener for WebcFileSystem<T>
Custom file opener, returns a WebCFile
source§impl<T> FileSystem for WebcFileSystem<T>
impl<T> FileSystem for WebcFileSystem<T>
fn read_dir(&self, path: &Path) -> Result<ReadDir, FsError>
fn create_dir(&self, path: &Path) -> Result<(), FsError>
fn remove_dir(&self, path: &Path) -> Result<(), FsError>
fn rename<'a>( &'a self, from: &'a Path, to: &'a Path ) -> BoxFuture<'a, Result<(), FsError>>
fn metadata(&self, path: &Path) -> Result<Metadata, FsError>
fn remove_file(&self, path: &Path) -> Result<(), FsError>
fn new_open_options(&self) -> OpenOptions<'_>
Auto Trait Implementations§
impl<T> Freeze for WebcFileSystem<T>
impl<T> RefUnwindSafe for WebcFileSystem<T>where
T: RefUnwindSafe,
impl<T> Send for WebcFileSystem<T>
impl<T> Sync for WebcFileSystem<T>
impl<T> Unpin for WebcFileSystem<T>
impl<T> UnwindSafe for WebcFileSystem<T>where
T: 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