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§
fn open( &self, path: &Path, conf: &OpenOptionsConfig ) -> Result<Box<dyn VirtualFile + Send + Sync + 'static>>
Implementors§
impl FileOpener for EmptyFileSystem
impl FileOpener for virtual_fs::host_fs::FileSystem
impl FileOpener for virtual_fs::mem_fs::FileSystem
impl FileOpener for StaticFileSystem
Custom file opener, returns a WebCFile
impl FileOpener for WebcVolumeFileSystem
impl FileOpener for UnionFileSystem
impl<F> FileOpener for TraceFileSystem<F>where F: FileSystem,
impl<P, S> FileOpener for OverlayFileSystem<P, S>where P: FileSystem, S: for<'a> FileSystems<'a> + Send + Sync + 'static,
impl<T> FileOpener for WebcFileSystem<T>where T: Debug + Send + Sync + 'static + Deref<Target = WebC<'static>>,
Custom file opener, returns a WebCFile