Struct kvm_bindings::kvm_msrs
source · #[repr(C)]pub struct kvm_msrs {
pub nmsrs: __u32,
pub pad: __u32,
pub entries: __IncompleteArrayField<kvm_msr_entry>,
}
Available on x86-64 only.
Fields§
§nmsrs: __u32
§pad: __u32
§entries: __IncompleteArrayField<kvm_msr_entry>
Trait Implementations§
source§impl AsBytes for kvm_msrswhere
__u32: AsBytes,
__IncompleteArrayField<kvm_msr_entry>: AsBytes,
HasPadding<kvm_msrs, { _ }>: ShouldBe<false>,
impl AsBytes for kvm_msrswhere
__u32: AsBytes,
__IncompleteArrayField<kvm_msr_entry>: AsBytes,
HasPadding<kvm_msrs, { _ }>: ShouldBe<false>,
source§impl<'de> Deserialize<'de> for kvm_msrs
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for kvm_msrs
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_msrs
Available on crate feature fam-wrappers
only.
impl FamStruct for kvm_msrs
Available on crate feature
fam-wrappers
only.§type Entry = kvm_msr_entry
type Entry = kvm_msr_entry
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_msrs
impl FromBytes for kvm_msrs
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_msrs
impl FromZeroes for kvm_msrs
Auto Trait Implementations§
impl Freeze for kvm_msrs
impl RefUnwindSafe for kvm_msrs
impl Send for kvm_msrs
impl Sync for kvm_msrs
impl Unpin for kvm_msrs
impl UnwindSafe for kvm_msrs
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