Struct hvdef::HvMapGpaFlags
source · pub struct HvMapGpaFlags(/* private fields */);
Implementations§
source§impl HvMapGpaFlags
impl HvMapGpaFlags
sourcepub const fn with_readable(self, value: bool) -> Self
pub const fn with_readable(self, value: bool) -> Self
Bits: 0..1
sourcepub fn set_readable(&mut self, value: bool)
pub fn set_readable(&mut self, value: bool)
Bits: 0..1
sourcepub const fn with_writable(self, value: bool) -> Self
pub const fn with_writable(self, value: bool) -> Self
Bits: 1..2
sourcepub fn set_writable(&mut self, value: bool)
pub fn set_writable(&mut self, value: bool)
Bits: 1..2
sourcepub const fn kernel_executable(&self) -> bool
pub const fn kernel_executable(&self) -> bool
Bits: 2..3
sourcepub const fn with_kernel_executable(self, value: bool) -> Self
pub const fn with_kernel_executable(self, value: bool) -> Self
Bits: 2..3
sourcepub fn set_kernel_executable(&mut self, value: bool)
pub fn set_kernel_executable(&mut self, value: bool)
Bits: 2..3
sourcepub const fn user_executable(&self) -> bool
pub const fn user_executable(&self) -> bool
Bits: 3..4
sourcepub const fn with_user_executable(self, value: bool) -> Self
pub const fn with_user_executable(self, value: bool) -> Self
Bits: 3..4
sourcepub fn set_user_executable(&mut self, value: bool)
pub fn set_user_executable(&mut self, value: bool)
Bits: 3..4
sourcepub const fn supervisor_shadow_stack(&self) -> bool
pub const fn supervisor_shadow_stack(&self) -> bool
Bits: 4..5
sourcepub const fn with_supervisor_shadow_stack(self, value: bool) -> Self
pub const fn with_supervisor_shadow_stack(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_supervisor_shadow_stack(&mut self, value: bool)
pub fn set_supervisor_shadow_stack(&mut self, value: bool)
Bits: 4..5
sourcepub const fn paging_writability(&self) -> bool
pub const fn paging_writability(&self) -> bool
Bits: 5..6
sourcepub const fn with_paging_writability(self, value: bool) -> Self
pub const fn with_paging_writability(self, value: bool) -> Self
Bits: 5..6
sourcepub fn set_paging_writability(&mut self, value: bool)
pub fn set_paging_writability(&mut self, value: bool)
Bits: 5..6
sourcepub const fn verify_paging_writability(&self) -> bool
pub const fn verify_paging_writability(&self) -> bool
Bits: 6..7
sourcepub const fn with_verify_paging_writability(self, value: bool) -> Self
pub const fn with_verify_paging_writability(self, value: bool) -> Self
Bits: 6..7
sourcepub fn set_verify_paging_writability(&mut self, value: bool)
pub fn set_verify_paging_writability(&mut self, value: bool)
Bits: 6..7
sourcepub const fn adjustable(&self) -> bool
pub const fn adjustable(&self) -> bool
Bits: 15..16
sourcepub const fn with_adjustable(self, value: bool) -> Self
pub const fn with_adjustable(self, value: bool) -> Self
Bits: 15..16
sourcepub fn set_adjustable(&mut self, value: bool)
pub fn set_adjustable(&mut self, value: bool)
Bits: 15..16
Trait Implementations§
source§impl AsBytes for HvMapGpaFlagswhere
u32: AsBytes,
impl AsBytes for HvMapGpaFlagswhere
u32: 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 HvMapGpaFlags
impl Clone for HvMapGpaFlags
source§fn clone(&self) -> HvMapGpaFlags
fn clone(&self) -> HvMapGpaFlags
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 HvMapGpaFlags
impl Debug for HvMapGpaFlags
source§impl Default for HvMapGpaFlags
impl Default for HvMapGpaFlags
source§impl From<HvMapGpaFlags> for u32
impl From<HvMapGpaFlags> for u32
source§fn from(v: HvMapGpaFlags) -> u32
fn from(v: HvMapGpaFlags) -> u32
Converts to this type from the input type.
source§impl From<u32> for HvMapGpaFlags
impl From<u32> for HvMapGpaFlags
source§impl FromBytes for HvMapGpaFlagswhere
u32: FromBytes,
impl FromBytes for HvMapGpaFlagswhere
u32: 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 HvMapGpaFlagswhere
u32: FromZeroes,
impl FromZeroes for HvMapGpaFlagswhere
u32: 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 HvMapGpaFlags
impl PartialEq for HvMapGpaFlags
impl Copy for HvMapGpaFlags
impl Eq for HvMapGpaFlags
impl StructuralPartialEq for HvMapGpaFlags
Auto Trait Implementations§
impl Freeze for HvMapGpaFlags
impl RefUnwindSafe for HvMapGpaFlags
impl Send for HvMapGpaFlags
impl Sync for HvMapGpaFlags
impl Unpin for HvMapGpaFlags
impl UnwindSafe for HvMapGpaFlags
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
)