pub enum RootfsSpec {
Share {
read_only: bool,
},
Block {
fstype: String,
},
}Expand description
How the guest root is provided. Mirrors the host’s mutually-exclusive
RootfsShare / RootfsBlock, but as one closed enum so “which rootfs” is a
single value the guest matches on rather than two booleans it has to
reconcile.
Variants§
virtio-fs directory share (tag rootfs), overlaid in the guest. The host
always mounts it read-only; read_only here is whether the guest
presents a read-only root (--rootfs-ro) vs. a writable tmpfs/scratch
overlay.
Block
Block image (e.g. squashfs) on /dev/vda, overlaid in the guest.
fstype is the filesystem to mount it as (e.g. "squashfs").
Trait Implementations§
Source§impl Clone for RootfsSpec
impl Clone for RootfsSpec
Source§fn clone(&self) -> RootfsSpec
fn clone(&self) -> RootfsSpec
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 moreSource§impl Debug for RootfsSpec
impl Debug for RootfsSpec
Source§impl<'de> Deserialize<'de> for RootfsSpec
impl<'de> Deserialize<'de> for RootfsSpec
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 RootfsSpec
Source§impl PartialEq for RootfsSpec
impl PartialEq for RootfsSpec
Source§fn eq(&self, other: &RootfsSpec) -> bool
fn eq(&self, other: &RootfsSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RootfsSpec
impl Serialize for RootfsSpec
impl StructuralPartialEq for RootfsSpec
Auto Trait Implementations§
impl Freeze for RootfsSpec
impl RefUnwindSafe for RootfsSpec
impl Send for RootfsSpec
impl Sync for RootfsSpec
impl Unpin for RootfsSpec
impl UnsafeUnpin for RootfsSpec
impl UnwindSafe for RootfsSpec
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