pub struct KvmHypervisor { /* private fields */ }Expand description
Implementations§
Source§impl KvmHypervisor
impl KvmHypervisor
Sourcepub fn new() -> Result<Self, HypervisorError>
pub fn new() -> Result<Self, HypervisorError>
Creates a new KVM hypervisor instance.
§Errors
Returns an error if:
/dev/kvmcannot be opened- KVM API version is not supported
- Required KVM capabilities are not available
Sourcepub fn supports_arch(&self, arch: CpuArch) -> bool
pub fn supports_arch(&self, arch: CpuArch) -> bool
Checks if the given architecture is supported.
Trait Implementations§
Source§impl Hypervisor for KvmHypervisor
impl Hypervisor for KvmHypervisor
Source§fn capabilities(&self) -> &PlatformCapabilities
fn capabilities(&self) -> &PlatformCapabilities
Returns the platform capabilities.
Auto Trait Implementations§
impl Freeze for KvmHypervisor
impl RefUnwindSafe for KvmHypervisor
impl Send for KvmHypervisor
impl Sync for KvmHypervisor
impl Unpin for KvmHypervisor
impl UnsafeUnpin for KvmHypervisor
impl UnwindSafe for KvmHypervisor
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