pub struct MountSpec {
pub host_path: PathBuf,
pub guest_path: String,
pub read_only: bool,
pub copy_on_write: bool,
}Expand description
Specification for mounting a host directory into the guest via 9P2000.L over vsock.
Fields§
§host_path: PathBuf§guest_path: String§read_only: bool§copy_on_write: boolStage all guest writes/deletes/renames in a pure-Rust in-memory Copy-on-Write overlay
without mutating host_path (supports diff, snapshot, commit, and discard).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for MountSpec
impl Freeze for MountSpec
impl Move for MountSpec
impl RefUnwindSafe for MountSpec
impl Send for MountSpecwhere
RawVecInner: Send,
impl Sync for MountSpecwhere
RawVecInner: Sync,
impl Unpin for MountSpec
impl UnsafeUnpin for MountSpec
impl UnwindSafe for MountSpecwhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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