#[repr(C)]pub struct kvm_xsave2 {
pub len: usize,
pub xsave: kvm_xsave,
}Available on crate feature
fam-wrappers and x86-64 only.Fields§
§len: usizeThe length, in units of sizeof::<__u32>(), of the FAM in kvm_xsave.
Note that KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2) returns the size of the entire
kvm_xsave structure, e.g. the sum of header and FAM. Thus, this len field
is equal to
(KVM_CHECK_EXTENSION(KVM_CAP_XSAVE2) - sizeof::<kvm_xsave>()).div_ceil(sizeof::<__u32>())xsave: kvm_xsaveTrait Implementations§
Source§impl Debug for kvm_xsave2
impl Debug for kvm_xsave2
Source§impl Default for kvm_xsave2
impl Default for kvm_xsave2
Source§fn default() -> kvm_xsave2
fn default() -> kvm_xsave2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for kvm_xsave2
Available on crate feature serde only.
impl<'de> Deserialize<'de> for kvm_xsave2
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_xsave2
impl FamStruct for kvm_xsave2
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 From<kvm_xsave> for kvm_xsave2
impl From<kvm_xsave> for kvm_xsave2
Source§impl FromBytes for kvm_xsave2
impl FromBytes for kvm_xsave2
Source§impl FromZeros for kvm_xsave2
impl FromZeros for kvm_xsave2
Source§impl IntoBytes for kvm_xsave2
impl IntoBytes for kvm_xsave2
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 Serialize for kvm_xsave2
Available on crate feature serde only.
impl Serialize for kvm_xsave2
Available on crate feature
serde only.Source§impl TryFromBytes for kvm_xsave2
impl TryFromBytes for kvm_xsave2
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_xsave2
Auto Trait Implementations§
impl Freeze for kvm_xsave2
impl RefUnwindSafe for kvm_xsave2
impl Send for kvm_xsave2
impl Sync for kvm_xsave2
impl Unpin for kvm_xsave2
impl UnwindSafe for kvm_xsave2
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