Struct vfs::impls::overlay::OverlayFS [−][src]
An overlay file system combining several filesystems into one, an upper layer with read/write access and lower layers with only read access
Files in upper layers shadow those in lower layers. Directories are the merged view of all layers.
NOTE: To allow removing files and directories (e.g. via remove_file()) from the lower layer filesystems, this mechanism creates a .whiteout
folder in the root of the upper level filesystem to mark removed files
Implementations
impl OverlayFS
[src]
pub fn new(layers: &[VfsPath]) -> Self
[src]
Create a new overlay FileSystem from the given layers, only the first layer is written to
Trait Implementations
impl Clone for OverlayFS
[src]
impl Debug for OverlayFS
[src]
impl FileSystem for OverlayFS
[src]
fn read_dir(&self, path: &str) -> VfsResult<Box<dyn Iterator<Item = String>>>
[src]
fn create_dir(&self, path: &str) -> VfsResult<()>
[src]
fn open_file(&self, path: &str) -> VfsResult<Box<dyn SeekAndRead>>
[src]
fn create_file(&self, path: &str) -> VfsResult<Box<dyn Write>>
[src]
fn append_file(&self, path: &str) -> VfsResult<Box<dyn Write>>
[src]
fn metadata(&self, path: &str) -> VfsResult<VfsMetadata>
[src]
fn exists(&self, path: &str) -> VfsResult<bool>
[src]
fn remove_file(&self, path: &str) -> VfsResult<()>
[src]
fn remove_dir(&self, path: &str) -> VfsResult<()>
[src]
fn copy_file(&self, _src: &str, _dest: &str) -> VfsResult<()>
[src]
fn move_file(&self, _src: &str, _dest: &str) -> VfsResult<()>
[src]
fn move_dir(&self, _src: &str, _dest: &str) -> VfsResult<()>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for OverlayFS
impl Send for OverlayFS
impl Sync for OverlayFS
impl Unpin for OverlayFS
impl !UnwindSafe for OverlayFS
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,