Struct kvm_sys::x86::bindings::kvm_vcpu_events
source · #[repr(C)]pub struct kvm_vcpu_events {
pub exception: kvm_vcpu_events__bindgen_ty_1,
pub interrupt: kvm_vcpu_events__bindgen_ty_2,
pub nmi: kvm_vcpu_events__bindgen_ty_3,
pub sipi_vector: u32,
pub flags: u32,
pub smi: kvm_vcpu_events__bindgen_ty_4,
pub triple_fault: kvm_vcpu_events__bindgen_ty_5,
pub reserved: [u8; 26],
pub exception_has_payload: u8,
pub exception_payload: u64,
}
Fields§
§exception: kvm_vcpu_events__bindgen_ty_1
§interrupt: kvm_vcpu_events__bindgen_ty_2
§nmi: kvm_vcpu_events__bindgen_ty_3
§sipi_vector: u32
§flags: u32
§smi: kvm_vcpu_events__bindgen_ty_4
§triple_fault: kvm_vcpu_events__bindgen_ty_5
§reserved: [u8; 26]
§exception_has_payload: u8
§exception_payload: u64
Trait Implementations§
source§impl Clone for kvm_vcpu_events
impl Clone for kvm_vcpu_events
source§fn clone(&self) -> kvm_vcpu_events
fn clone(&self) -> kvm_vcpu_events
Returns a copy 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_vcpu_events
impl Debug for kvm_vcpu_events
source§impl Default for kvm_vcpu_events
impl Default for kvm_vcpu_events
source§fn default() -> kvm_vcpu_events
fn default() -> kvm_vcpu_events
Returns the “default value” for a type. Read more
source§impl FromBytes for kvm_vcpu_eventswhere
kvm_vcpu_events__bindgen_ty_1: FromBytes,
kvm_vcpu_events__bindgen_ty_2: FromBytes,
kvm_vcpu_events__bindgen_ty_3: FromBytes,
u32: FromBytes,
kvm_vcpu_events__bindgen_ty_4: FromBytes,
kvm_vcpu_events__bindgen_ty_5: FromBytes,
[u8; 26]: FromBytes,
u8: FromBytes,
u64: FromBytes,
impl FromBytes for kvm_vcpu_eventswhere
kvm_vcpu_events__bindgen_ty_1: FromBytes,
kvm_vcpu_events__bindgen_ty_2: FromBytes,
kvm_vcpu_events__bindgen_ty_3: FromBytes,
u32: FromBytes,
kvm_vcpu_events__bindgen_ty_4: FromBytes,
kvm_vcpu_events__bindgen_ty_5: FromBytes,
[u8; 26]: FromBytes,
u8: FromBytes,
u64: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
Interprets the suffix of the given bytes as a
&Self
. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
source§impl FromZeros for kvm_vcpu_eventswhere
kvm_vcpu_events__bindgen_ty_1: FromZeros,
kvm_vcpu_events__bindgen_ty_2: FromZeros,
kvm_vcpu_events__bindgen_ty_3: FromZeros,
u32: FromZeros,
kvm_vcpu_events__bindgen_ty_4: FromZeros,
kvm_vcpu_events__bindgen_ty_5: FromZeros,
[u8; 26]: FromZeros,
u8: FromZeros,
u64: FromZeros,
impl FromZeros for kvm_vcpu_eventswhere
kvm_vcpu_events__bindgen_ty_1: FromZeros,
kvm_vcpu_events__bindgen_ty_2: FromZeros,
kvm_vcpu_events__bindgen_ty_3: FromZeros,
u32: FromZeros,
kvm_vcpu_events__bindgen_ty_4: FromZeros,
kvm_vcpu_events__bindgen_ty_5: FromZeros,
[u8; 26]: FromZeros,
u8: FromZeros,
u64: FromZeros,
source§impl IntoBytes for kvm_vcpu_eventswhere
kvm_vcpu_events__bindgen_ty_1: IntoBytes,
kvm_vcpu_events__bindgen_ty_2: IntoBytes,
kvm_vcpu_events__bindgen_ty_3: IntoBytes,
u32: IntoBytes,
kvm_vcpu_events__bindgen_ty_4: IntoBytes,
kvm_vcpu_events__bindgen_ty_5: IntoBytes,
[u8; 26]: IntoBytes,
u8: IntoBytes,
u64: IntoBytes,
(): PaddingFree<Self, { _ }>,
impl IntoBytes for kvm_vcpu_eventswhere
kvm_vcpu_events__bindgen_ty_1: IntoBytes,
kvm_vcpu_events__bindgen_ty_2: IntoBytes,
kvm_vcpu_events__bindgen_ty_3: IntoBytes,
u32: IntoBytes,
kvm_vcpu_events__bindgen_ty_4: IntoBytes,
kvm_vcpu_events__bindgen_ty_5: IntoBytes,
[u8; 26]: IntoBytes,
u8: IntoBytes,
u64: IntoBytes,
(): PaddingFree<Self, { _ }>,
§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
§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 KnownLayout for kvm_vcpu_eventswhere
u64: KnownLayout,
impl KnownLayout for kvm_vcpu_eventswhere
u64: KnownLayout,
§type PointerMetadata = <u64 as KnownLayout>::PointerMetadata
type PointerMetadata = <u64 as KnownLayout>::PointerMetadata
The type of metadata stored in a pointer to
Self
. Read moresource§impl TryFromBytes for kvm_vcpu_eventswhere
kvm_vcpu_events__bindgen_ty_1: TryFromBytes,
kvm_vcpu_events__bindgen_ty_2: TryFromBytes,
kvm_vcpu_events__bindgen_ty_3: TryFromBytes,
u32: TryFromBytes,
kvm_vcpu_events__bindgen_ty_4: TryFromBytes,
kvm_vcpu_events__bindgen_ty_5: TryFromBytes,
[u8; 26]: TryFromBytes,
u8: TryFromBytes,
u64: TryFromBytes,
impl TryFromBytes for kvm_vcpu_eventswhere
kvm_vcpu_events__bindgen_ty_1: TryFromBytes,
kvm_vcpu_events__bindgen_ty_2: TryFromBytes,
kvm_vcpu_events__bindgen_ty_3: TryFromBytes,
u32: TryFromBytes,
kvm_vcpu_events__bindgen_ty_4: TryFromBytes,
kvm_vcpu_events__bindgen_ty_5: TryFromBytes,
[u8; 26]: TryFromBytes,
u8: TryFromBytes,
u64: TryFromBytes,
§fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§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,
§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,
§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_vcpu_events
impl Immutable for kvm_vcpu_eventswhere
kvm_vcpu_events__bindgen_ty_1: Immutable,
kvm_vcpu_events__bindgen_ty_2: Immutable,
kvm_vcpu_events__bindgen_ty_3: Immutable,
u32: Immutable,
kvm_vcpu_events__bindgen_ty_4: Immutable,
kvm_vcpu_events__bindgen_ty_5: Immutable,
[u8; 26]: Immutable,
u8: Immutable,
u64: Immutable,
Auto Trait Implementations§
impl Freeze for kvm_vcpu_events
impl RefUnwindSafe for kvm_vcpu_events
impl Send for kvm_vcpu_events
impl Sync for kvm_vcpu_events
impl Unpin for kvm_vcpu_events
impl UnwindSafe for kvm_vcpu_events
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)