pub struct KernelBuilder { /* private fields */ }Expand description
Builder for kernel configuration.
§Example
VmBuilder::new()
.kernel(|k| {
k.krunfw_path("/path/to/libkrunfw.dylib")
.cmdline("debug")
});Implementations§
Source§impl KernelBuilder
impl KernelBuilder
Sourcepub fn krunfw_path(self, path: impl AsRef<Path>) -> Self
pub fn krunfw_path(self, path: impl AsRef<Path>) -> Self
Set an explicit path to the libkrunfw shared library.
When not set, the OS dynamic linker’s default search path is used.
Trait Implementations§
Source§impl Clone for KernelBuilder
impl Clone for KernelBuilder
Source§fn clone(&self) -> KernelBuilder
fn clone(&self) -> KernelBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KernelBuilder
impl Debug for KernelBuilder
Source§impl Default for KernelBuilder
impl Default for KernelBuilder
Source§fn default() -> KernelBuilder
fn default() -> KernelBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KernelBuilder
impl RefUnwindSafe for KernelBuilder
impl Send for KernelBuilder
impl Sync for KernelBuilder
impl Unpin for KernelBuilder
impl UnsafeUnpin for KernelBuilder
impl UnwindSafe for KernelBuilder
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