#[repr(C)]
pub union kvm_nested_state__data {
pub vmx: kvm_vmx_nested_state_data,
pub svm: kvm_svm_nested_state_data,
}Available on x86-64 only.
Expand description
Non-zero variant of the bindgen data union.
Please note that on SVM, this type wastes one page as the VMX state is larger.
Fields§
§vmx: kvm_vmx_nested_state_data§svm: kvm_svm_nested_state_dataTrait Implementations§
Source§impl Clone for kvm_nested_state__data
impl Clone for kvm_nested_state__data
Source§fn clone(&self) -> kvm_nested_state__data
fn clone(&self) -> kvm_nested_state__data
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 Default for kvm_nested_state__data
impl Default for kvm_nested_state__data
Source§impl FromBytes for kvm_nested_state__data
impl FromBytes for kvm_nested_state__data
Source§impl FromZeros for kvm_nested_state__data
impl FromZeros for kvm_nested_state__data
Source§impl IntoBytes for kvm_nested_state__data
Available on crate feature serde only.
impl IntoBytes for kvm_nested_state__data
Available on crate feature
serde only.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_nested_state__data
impl TryFromBytes for kvm_nested_state__data
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_nested_state__data
impl Immutable for kvm_nested_state__data
Auto Trait Implementations§
impl Freeze for kvm_nested_state__data
impl RefUnwindSafe for kvm_nested_state__data
impl Send for kvm_nested_state__data
impl Sync for kvm_nested_state__data
impl Unpin for kvm_nested_state__data
impl UnwindSafe for kvm_nested_state__data
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