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 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_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
&Self
. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§impl FromZeros for AcceptPagesAttributeswhere
u32: FromZeros,
impl FromZeros for AcceptPagesAttributeswhere
u32: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Box<Self>
from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Vec<Self>
from zeroed bytes. Read moreSource§impl IntoBytes for AcceptPagesAttributeswhere
u32: IntoBytes,
impl IntoBytes for AcceptPagesAttributeswhere
u32: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for AcceptPagesAttributeswhere
Self: Sized,
impl KnownLayout for AcceptPagesAttributeswhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self
. Read more