Struct virtual_fs::static_fs::StaticFileSystem
source · pub struct StaticFileSystem {
pub package: String,
pub volumes: Arc<IndexMap<String, Volume<'static>>>,
pub memory: Arc<FileSystem>,
}
Available on crate feature
static-fs
only.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 FileOpener for StaticFileSystem
impl FileOpener for StaticFileSystem
Custom file opener, returns a WebCFile
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<'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 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