pub struct Launcher;Expand description
Top-level launcher API.
Implementations§
Source§impl Launcher
impl Launcher
Sourcepub fn launch(config: &LaunchConfig) -> Result<MicroVm, LaunchError>
pub fn launch(config: &LaunchConfig) -> Result<MicroVm, LaunchError>
Extract kernel from an RVF file and launch it in a QEMU microVM.
Sourcepub fn find_qemu(arch: KernelArch) -> Result<PathBuf, LaunchError>
pub fn find_qemu(arch: KernelArch) -> Result<PathBuf, LaunchError>
Find the QEMU binary for the given architecture.
Sourcepub fn kvm_available() -> bool
pub fn kvm_available() -> bool
Check if KVM is available on this host.
Auto Trait Implementations§
impl Freeze for Launcher
impl RefUnwindSafe for Launcher
impl Send for Launcher
impl Sync for Launcher
impl Unpin for Launcher
impl UnwindSafe for Launcher
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