pub struct BootSource {
pub boot_args: Option<String>,
pub initrd_path: Option<PathBuf>,
pub kernel_image_path: PathBuf,
}
Expand description
Boot source descriptor.
Fieldsยง
ยงboot_args: Option<String>
Kernel boot arguments defines the command-line arguments that should be passed to the kernel.
initrd_path: Option<PathBuf>
Host level path to the initrd image used to boot the guest
kernel_image_path: PathBuf
Host level path to the kernel image used to boot the guest The kernel image must be an uncompressed ELF image. Required: true
Trait Implementationsยง
Sourceยงimpl Clone for BootSource
impl Clone for BootSource
Sourceยงfn clone(&self) -> BootSource
fn clone(&self) -> BootSource
Returns a duplicate of the value. Read more
1.0.0 ยท 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 BootSource
impl Debug for BootSource
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 Hash for BootSource
impl Hash for BootSource
Sourceยงimpl Ord for BootSource
impl Ord for BootSource
Sourceยงfn cmp(&self, other: &BootSource) -> Ordering
fn cmp(&self, other: &BootSource) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for BootSource
impl PartialEq for BootSource
Sourceยงimpl PartialOrd for BootSource
impl PartialOrd for BootSource
Sourceยงimpl Serialize for BootSource
impl Serialize for BootSource
impl Eq for BootSource
impl StructuralPartialEq 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