pub struct System { /* private fields */ }Expand description
Handle to the KVM system.
This is used to create virtual machines and query the system for its capabilities.
Implementations§
Source§impl System
impl System
Sourcepub fn initialize() -> Result<Self>
pub fn initialize() -> Result<Self>
Initialize the KVM system
Sourcepub fn check_capability(&self, cap: Capability) -> i32
pub fn check_capability(&self, cap: Capability) -> i32
Check for the existence of a capability.
Where possible use the associated function on a VirtualMachine rather
than the System since VirtualMachines may have different
capabilities
Sourcepub fn recommended_vcpus(&self) -> u32
pub fn recommended_vcpus(&self) -> u32
Recommended maximum number of Vcpus
Source§impl System
impl System
Sourcepub fn get_supported_cpuid(&self) -> Result<CpuidHandle>
pub fn get_supported_cpuid(&self) -> Result<CpuidHandle>
Get CPUID features supported by this host
Trait Implementations§
Auto Trait Implementations§
impl Freeze for System
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnwindSafe for System
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