pub struct GpaVmAttributes(/* private fields */);
Expand description
Attributes for a single VM.
Implementations§
Source§impl GpaVmAttributes
impl GpaVmAttributes
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 with_valid_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_valid_checked(self, value: bool) -> Result<Self, ()>
Bits: 15..16
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
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
Source§impl PartialEq for GpaVmAttributes
impl PartialEq for GpaVmAttributes
impl Copy for GpaVmAttributes
impl Eq for GpaVmAttributes
impl StructuralPartialEq 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