pub struct SevNpfInfo(/* private fields */);Implementations§
Source§impl SevNpfInfo
 
impl SevNpfInfo
Sourcepub const fn with_present_checked(self, value: bool) -> Result<Self, ()>
 
pub const fn with_present_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_present(self, value: bool) -> Self
 
pub const fn with_present(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn set_present(&mut self, value: bool)
 
pub const fn set_present(&mut self, value: bool)
Bits: 0..1
Sourcepub const fn with_is_write_checked(self, value: bool) -> Result<Self, ()>
 
pub const fn with_is_write_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_is_write(self, value: bool) -> Self
 
pub const fn with_is_write(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn set_is_write(&mut self, value: bool)
 
pub const fn set_is_write(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn with_user_checked(self, value: bool) -> Result<Self, ()>
 
pub const fn with_user_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
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_checked(
    self,
    value: bool,
) -> Result<Self, ()>
 
pub const fn with_reserved_bit_set_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_reserved_bit_set(&mut self, value: bool)
 
pub const fn set_reserved_bit_set(&mut self, value: bool)
Bits: 3..4
Sourcepub const fn set_reserved_bit_set_checked(
    &mut self,
    value: bool,
) -> Result<(), ()>
 
pub const fn set_reserved_bit_set_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 3..4
Sourcepub const fn with_fetch_checked(self, value: bool) -> Result<Self, ()>
 
pub const fn with_fetch_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
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_checked(self, value: bool) -> Result<Self, ()>
 
pub const fn with_shadow_stack_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_shadow_stack(&mut self, value: bool)
 
pub const 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_checked(self, value: bool) -> Result<Self, ()>
 
pub const fn with_rmp_failure_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_rmp_failure(&mut self, value: bool)
 
pub const 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_checked(
    self,
    value: bool,
) -> Result<Self, ()>
 
pub const fn with_caused_by_gpa_access_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_caused_by_gpa_access(&mut self, value: bool)
 
pub const fn set_caused_by_gpa_access(&mut self, value: bool)
Bits: 32..33
Sourcepub const fn set_caused_by_gpa_access_checked(
    &mut self,
    value: bool,
) -> Result<(), ()>
 
pub const fn set_caused_by_gpa_access_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(
    self,
    value: bool,
) -> Result<Self, ()>
 
pub const fn with_caused_by_page_table_access_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_caused_by_page_table_access(&mut self, value: bool)
 
pub const fn set_caused_by_page_table_access(&mut self, value: bool)
Bits: 33..34
Sourcepub const fn set_caused_by_page_table_access_checked(
    &mut self,
    value: bool,
) -> Result<(), ()>
 
pub const fn set_caused_by_page_table_access_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(
    self,
    value: bool,
) -> Result<Self, ()>
 
pub const fn with_encrypted_access_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_encrypted_access(&mut self, value: bool)
 
pub const fn set_encrypted_access(&mut self, value: bool)
Bits: 34..35
Sourcepub const fn set_encrypted_access_checked(
    &mut self,
    value: bool,
) -> Result<(), ()>
 
pub const fn set_encrypted_access_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(
    self,
    value: bool,
) -> Result<Self, ()>
 
pub const fn with_rmp_size_mismatch_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_rmp_size_mismatch(&mut self, value: bool)
 
pub const fn set_rmp_size_mismatch(&mut self, value: bool)
Bits: 35..36
Sourcepub const fn set_rmp_size_mismatch_checked(
    &mut self,
    value: bool,
) -> Result<(), ()>
 
pub const fn set_rmp_size_mismatch_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(self, value: bool) -> Result<Self, ()>
 
pub const fn with_vmpl_violation_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_vmpl_violation(&mut self, value: bool)
 
pub const fn set_vmpl_violation(&mut self, value: bool)
Bits: 36..37
Sourcepub const fn set_vmpl_violation_checked(
    &mut self,
    value: bool,
) -> Result<(), ()>
 
pub const fn set_vmpl_violation_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(
    self,
    value: bool,
) -> Result<Self, ()>
 
pub const fn with_npt_supervisor_shadow_stack_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_npt_supervisor_shadow_stack(&mut self, value: bool)
 
pub const fn set_npt_supervisor_shadow_stack(&mut self, value: bool)
Bits: 37..38
Trait Implementations§
Source§impl Clone for SevNpfInfo
 
impl Clone for SevNpfInfo
Source§fn clone(&self) -> SevNpfInfo
 
fn clone(&self) -> SevNpfInfo
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 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_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 SevNpfInfowhere
    u64: FromZeros,
 
impl FromZeros for SevNpfInfowhere
    u64: FromZeros,
§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() -> Result<Box<Self>, AllocError>where
    Self: Sized,
 
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
    Self: Sized,
Creates a 
Box<Self> from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
    Self: Sized,
 
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
    Self: Sized,
Creates a 
Vec<Self> from zeroed bytes. Read moreSource§impl IntoBytes for SevNpfInfowhere
    u64: IntoBytes,
 
impl IntoBytes for SevNpfInfowhere
    u64: IntoBytes,
§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 SevNpfInfowhere
    Self: Sized,
 
impl KnownLayout for SevNpfInfowhere
    Self: Sized,
Source§type PointerMetadata = ()
 
type PointerMetadata = ()
The type of metadata stored in a pointer to 
Self. Read moreSource§impl PartialEq for SevNpfInfo
 
impl PartialEq for SevNpfInfo
Source§impl TryFromBytes for SevNpfInfowhere
    u64: TryFromBytes,
 
impl TryFromBytes for SevNpfInfowhere
    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 + IntoBytes,
 
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 + IntoBytes,
§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 + IntoBytes,
 
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 + IntoBytes,
§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 + IntoBytes,
 
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 + IntoBytes,
§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 SevNpfInfo
impl Eq for SevNpfInfo
impl Immutable for SevNpfInfowhere
    u64: Immutable,
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