Struct x86defs::tdx::GpaVmAttributes
source · pub struct GpaVmAttributes(/* private fields */);
Expand description
Attributes for a single VM.
Implementations§
source§impl GpaVmAttributes
impl GpaVmAttributes
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(self, value: bool) -> Self
pub const fn with_kernel_execute(self, value: bool) -> Self
Bits: 2..3
sourcepub fn set_kernel_execute(&mut self, value: bool)
pub fn set_kernel_execute(&mut self, value: bool)
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(self, value: bool) -> Self
pub const fn with_user_execute(self, value: bool) -> Self
Bits: 3..4
sourcepub fn set_user_execute(&mut self, value: bool)
pub fn set_user_execute(&mut self, value: bool)
Bits: 3..4
sourcepub const fn with_valid(self, value: bool) -> Self
pub const fn with_valid(self, value: bool) -> Self
Bits: 15..16
source§impl GpaVmAttributes
impl GpaVmAttributes
pub const FULL_ACCESS: Self = _
source§impl GpaVmAttributes
impl GpaVmAttributes
sourcepub fn to_mask(self) -> GpaVmAttributesMask
pub fn to_mask(self) -> GpaVmAttributesMask
Convert to the corresponding attributes mask. Note that inv_ept
must
be set manually after the conversion, if desired.
Trait Implementations§
source§impl Clone for GpaVmAttributes
impl Clone for GpaVmAttributes
source§fn clone(&self) -> GpaVmAttributes
fn clone(&self) -> GpaVmAttributes
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 GpaVmAttributes
impl Debug for GpaVmAttributes
source§impl Default for GpaVmAttributes
impl Default for GpaVmAttributes
source§impl From<GpaVmAttributes> for u16
impl From<GpaVmAttributes> for u16
source§fn from(v: GpaVmAttributes) -> u16
fn from(v: GpaVmAttributes) -> u16
Converts to this type from the input type.
source§impl From<u16> for GpaVmAttributes
impl From<u16> for GpaVmAttributes
impl Copy for GpaVmAttributes
Auto Trait Implementations§
impl Freeze for GpaVmAttributes
impl RefUnwindSafe for GpaVmAttributes
impl Send for GpaVmAttributes
impl Sync for GpaVmAttributes
impl Unpin for GpaVmAttributes
impl UnwindSafe for GpaVmAttributes
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
)