Struct hvdef::hypercall::AcceptPagesAttributes
source · pub struct AcceptPagesAttributes(/* private fields */);
Expand description
Attributes for accepting pages. See AcceptGpaPages
Implementations§
source§impl AcceptPagesAttributes
impl AcceptPagesAttributes
sourcepub const fn memory_type(&self) -> u32
pub const fn memory_type(&self) -> u32
Supplies the expected memory type AcceptMemoryType
.
Bits: 0..6
sourcepub const fn with_memory_type(self, value: u32) -> Self
pub const fn with_memory_type(self, value: u32) -> Self
Supplies the expected memory type AcceptMemoryType
.
Bits: 0..6
sourcepub fn set_memory_type(&mut self, value: u32)
pub fn set_memory_type(&mut self, value: u32)
Supplies the expected memory type AcceptMemoryType
.
Bits: 0..6
sourcepub const fn host_visibility(&self) -> HostVisibilityType
pub const fn host_visibility(&self) -> HostVisibilityType
Supplies the initial host visibility (exclusive, shared read-only, shared read-write).
Bits: 6..8
sourcepub const fn with_host_visibility(self, value: HostVisibilityType) -> Self
pub const fn with_host_visibility(self, value: HostVisibilityType) -> Self
Supplies the initial host visibility (exclusive, shared read-only, shared read-write).
Bits: 6..8
sourcepub fn set_host_visibility(&mut self, value: HostVisibilityType)
pub fn set_host_visibility(&mut self, value: HostVisibilityType)
Supplies the initial host visibility (exclusive, shared read-only, shared read-write).
Bits: 6..8
sourcepub const fn vtl_set(&self) -> u32
pub const fn vtl_set(&self) -> u32
Supplies the set of VTLs for which initial VTL permissions will be set.
Bits: 8..11
sourcepub const fn with_vtl_set(self, value: u32) -> Self
pub const fn with_vtl_set(self, value: u32) -> Self
Supplies the set of VTLs for which initial VTL permissions will be set.
Bits: 8..11
sourcepub fn set_vtl_set(&mut self, value: u32)
pub fn set_vtl_set(&mut self, value: u32)
Supplies the set of VTLs for which initial VTL permissions will be set.
Bits: 8..11
Trait Implementations§
source§impl AsBytes for AcceptPagesAttributeswhere
u32: AsBytes,
impl AsBytes for AcceptPagesAttributeswhere
u32: AsBytes,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl Clone for AcceptPagesAttributes
impl Clone for AcceptPagesAttributes
source§fn clone(&self) -> AcceptPagesAttributes
fn clone(&self) -> AcceptPagesAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AcceptPagesAttributes
impl Debug for AcceptPagesAttributes
source§impl Default for AcceptPagesAttributes
impl Default for AcceptPagesAttributes
source§impl From<AcceptPagesAttributes> for u32
impl From<AcceptPagesAttributes> for u32
source§fn from(v: AcceptPagesAttributes) -> u32
fn from(v: AcceptPagesAttributes) -> u32
source§impl From<u32> for AcceptPagesAttributes
impl From<u32> for AcceptPagesAttributes
source§impl FromBytes for AcceptPagesAttributeswhere
u32: FromBytes,
impl FromBytes for AcceptPagesAttributeswhere
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,
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,
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,
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,
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 AcceptPagesAttributeswhere
u32: FromZeroes,
impl FromZeroes for AcceptPagesAttributeswhere
u32: FromZeroes,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Box<Self>
from zeroed bytes. Read moreimpl Copy for AcceptPagesAttributes
Auto Trait Implementations§
impl Freeze for AcceptPagesAttributes
impl RefUnwindSafe for AcceptPagesAttributes
impl Send for AcceptPagesAttributes
impl Sync for AcceptPagesAttributes
impl Unpin for AcceptPagesAttributes
impl UnwindSafe for AcceptPagesAttributes
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
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)
clone_to_uninit
)