pub struct FuseOverlayFs { /* private fields */ }Expand description
Fuse overlay filesystem handle
Implementations§
Source§impl FuseOverlayFs
impl FuseOverlayFs
Sourcepub 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<FuseOverlayFs>
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<FuseOverlayFs>
Initialise a new FuseOverlayFs handle
Sourcepub fn readonly(
lower: impl IntoIterator<Item = impl AsRef<Path>>,
target: impl AsRef<Path>,
) -> Result<FuseOverlayFs>
pub fn readonly( lower: impl IntoIterator<Item = impl AsRef<Path>>, target: impl AsRef<Path>, ) -> Result<FuseOverlayFs>
Initialise a new readonly FuseOverlayFs handle
Sourcepub fn writable(
lower: impl IntoIterator<Item = impl AsRef<Path>>,
upper: impl AsRef<Path>,
work: impl AsRef<Path>,
target: impl AsRef<Path>,
) -> Result<FuseOverlayFs>
pub fn writable( lower: impl IntoIterator<Item = impl AsRef<Path>>, upper: impl AsRef<Path>, work: impl AsRef<Path>, target: impl AsRef<Path>, ) -> Result<FuseOverlayFs>
Initialise a new writable FuseOverlayFs handle
pub fn work(&self) -> Option<&PathBuf>
pub fn set_work(&mut self, work: PathBuf) -> Result<()>
Trait Implementations§
Source§impl Debug for FuseOverlayFs
impl Debug for FuseOverlayFs
Source§impl Drop for FuseOverlayFs
impl Drop for FuseOverlayFs
Source§impl Filesystem for FuseOverlayFs
impl Filesystem for FuseOverlayFs
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
Source§impl StackableFilesystem for FuseOverlayFs
impl StackableFilesystem for FuseOverlayFs
Source§impl StateRecovery for FuseOverlayFs
impl StateRecovery for FuseOverlayFs
Auto Trait Implementations§
impl Freeze for FuseOverlayFs
impl RefUnwindSafe for FuseOverlayFs
impl Send for FuseOverlayFs
impl Sync for FuseOverlayFs
impl Unpin for FuseOverlayFs
impl UnwindSafe for FuseOverlayFs
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