Struct kvm_bindings::kvm_cpuid2
source · #[repr(C)]pub struct kvm_cpuid2 {
pub nent: __u32,
pub padding: __u32,
pub entries: __IncompleteArrayField<kvm_cpuid_entry2>,
}
Available on x86-64 only.
Fields§
§nent: __u32
§padding: __u32
§entries: __IncompleteArrayField<kvm_cpuid_entry2>
Trait Implementations§
source§impl AsBytes for kvm_cpuid2where
__u32: AsBytes,
__IncompleteArrayField<kvm_cpuid_entry2>: AsBytes,
HasPadding<kvm_cpuid2, { _ }>: ShouldBe<false>,
impl AsBytes for kvm_cpuid2where
__u32: AsBytes,
__IncompleteArrayField<kvm_cpuid_entry2>: AsBytes,
HasPadding<kvm_cpuid2, { _ }>: ShouldBe<false>,
source§impl Debug for kvm_cpuid2
impl Debug for kvm_cpuid2
source§impl Default for kvm_cpuid2
impl Default for kvm_cpuid2
source§fn default() -> kvm_cpuid2
fn default() -> kvm_cpuid2
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for kvm_cpuid2
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for kvm_cpuid2
Available on crate feature
serde
only.source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FamStruct for kvm_cpuid2
Available on crate feature fam-wrappers
only.
impl FamStruct for kvm_cpuid2
Available on crate feature
fam-wrappers
only.§type Entry = kvm_cpuid_entry2
type Entry = kvm_cpuid_entry2
The type of the FAM entries
source§fn as_mut_slice(&mut self) -> &mut [<Self as FamStruct>::Entry]
fn as_mut_slice(&mut self) -> &mut [<Self as FamStruct>::Entry]
Get the FAM entries as mut slice
source§impl FromBytes for kvm_cpuid2
impl FromBytes for kvm_cpuid2
source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moresource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moresource§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moresource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moresource§impl FromZeroes for kvm_cpuid2
impl FromZeroes for kvm_cpuid2
source§impl PartialEq for kvm_cpuid2
Available on crate feature fam-wrappers
only.
impl PartialEq for kvm_cpuid2
Available on crate feature
fam-wrappers
only.source§fn eq(&self, other: &kvm_cpuid2) -> bool
fn eq(&self, other: &kvm_cpuid2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
impl Freeze for kvm_cpuid2
impl RefUnwindSafe for kvm_cpuid2
impl Send for kvm_cpuid2
impl Sync for kvm_cpuid2
impl Unpin for kvm_cpuid2
impl UnwindSafe for kvm_cpuid2
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