pub trait Hypervisor: Send {
// Required methods
fn try_clone(&self) -> Result<Self>
where Self: Sized;
fn check_capability(&self, cap: HypervisorCap) -> bool;
}Expand description
A trait for checking hypervisor capabilities.
Required Methods§
Sourcefn try_clone(&self) -> Result<Self>where
Self: Sized,
fn try_clone(&self) -> Result<Self>where
Self: Sized,
Makes a shallow clone of this Hypervisor.
Sourcefn check_capability(&self, cap: HypervisorCap) -> bool
fn check_capability(&self, cap: HypervisorCap) -> bool
Checks if a particular HypervisorCap is available.