From 8e43cf83e971d34f6272110300461fe48031ee36 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 17 Aug 2021 21:11:42 +0000 Subject: deploy: fb6b634de37e38fd1821f2cf9228df176f9526f5 --- kvm_rs/kvm/struct.Kvm.html | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'kvm_rs/kvm/struct.Kvm.html') diff --git a/kvm_rs/kvm/struct.Kvm.html b/kvm_rs/kvm/struct.Kvm.html index 4b042b2..ba8730d 100644 --- a/kvm_rs/kvm/struct.Kvm.html +++ b/kvm_rs/kvm/struct.Kvm.html @@ -1,24 +1,22 @@ Kvm in kvm_rs::kvm - Rust -

Struct kvm_rs::kvm::Kvm[][src]

pub struct Kvm { /* fields omitted */ }

Wrapper for /dev/kvm ioctls.

+

Struct kvm_rs::kvm::Kvm[][src]

pub struct Kvm { /* fields omitted */ }
Expand description

Wrapper for /dev/kvm ioctls.

Representation of the file descriptor obtained by opening /dev/kvm. This wrapper provides access to the system ioctls as described in KVM API.

-

Implementations

impl Kvm[src]

pub fn new() -> Result<Kvm>[src]

Open the /dev/kvm device.

-

pub fn create_vm(&self) -> Result<Vm>[src]

Create a new virtual machine with the KVM_CREATE_VM ioctl. +

Implementations

Open the /dev/kvm device.

+

Create a new virtual machine with the KVM_CREATE_VM ioctl. Returns a wrapper vm::Vm representing the VM.

-

pub fn check_extenstion(&self, cap: CapBool) -> bool[src]

Check availability of an extension with the KVM_CHECK_EXTENSION +

Check availability of an extension with the KVM_CHECK_EXTENSION ioctl.

-

pub fn check_extenstion_int(&self, cap: CapInt) -> i32[src]

Check availability of an extension with the KVM_CHECK_EXTENSION +

Check availability of an extension with the KVM_CHECK_EXTENSION ioctl.

-

Auto Trait Implementations

impl RefUnwindSafe for Kvm

impl Send for Kvm

impl Sync for Kvm

impl Unpin for Kvm

impl UnwindSafe for Kvm

Blanket Implementations

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

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

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

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.

-
- \ No newline at end of file +

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Performs the conversion.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file -- cgit v1.2.3