pub struct MountSpec {
pub source: String,
pub target: String,
pub fstype: String,
pub options: Option<String>,
}Expand description
One declarative mount beyond the canonical /proc /sys /dev /run /tmp set. Typical use: virtio-fs shares from the host (e.g. /nix/store mounted in the guest readonly so services can exec binaries by absolute store path without bloating the initrd with the closure).
Fields§
§source: StringFor virtiofs: the mount tag. For block devices: /dev path.
target: StringMount point inside the guest. Created if missing.
fstype: StringFilesystem type (virtiofs, ext4, tmpfs, …).
options: Option<String>Comma-separated mount options (ro, nosuid, …). Optional.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MountSpec
impl<'de> Deserialize<'de> for MountSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MountSpec
impl StructuralPartialEq for MountSpec
Source§impl TataraDomain for MountSpec
impl TataraDomain for MountSpec
Source§fn compile_from_args(args: &[Sexp]) -> Result<Self>
fn compile_from_args(args: &[Sexp]) -> Result<Self>
Parse the argument list (everything after the keyword) into Self.
Auto Trait Implementations§
impl Freeze for MountSpec
impl RefUnwindSafe for MountSpec
impl Send for MountSpec
impl Sync for MountSpec
impl Unpin for MountSpec
impl UnsafeUnpin for MountSpec
impl UnwindSafe for MountSpec
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