pub struct WebcFileSystem<T>{
pub package: String,
pub webc: Arc<T>,
pub memory: Arc<FileSystem>,
}
Expand description
Custom file system wrapper to map requested file paths
Fields§
§package: String
§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> 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(&self, from: &Path, to: &Path) -> 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