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
Available on crate feature
host-fs
only.impl FileOpener for virtual_fs::mem_fs::FileSystem
impl FileOpener for StaticFileSystem
Available on crate feature
static-fs
only.Custom file opener, returns a WebCFile
impl FileOpener for WebcVolumeFileSystem
Available on crate feature
webc-fs
only.