#[repr(C)]pub struct kvm_msr_entry {
pub index: __u32,
pub reserved: __u32,
pub data: __u64,
}
Available on x86-64 only.
Fields§
§index: __u32
§reserved: __u32
§data: __u64
Trait Implementations§
Source§impl Clone for kvm_msr_entry
impl Clone for kvm_msr_entry
Source§fn clone(&self) -> kvm_msr_entry
fn clone(&self) -> kvm_msr_entry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for kvm_msr_entry
impl Debug for kvm_msr_entry
Source§impl Default for kvm_msr_entry
impl Default for kvm_msr_entry
Source§fn default() -> kvm_msr_entry
fn default() -> kvm_msr_entry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for kvm_msr_entry
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for kvm_msr_entry
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 FromBytes for kvm_msr_entry
impl FromBytes for kvm_msr_entry
Source§impl FromZeros for kvm_msr_entry
impl FromZeros for kvm_msr_entry
Source§impl IntoBytes for kvm_msr_entry
impl IntoBytes for kvm_msr_entry
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 PartialEq for kvm_msr_entry
impl PartialEq for kvm_msr_entry
Source§impl Serialize for kvm_msr_entry
Available on crate feature serde
only.
impl Serialize for kvm_msr_entry
Available on crate feature
serde
only.Source§impl TryFromBytes for kvm_msr_entry
impl TryFromBytes for kvm_msr_entry
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 Copy for kvm_msr_entry
impl Immutable for kvm_msr_entry
impl StructuralPartialEq for kvm_msr_entry
Auto Trait Implementations§
impl Freeze for kvm_msr_entry
impl RefUnwindSafe for kvm_msr_entry
impl Send for kvm_msr_entry
impl Sync for kvm_msr_entry
impl Unpin for kvm_msr_entry
impl UnwindSafe for kvm_msr_entry
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