Struct x86defs::snp::SevNpfInfo
source · pub struct SevNpfInfo(/* private fields */);
Implementations§
source§impl SevNpfInfo
impl SevNpfInfo
sourcepub const fn with_present(self, value: bool) -> Self
pub const fn with_present(self, value: bool) -> Self
Bits: 0..1
sourcepub fn set_present(&mut self, value: bool)
pub fn set_present(&mut self, value: bool)
Bits: 0..1
sourcepub const fn read_write(&self) -> bool
pub const fn read_write(&self) -> bool
Bits: 1..2
sourcepub const fn with_read_write(self, value: bool) -> Self
pub const fn with_read_write(self, value: bool) -> Self
Bits: 1..2
sourcepub fn set_read_write(&mut self, value: bool)
pub fn set_read_write(&mut self, value: bool)
Bits: 1..2
sourcepub const fn reserved_bit_set(&self) -> bool
pub const fn reserved_bit_set(&self) -> bool
Bits: 3..4
sourcepub const fn with_reserved_bit_set(self, value: bool) -> Self
pub const fn with_reserved_bit_set(self, value: bool) -> Self
Bits: 3..4
sourcepub fn set_reserved_bit_set(&mut self, value: bool)
pub fn set_reserved_bit_set(&mut self, value: bool)
Bits: 3..4
sourcepub const fn with_fetch(self, value: bool) -> Self
pub const fn with_fetch(self, value: bool) -> Self
Bits: 4..5
sourcepub const fn shadow_stack(&self) -> bool
pub const fn shadow_stack(&self) -> bool
Bits: 6..7
sourcepub const fn with_shadow_stack(self, value: bool) -> Self
pub const fn with_shadow_stack(self, value: bool) -> Self
Bits: 6..7
sourcepub fn set_shadow_stack(&mut self, value: bool)
pub fn set_shadow_stack(&mut self, value: bool)
Bits: 6..7
sourcepub const fn rmp_failure(&self) -> bool
pub const fn rmp_failure(&self) -> bool
Bits: 31..32
sourcepub const fn with_rmp_failure(self, value: bool) -> Self
pub const fn with_rmp_failure(self, value: bool) -> Self
Bits: 31..32
sourcepub fn set_rmp_failure(&mut self, value: bool)
pub fn set_rmp_failure(&mut self, value: bool)
Bits: 31..32
sourcepub const fn caused_by_gpa_access(&self) -> bool
pub const fn caused_by_gpa_access(&self) -> bool
Bits: 32..33
sourcepub const fn with_caused_by_gpa_access(self, value: bool) -> Self
pub const fn with_caused_by_gpa_access(self, value: bool) -> Self
Bits: 32..33
sourcepub fn set_caused_by_gpa_access(&mut self, value: bool)
pub fn set_caused_by_gpa_access(&mut self, value: bool)
Bits: 32..33
sourcepub const fn caused_by_page_table_access(&self) -> bool
pub const fn caused_by_page_table_access(&self) -> bool
Bits: 33..34
sourcepub const fn with_caused_by_page_table_access(self, value: bool) -> Self
pub const fn with_caused_by_page_table_access(self, value: bool) -> Self
Bits: 33..34
sourcepub fn set_caused_by_page_table_access(&mut self, value: bool)
pub fn set_caused_by_page_table_access(&mut self, value: bool)
Bits: 33..34
sourcepub const fn encrypted_access(&self) -> bool
pub const fn encrypted_access(&self) -> bool
Bits: 34..35
sourcepub const fn with_encrypted_access(self, value: bool) -> Self
pub const fn with_encrypted_access(self, value: bool) -> Self
Bits: 34..35
sourcepub fn set_encrypted_access(&mut self, value: bool)
pub fn set_encrypted_access(&mut self, value: bool)
Bits: 34..35
sourcepub const fn rmp_size_mismatch(&self) -> bool
pub const fn rmp_size_mismatch(&self) -> bool
Bits: 35..36
sourcepub const fn with_rmp_size_mismatch(self, value: bool) -> Self
pub const fn with_rmp_size_mismatch(self, value: bool) -> Self
Bits: 35..36
sourcepub fn set_rmp_size_mismatch(&mut self, value: bool)
pub fn set_rmp_size_mismatch(&mut self, value: bool)
Bits: 35..36
sourcepub const fn vmpl_violation(&self) -> bool
pub const fn vmpl_violation(&self) -> bool
Bits: 36..37
sourcepub const fn with_vmpl_violation(self, value: bool) -> Self
pub const fn with_vmpl_violation(self, value: bool) -> Self
Bits: 36..37
sourcepub fn set_vmpl_violation(&mut self, value: bool)
pub fn set_vmpl_violation(&mut self, value: bool)
Bits: 36..37
sourcepub const fn npt_supervisor_shadow_stack(&self) -> bool
pub const fn npt_supervisor_shadow_stack(&self) -> bool
Bits: 37..38
sourcepub const fn with_npt_supervisor_shadow_stack(self, value: bool) -> Self
pub const fn with_npt_supervisor_shadow_stack(self, value: bool) -> Self
Bits: 37..38
sourcepub fn set_npt_supervisor_shadow_stack(&mut self, value: bool)
pub fn set_npt_supervisor_shadow_stack(&mut self, value: bool)
Bits: 37..38
Trait Implementations§
source§impl AsBytes for SevNpfInfowhere
u64: AsBytes,
impl AsBytes for SevNpfInfowhere
u64: AsBytes,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl Clone for SevNpfInfo
impl Clone for SevNpfInfo
source§fn clone(&self) -> SevNpfInfo
fn clone(&self) -> SevNpfInfo
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 SevNpfInfo
impl Debug for SevNpfInfo
source§impl Default for SevNpfInfo
impl Default for SevNpfInfo
source§impl From<SevNpfInfo> for u64
impl From<SevNpfInfo> for u64
source§fn from(v: SevNpfInfo) -> u64
fn from(v: SevNpfInfo) -> u64
Converts to this type from the input type.
source§impl From<u64> for SevNpfInfo
impl From<u64> for SevNpfInfo
source§impl FromBytes for SevNpfInfowhere
u64: FromBytes,
impl FromBytes for SevNpfInfowhere
u64: FromBytes,
§fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
§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 more§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 more§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for SevNpfInfowhere
u64: FromZeroes,
impl FromZeroes for SevNpfInfowhere
u64: FromZeroes,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self>
from zeroed bytes. Read moresource§impl PartialEq for SevNpfInfo
impl PartialEq for SevNpfInfo
impl Copy for SevNpfInfo
impl Eq for SevNpfInfo
impl StructuralPartialEq for SevNpfInfo
Auto Trait Implementations§
impl Freeze for SevNpfInfo
impl RefUnwindSafe for SevNpfInfo
impl Send for SevNpfInfo
impl Sync for SevNpfInfo
impl Unpin for SevNpfInfo
impl UnwindSafe for SevNpfInfo
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)