virtual_fs

Trait 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

Available on crate feature host-fs only.
Source§

impl FileOpener for virtual_fs::mem_fs::FileSystem

Source§

impl FileOpener for StaticFileSystem

Available on crate feature static-fs only.

Custom file opener, returns a WebCFile

Source§

impl FileOpener for WebcVolumeFileSystem

Available on crate feature webc-fs only.
Source§

impl FileOpener for UnionFileSystem

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,