Trait virtual_fs::FileOpener

source ·
pub trait FileOpener {
    // Required method
    fn open(
        &self,
        path: &Path,
        conf: &OpenOptionsConfig,
    ) -> Result<Box<dyn VirtualFile + Send + Sync + 'static>>;
}

Required Methods§

source

fn open( &self, path: &Path, conf: &OpenOptionsConfig, ) -> Result<Box<dyn VirtualFile + Send + Sync + 'static>>

Implementors§

source§

impl FileOpener for EmptyFileSystem

source§

impl FileOpener for virtual_fs::host_fs::FileSystem

source§

impl FileOpener for virtual_fs::mem_fs::filesystem::FileSystem

source§

impl FileOpener for StaticFileSystem

Custom file opener, returns a WebCFile

source§

impl FileOpener for UnionFileSystem

source§

impl FileOpener for WebcVolumeFileSystem

source§

impl<F> FileOpener for TraceFileSystem<F>
where F: FileSystem,

source§

impl<P, S> FileOpener for OverlayFileSystem<P, S>
where P: FileSystem + Send + 'static, S: for<'a> FileSystems<'a> + Send + Sync + 'static, for<'a> <<S as FileSystems<'a>>::Iter as IntoIterator>::IntoIter: Send,