pub struct VMKernel { /* private fields */ }
Expand description
VMKernel contains information about the kernel to use for a virtual machine.
Implementations§
Source§impl VMKernel
impl VMKernel
Source§impl VMKernel
impl VMKernel
Sourcepub fn set_path(&mut self, val: PathBuf) -> &mut Self
pub fn set_path(&mut self, val: PathBuf) -> &mut Self
Path is the host path to the kernel used to boot the virtual machine.
Sourcepub fn set_parameters(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_parameters(&mut self, val: Option<Vec<String>>) -> &mut Self
Parameters specifies parameters to pass to the kernel.
Sourcepub fn set_initrd(&mut self, val: Option<String>) -> &mut Self
pub fn set_initrd(&mut self, val: Option<String>) -> &mut Self
InitRD is the host path to an initial ramdisk to be used by the kernel.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VMKernel
impl<'de> Deserialize<'de> for VMKernel
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 VMKernel
impl StructuralPartialEq for VMKernel
Auto Trait Implementations§
impl Freeze for VMKernel
impl RefUnwindSafe for VMKernel
impl Send for VMKernel
impl Sync for VMKernel
impl Unpin for VMKernel
impl UnwindSafe for VMKernel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)