From 091d408a87d0f73f1c4e0166849ca9a566f005e0 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 15 Nov 2023 21:40:27 +0000 Subject: deploy: f52d556e0e1bf2350b3b42cff198550a267ceb0b --- src/kvm_rs/cap.rs.html | 124 +++++++++++++++++++++++-------------------------- 1 file changed, 58 insertions(+), 66 deletions(-) (limited to 'src/kvm_rs/cap.rs.html') diff --git a/src/kvm_rs/cap.rs.html b/src/kvm_rs/cap.rs.html index 34abcf0..03bd966 100644 --- a/src/kvm_rs/cap.rs.html +++ b/src/kvm_rs/cap.rs.html @@ -1,77 +1,69 @@ -cap.rs - source -
1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-
//! Definitions of KVM capabilities.
+cap.rs - source
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+
//! Definitions of KVM capabilities.
 
-use crate::kvm_sys;
-use std::convert::Into;
+use crate::kvm_sys;
+use std::convert::Into;
 
-/// Definition of capabilities that return a bool value indicating whether the capability is
-/// supported or not.
-#[repr(u64)]
-pub enum CapBool {
-    /// Check if capabilities can be queried on VM fds (`KVM_CAP_CHECK_EXTENSION_VM`).
-    CheckExtensionVm = kvm_sys::KVM_CAP_CHECK_EXTENSION_VM,
+/// Definition of capabilities that return a bool value indicating whether the capability is
+/// supported or not.
+#[repr(u64)]
+pub enum CapBool {
+    /// Check if capabilities can be queried on VM fds (`KVM_CAP_CHECK_EXTENSION_VM`).
+    CheckExtensionVm = kvm_sys::KVM_CAP_CHECK_EXTENSION_VM,
 }
 
-impl Into<u64> for CapBool {
-    fn into(self) -> u64 {
-        self as u64
+impl Into<u64> for CapBool {
+    fn into(self) -> u64 {
+        self as u64
     }
 }
 
-/// Definition of capabilities that return an integer value indicating the amount of the queried
-/// capability.
-#[repr(u64)]
-pub enum CapInt {
-    /// Get the recommended max VPCUs (`KVM_CAP_NR_VCPUS`).
-    NrVcpus = kvm_sys::KVM_CAP_NR_VCPUS,
-    /// Get the possible max VPCUs (`KVM_CAP_MAX_VCPUS`).
-    MaxVcpus = kvm_sys::KVM_CAP_MAX_VCPUS,
+/// Definition of capabilities that return an integer value indicating the amount of the queried
+/// capability.
+#[repr(u64)]
+pub enum CapInt {
+    /// Get the recommended max VPCUs (`KVM_CAP_NR_VCPUS`).
+    NrVcpus = kvm_sys::KVM_CAP_NR_VCPUS,
+    /// Get the possible max VPCUs (`KVM_CAP_MAX_VCPUS`).
+    MaxVcpus = kvm_sys::KVM_CAP_MAX_VCPUS,
 }
 
-impl Into<u64> for CapInt {
-    fn into(self) -> u64 {
-        self as u64
+impl Into<u64> for CapInt {
+    fn into(self) -> u64 {
+        self as u64
     }
 }
-
-
- \ No newline at end of file + \ No newline at end of file -- cgit v1.2.3