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 more