pub struct OverlayFs { /* private fields */ }Expand description
Kernel overlay filesystem handle
Implementations§
Source§impl OverlayFs
impl OverlayFs
pub fn new( lower: impl IntoIterator<Item = impl AsRef<Path>>, upper: Option<impl Into<PathBuf>>, work: Option<impl Into<PathBuf>>, target: impl AsRef<Path>, drop: bool, ) -> Result<OverlayFs>
pub fn readonly( lower: impl IntoIterator<Item = impl AsRef<Path>>, target: impl AsRef<Path>, ) -> Result<OverlayFs>
pub fn writable( lower: impl IntoIterator<Item = impl AsRef<Path>>, upper: impl AsRef<Path>, work: impl AsRef<Path>, target: impl AsRef<Path>, ) -> Result<OverlayFs>
pub fn work(&self) -> Option<&PathBuf>
pub fn set_work(&mut self, work: PathBuf) -> Result<()>
Trait Implementations§
Source§impl Filesystem for OverlayFs
impl Filesystem for OverlayFs
Source§fn set_scoped(&mut self, drop: bool) -> &mut Self
fn set_scoped(&mut self, drop: bool) -> &mut Self
Set whetever mount is scoped (unmount on drop)
Source§fn id(&self) -> Option<&PartitionID>
fn id(&self) -> Option<&PartitionID>
Retrieve the partition Identifier
“dev id” on UNIX and “volume serial number” on Windows
if the partition isn’t mounted, it’ll return None
Source§fn set_target(&mut self, target: impl AsRef<Path>) -> Result<&mut Self>
fn set_target(&mut self, target: impl AsRef<Path>) -> Result<&mut Self>
Set Target mount point
Source§fn is_available() -> bool
fn is_available() -> bool
Get if the filesystem is available
Source§fn append_options<I, T>(&mut self, options: I) -> Result<()>
fn append_options<I, T>(&mut self, options: I) -> Result<()>
Add a collection of option
Auto Trait Implementations§
impl Freeze for OverlayFs
impl RefUnwindSafe for OverlayFs
impl Send for OverlayFs
impl Sync for OverlayFs
impl Unpin for OverlayFs
impl UnwindSafe for OverlayFs
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