[][src]Struct kvm_sys::System

pub struct System { /* fields omitted */ }

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 VirtualMachines may have different capabilities

pub fn recommended_vcpus(&self) -> u32[src]

Recommended maximum number of Vcpus

pub fn max_vcpus(&self) -> u32[src]

Maximum number of Vcpus

impl System[src]

pub fn get_supported_cpuid(&self) -> Result<CpuidHandle>[src]

Get CPUID features supported by this host

Trait Implementations

impl Debug for System[src]

Auto Trait Implementations

impl Send for System

impl Unpin for System

impl Sync for System

impl RefUnwindSafe for System

impl UnwindSafe for System

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]