pub struct OverlayFS { /* private fields */ }
Expand description

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

Create a new overlay FileSystem from the given layers, only the first layer is written to

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Iterates over all entries of this directory path

Creates the directory at this path Read more

Opens the file at this path for reading

Creates a file at this path for writing

Opens the file at this path for appending

Returns the file metadata for the file at this path

Returns true if a file or directory at path exists, false otherwise

Removes the file at this path

Removes the directory at this path

Copies the src path to the destination path within the same filesystem (optional)

Moves the src path to the destination path within the same filesystem (optional)

Moves the src directory to the destination path within the same filesystem (optional)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.