#[non_exhaustive]pub enum BootSpec {
Kernel {
image: PathBuf,
cmdline: String,
initrd: Option<PathBuf>,
},
Firmware {
image: PathBuf,
},
MacOs {
aux_storage: PathBuf,
hardware_model: Vec<u8>,
machine_id: Vec<u8>,
},
}Expand description
How the guest starts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Kernel
Direct kernel boot.
Fields
Firmware
Firmware (UEFI) boot; the firmware finds the OS on the disks.
MacOs
A macOS guest under Virtualization.framework.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BootSpec
impl<'de> Deserialize<'de> for BootSpec
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 StructuralPartialEq for BootSpec
Auto Trait Implementations§
impl Freeze for BootSpec
impl RefUnwindSafe for BootSpec
impl Send for BootSpec
impl Sync for BootSpec
impl Unpin for BootSpec
impl UnsafeUnpin for BootSpec
impl UnwindSafe for BootSpec
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