pub enum SnapshotRootDisk {
Managed,
Flat,
Tmpfs {
size_mib: Option<u32>,
},
}Expand description
Guest-visible OCI root-disk layout captured by the snapshot.
This is required because a one-layer raw disk can either be a managed OverlayFS upper or a complete flat root filesystem. Those byte payloads have different attachment and restore semantics even when their physical layer shapes happen to match.
Variants§
Managed
Immutable OCI lower layers plus a writable managed upper device.
Flat
One complete filesystem attached directly as the guest root device.
Tmpfs
An OCI lower with a writable upper held entirely in guest memory.
Trait Implementations§
Source§impl Clone for SnapshotRootDisk
impl Clone for SnapshotRootDisk
Source§fn clone(&self) -> SnapshotRootDisk
fn clone(&self) -> SnapshotRootDisk
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 SnapshotRootDisk
impl Debug for SnapshotRootDisk
Source§impl Default for SnapshotRootDisk
impl Default for SnapshotRootDisk
Source§fn default() -> SnapshotRootDisk
fn default() -> SnapshotRootDisk
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnapshotRootDisk
impl<'de> Deserialize<'de> for SnapshotRootDisk
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotRootDisk, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotRootDisk, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SnapshotRootDisk
Source§impl PartialEq for SnapshotRootDisk
impl PartialEq for SnapshotRootDisk
Source§impl Serialize for SnapshotRootDisk
impl Serialize for SnapshotRootDisk
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SnapshotRootDisk
Auto Trait Implementations§
impl Freeze for SnapshotRootDisk
impl RefUnwindSafe for SnapshotRootDisk
impl Send for SnapshotRootDisk
impl Sync for SnapshotRootDisk
impl Unpin for SnapshotRootDisk
impl UnsafeUnpin for SnapshotRootDisk
impl UnwindSafe for SnapshotRootDisk
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