pub struct OverlayMount { /* private fields */ }Implementations§
Source§impl OverlayMount
impl OverlayMount
Sourcepub fn mount(
lower_dirs: &[&Path],
upper_dir: &Path,
work_dir: &Path,
merged_path: &Path,
) -> Result<Self>
pub fn mount( lower_dirs: &[&Path], upper_dir: &Path, work_dir: &Path, merged_path: &Path, ) -> Result<Self>
Mount a fuse-overlayfs filesystem merging the given layers.
§Errors
Returns an error if directory creation fails or fuse-overlayfs
exits with a non-zero status.
pub fn merged_path(&self) -> &Path
pub fn upper_dir(&self) -> &Path
Trait Implementations§
Source§impl Debug for OverlayMount
impl Debug for OverlayMount
Source§impl Drop for OverlayMount
impl Drop for OverlayMount
Auto Trait Implementations§
impl !Freeze for OverlayMount
impl RefUnwindSafe for OverlayMount
impl Send for OverlayMount
impl Sync for OverlayMount
impl Unpin for OverlayMount
impl UnsafeUnpin for OverlayMount
impl UnwindSafe for OverlayMount
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more