pub struct OverlayHandle {
pub fs: Arc<OverlayFs>,
pub mount_path: PathBuf,
pub commit_root: PathBuf,
}Expand description
Handle to an active overlay session, kept on the kernel and shared to
ExecContext so the kaish-vfs builtin can reach the OverlayFs.
The mount_path is the VFS prefix the overlay was mounted under (e.g.
/home/user); commit_root is the real filesystem path the overlay’s
lower is backed by (used as the target for kaish-vfs commit).
Fields§
§fs: Arc<OverlayFs>The mounted OverlayFs, Arc-shared so the builtin can call inspection
methods without holding a VfsRouter lock.
mount_path: PathBufVFS path this overlay is mounted at (e.g. /home/user).
commit_root: PathBufReal filesystem root to commit into. Same as the lower’s root.
Trait Implementations§
Source§impl Clone for OverlayHandle
impl Clone for OverlayHandle
Source§fn clone(&self) -> OverlayHandle
fn clone(&self) -> OverlayHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for OverlayHandle
impl !UnwindSafe for OverlayHandle
impl Freeze for OverlayHandle
impl Send for OverlayHandle
impl Sync for OverlayHandle
impl Unpin for OverlayHandle
impl UnsafeUnpin for OverlayHandle
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