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
source§impl PartialEq for VMKernel
impl PartialEq for VMKernel
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)