pub struct MountInfo {
pub path: PathBuf,
pub read_only: bool,
pub resident_bytes: Option<u64>,
}Expand description
Information about a mount point.
Returned by KernelBackend::mounts. Pure data so it can live in the leaf
types crate alongside the rest of the backend contract.
Fields§
§path: PathBufThe mount path (e.g., “/mnt/project”).
read_only: boolWhether this mount is read-only.
resident_bytes: Option<u64>Memory-resident content bytes held by this mount, if it tracks them.
Some(n) for memory-backed mounts (MemoryFs, OverlayFs).
None for disk-backed mounts (LocalFs) — disk residency is the
host’s concern (df), not this counter. Embedder-supplied MountInfo
values that do not track residency should use None so kaish-mounts
renders - rather than a misleading number.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MountInfo
impl RefUnwindSafe for MountInfo
impl Send for MountInfo
impl Sync for MountInfo
impl Unpin for MountInfo
impl UnsafeUnpin for MountInfo
impl UnwindSafe for MountInfo
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