[][src]Struct gvfs::vfs::OverlayFS

pub struct OverlayFS { /* fields omitted */ }

A structure that joins several VFS's together in order.

So if a file isn't found in one FS it will search through them looking for it and return the

Methods

impl OverlayFS[src]

pub fn new() -> Self[src]

New OverlayFS containing zero filesystems.

pub fn push(&mut self, fs: Box<dyn VFS>)[src]

Adds a new VFS to the end of the list.

pub fn roots(&self) -> &[Box<dyn VFS>][src]

Get a reference to the inner file systems, in search order.

Trait Implementations

impl VFS for OverlayFS[src]

fn open_options(
    &self,
    path: &Path,
    open_options: OpenOptions
) -> Result<Box<dyn VFile>>
[src]

Open the file at this path with the given options

fn mkdir(&self, path: &Path) -> Result[src]

Create a directory at the location by this path

fn rm(&self, path: &Path) -> Result[src]

Remove a file

fn rmrf(&self, path: &Path) -> Result[src]

Remove a file or directory and all its contents

fn exists(&self, path: &Path) -> bool[src]

Check if the file exists

fn metadata(&self, path: &Path) -> Result<Box<dyn VMetadata>>[src]

Get the file's metadata

fn read_dir(
    &self,
    path: &Path
) -> Result<Box<dyn Iterator<Item = Result<PathBuf>>>>
[src]

Retrieve the path entries in this path

fn to_path_buf(&self) -> Option<PathBuf>[src]

Retrieve the actual location of the VFS root, if available.

fn open(&self, path: &Path) -> Result<Box<dyn VFile>>[src]

Open the file at this path for reading

fn create(&self, path: &Path) -> Result<Box<dyn VFile>>[src]

Open the file at this path for writing, truncating it if it exists already

fn append(&self, path: &Path) -> Result<Box<dyn VFile>>[src]

Open the file at this path for appending, creating it if necessary

impl Debug for OverlayFS[src]

Auto Trait Implementations

impl !Sync for OverlayFS

impl Unpin for OverlayFS

impl !Send for OverlayFS

impl !UnwindSafe for OverlayFS

impl !RefUnwindSafe for OverlayFS

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]