pub struct StaticFileSystem {
pub package: String,
pub volumes: Arc<IndexMap<String, Volume<'static>>>,
pub memory: Arc<FileSystem>,
}
Expand description
Custom file system wrapper to map requested file paths
Fields§
§package: String
§volumes: Arc<IndexMap<String, Volume<'static>>>
§memory: Arc<FileSystem>
Implementations§
Trait Implementations§
Source§impl Debug for StaticFileSystem
impl Debug for StaticFileSystem
Source§impl FileSystem for StaticFileSystem
impl FileSystem for StaticFileSystem
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 Freeze for StaticFileSystem
impl RefUnwindSafe for StaticFileSystem
impl Send for StaticFileSystem
impl Sync for StaticFileSystem
impl Unpin for StaticFileSystem
impl UnwindSafe for StaticFileSystem
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