pub struct GpaVmAttributesMask(/* private fields */);
Expand description
Attributes mask used to set which bits are updated in TDG.MEM.PAGE.ATTR.WR.
Implementations§
Source§impl GpaVmAttributesMask
impl GpaVmAttributesMask
Sourcepub const fn with_read_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_read_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_write_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_write_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_write(self, value: bool) -> Self
pub const fn with_write(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn kernel_execute(&self) -> bool
pub const fn kernel_execute(&self) -> bool
Bits: 2..3
Sourcepub const fn with_kernel_execute_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_kernel_execute_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_kernel_execute(self, value: bool) -> Self
pub const fn with_kernel_execute(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_kernel_execute(&mut self, value: bool)
pub const fn set_kernel_execute(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn set_kernel_execute_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_kernel_execute_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 2..3
Sourcepub const fn user_execute(&self) -> bool
pub const fn user_execute(&self) -> bool
Bits: 3..4
Sourcepub const fn with_user_execute_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_user_execute_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_user_execute(self, value: bool) -> Self
pub const fn with_user_execute(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_user_execute(&mut self, value: bool)
pub const fn set_user_execute(&mut self, value: bool)
Bits: 3..4
Sourcepub const fn suppress_ve(&self) -> bool
pub const fn suppress_ve(&self) -> bool
Bits: 7..8
Sourcepub const fn with_suppress_ve_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_suppress_ve_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_suppress_ve(self, value: bool) -> Self
pub const fn with_suppress_ve(self, value: bool) -> Self
Bits: 7..8
Sourcepub const fn set_suppress_ve(&mut self, value: bool)
pub const fn set_suppress_ve(&mut self, value: bool)
Bits: 7..8
Sourcepub const fn with_inv_ept_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_inv_ept_checked(self, value: bool) -> Result<Self, ()>
invalidate ept for this vm
Bits: 15..16
Sourcepub const fn with_inv_ept(self, value: bool) -> Self
pub const fn with_inv_ept(self, value: bool) -> Self
invalidate ept for this vm
Bits: 15..16
Sourcepub const fn set_inv_ept(&mut self, value: bool)
pub const fn set_inv_ept(&mut self, value: bool)
invalidate ept for this vm
Bits: 15..16
Source§impl GpaVmAttributesMask
impl GpaVmAttributesMask
pub const ALL_CHANGED: Self
Trait Implementations§
Source§impl Clone for GpaVmAttributesMask
impl Clone for GpaVmAttributesMask
Source§fn clone(&self) -> GpaVmAttributesMask
fn clone(&self) -> GpaVmAttributesMask
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 GpaVmAttributesMask
impl Debug for GpaVmAttributesMask
Source§impl Default for GpaVmAttributesMask
impl Default for GpaVmAttributesMask
Source§impl From<GpaVmAttributesMask> for u16
impl From<GpaVmAttributesMask> for u16
Source§fn from(v: GpaVmAttributesMask) -> u16
fn from(v: GpaVmAttributesMask) -> u16
Converts to this type from the input type.
Source§impl From<u16> for GpaVmAttributesMask
impl From<u16> for GpaVmAttributesMask
impl Copy for GpaVmAttributesMask
Auto Trait Implementations§
impl Freeze for GpaVmAttributesMask
impl RefUnwindSafe for GpaVmAttributesMask
impl Send for GpaVmAttributesMask
impl Sync for GpaVmAttributesMask
impl Unpin for GpaVmAttributesMask
impl UnwindSafe for GpaVmAttributesMask
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