#[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<'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.Source§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§impl IntoBytes for kvm_msrswhere
__u32: IntoBytes,
__IncompleteArrayField<kvm_msr_entry>: IntoBytes,
(): PaddingFree<Self, { _ }>,
impl IntoBytes for kvm_msrswhere
__u32: IntoBytes,
__IncompleteArrayField<kvm_msr_entry>: IntoBytes,
(): PaddingFree<Self, { _ }>,
Source§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl TryFromBytes for kvm_msrs
impl TryFromBytes for kvm_msrs
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Immutable 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