Struct virtual_fs::WebcVolumeFileSystem
source · pub struct WebcVolumeFileSystem { /* private fields */ }
Available on crate feature
webc-fs
only.Implementations§
source§impl WebcVolumeFileSystem
impl WebcVolumeFileSystem
pub fn new(volume: Volume) -> Self
pub fn volume(&self) -> &Volume
sourcepub fn mount_all(
container: &Container,
) -> OverlayFileSystem<EmptyFileSystem, Vec<WebcVolumeFileSystem>>
pub fn mount_all( container: &Container, ) -> OverlayFileSystem<EmptyFileSystem, Vec<WebcVolumeFileSystem>>
Trait Implementations§
source§impl Clone for WebcVolumeFileSystem
impl Clone for WebcVolumeFileSystem
source§fn clone(&self) -> WebcVolumeFileSystem
fn clone(&self) -> WebcVolumeFileSystem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WebcVolumeFileSystem
impl Debug for WebcVolumeFileSystem
source§impl FileOpener for WebcVolumeFileSystem
impl FileOpener for WebcVolumeFileSystem
fn open( &self, path: &Path, conf: &OpenOptionsConfig, ) -> Result<Box<dyn VirtualFile + Send + Sync + 'static>>
source§impl FileSystem for WebcVolumeFileSystem
impl FileSystem for WebcVolumeFileSystem
fn readlink(&self, _path: &Path) -> Result<PathBuf>
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>
source§fn symlink_metadata(&self, path: &Path) -> Result<Metadata>
fn symlink_metadata(&self, path: &Path) -> Result<Metadata>
This method gets metadata without following symlinks in the path.
Currently identical to
metadata
because symlinks aren’t implemented
yet.fn remove_file(&self, path: &Path) -> Result<(), FsError>
fn new_open_options(&self) -> OpenOptions<'_>
fn mount( &self, _name: String, _path: &Path, _fs: Box<dyn FileSystem + Send + Sync>, ) -> Result<(), FsError>
Auto Trait Implementations§
impl Freeze for WebcVolumeFileSystem
impl !RefUnwindSafe for WebcVolumeFileSystem
impl Send for WebcVolumeFileSystem
impl Sync for WebcVolumeFileSystem
impl Unpin for WebcVolumeFileSystem
impl !UnwindSafe for WebcVolumeFileSystem
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)