pub struct BootSource {
pub boot_args: Option<String>,
pub initrd_path: Option<String>,
pub kernel_image_path: String,
}
Expand description
Defines the boot configuration for a microVM, specifying the kernel image, optional initial ramdisk, and kernel boot parameters. This configuration must be set before starting the microVM and cannot be modified after boot.
Fields§
§boot_args: Option<String>
Kernel boot arguments
initrd_path: Option<String>
Host level path to the initrd image used to boot the guest
kernel_image_path: String
Host level path to the kernel image used to boot the guest
Trait Implementations§
Source§impl Debug for BootSource
impl Debug for BootSource
Source§impl Default for BootSource
impl Default for BootSource
Source§fn default() -> BootSource
fn default() -> BootSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BootSource
impl<'de> Deserialize<'de> for BootSource
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
Source§impl Serialize for BootSource
impl Serialize for BootSource
Source§impl Validate for BootSource
impl Validate for BootSource
Source§impl<'v_a> ValidateArgs<'v_a> for BootSource
impl<'v_a> ValidateArgs<'v_a> for BootSource
Auto Trait Implementations§
impl Freeze for BootSource
impl RefUnwindSafe for BootSource
impl Send for BootSource
impl Sync for BootSource
impl Unpin for BootSource
impl UnwindSafe for BootSource
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