pub struct LinuxBootLoader { /* private fields */ }Expand description
Stores the kernel, initrd, and command-line paths for booting a Linux guest.
On macOS this wraps VZLinuxBootLoader; here it is a plain data holder
consumed by VirtualMachine::new().
Uses RefCell for interior mutability to match Darwins &self` setter API.
Implementations§
Source§impl LinuxBootLoader
impl LinuxBootLoader
pub fn new(kernel_path: &str, initrd_path: &str, command_line: &str) -> Self
pub fn new_with_kernel(kernel_path: &str) -> Self
pub fn set_initrd(&self, initrd_path: &str)
Sourcepub fn set_command_line(&self, command_line: &str)
pub fn set_command_line(&self, command_line: &str)
cloud-hypervisor attaches a virtio-console, so console=hvc0 from the
caller is kept as-is.
Auto Trait Implementations§
impl !Freeze for LinuxBootLoader
impl !RefUnwindSafe for LinuxBootLoader
impl !Sync for LinuxBootLoader
impl Send for LinuxBootLoader
impl Unpin for LinuxBootLoader
impl UnsafeUnpin for LinuxBootLoader
impl UnwindSafe for LinuxBootLoader
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