[−][src]Struct kvm_sys::System
Handle to the KVM system.
This is used to create virtual machines and query the system for its capabilities.
Methods
impl System
[src]
pub fn initialize() -> Result<Self>
[src]
Initialize the KVM system
pub fn check_capability(&self, cap: Capability) -> i32
[src]
Check for the existence of a capability.
Where possible use the associated function on a VirtualMachine
rather
than the System
since VirtualMachine
s may have different
capabilities
pub fn recommended_vcpus(&self) -> u32
[src]
Recommended maximum number of Vcpu
s
pub fn max_vcpus(&self) -> u32
[src]
Maximum number of Vcpu
s
impl System
[src]
pub fn get_supported_cpuid(&self) -> Result<CpuidHandle>
[src]
Get CPUID features supported by this host
Trait Implementations
Auto Trait Implementations
impl Send for System
impl Unpin for System
impl Sync for System
impl UnwindSafe for System
impl RefUnwindSafe for System
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,