Struct igvm_defs::IgvmPlatformType
source · #[repr(transparent)]pub struct IgvmPlatformType(pub u8);
Expand description
Enum describing different isolation platforms for
IGVM_VHS_SUPPORTED_PLATFORM
structures.
cbindgen:prefix-with-name=true
cbindgen:rename-all=ScreamingSnakeCase
Tuple Fields§
§0: u8
Implementations§
source§impl IgvmPlatformType
impl IgvmPlatformType
sourcepub const NATIVE: IgvmPlatformType = _
pub const NATIVE: IgvmPlatformType = _
Native platform type without isolation.
sourcepub const VSM_ISOLATION: IgvmPlatformType = _
pub const VSM_ISOLATION: IgvmPlatformType = _
Platform type of Hyper-V’s which supports VSM isolation.
sourcepub const SEV_SNP: IgvmPlatformType = _
pub const SEV_SNP: IgvmPlatformType = _
AMD SEV-SNP.
sourcepub const TDX: IgvmPlatformType = _
pub const TDX: IgvmPlatformType = _
Intel TDX.
sourcepub const SEV: IgvmPlatformType = _
Available on crate feature unstable
only.
pub const SEV: IgvmPlatformType = _
unstable
only.AMD SEV.
sourcepub const SEV_ES: IgvmPlatformType = _
Available on crate feature unstable
only.
pub const SEV_ES: IgvmPlatformType = _
unstable
only.AMD SEV-ES
Trait Implementations§
source§impl AsBytes for IgvmPlatformType
impl AsBytes for IgvmPlatformType
source§impl Clone for IgvmPlatformType
impl Clone for IgvmPlatformType
source§fn clone(&self) -> IgvmPlatformType
fn clone(&self) -> IgvmPlatformType
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 IgvmPlatformType
impl Debug for IgvmPlatformType
source§impl Default for IgvmPlatformType
impl Default for IgvmPlatformType
source§impl FromBytes for IgvmPlatformType
impl FromBytes for IgvmPlatformType
source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moresource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moresource§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moresource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moresource§impl FromZeroes for IgvmPlatformTypewhere
u8: FromZeroes,
impl FromZeroes for IgvmPlatformTypewhere
u8: FromZeroes,
source§impl Hash for IgvmPlatformType
impl Hash for IgvmPlatformType
source§impl PartialEq for IgvmPlatformType
impl PartialEq for IgvmPlatformType
source§fn eq(&self, other: &IgvmPlatformType) -> bool
fn eq(&self, other: &IgvmPlatformType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IgvmPlatformType
impl Eq for IgvmPlatformType
impl StructuralPartialEq for IgvmPlatformType
Auto Trait Implementations§
impl Freeze for IgvmPlatformType
impl RefUnwindSafe for IgvmPlatformType
impl Send for IgvmPlatformType
impl Sync for IgvmPlatformType
impl Unpin for IgvmPlatformType
impl UnwindSafe for IgvmPlatformType
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
)