Struct virtual_fs::webc_fs::WebcFileSystem
source · pub struct WebcFileSystem<T>where
T: Debug + Send + Sync + 'static,{
pub webc: Arc<T>,
pub memory: Arc<MemFileSystem>,
/* private fields */
}
Expand description
Custom file system wrapper to map requested file paths
Fields§
§webc: Arc<T>
§memory: Arc<MemFileSystem>
Implementations§
Trait Implementations§
source§impl<T> FileOpener for WebcFileSystem<T>where
T: Debug + Send + Sync + 'static + Deref<Target = WebC<'static>>,
impl<T> FileOpener for WebcFileSystem<T>where T: Debug + Send + Sync + 'static + Deref<Target = WebC<'static>>,
Custom file opener, returns a WebCFile
source§impl<T> FileSystem for WebcFileSystem<T>where
T: Debug + Send + Sync + 'static + Deref<Target = WebC<'static>>,
impl<T> FileSystem for WebcFileSystem<T>where T: Debug + Send + Sync + 'static + Deref<Target = WebC<'static>>,
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> 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