pub struct ContextEntryHi(/* private fields */);Expand description
Context Entry — high 64 bits.
Implementations§
Source§impl ContextEntryHi
impl ContextEntryHi
Sourcepub const fn aw(&self) -> u8
pub const fn aw(&self) -> u8
Address Width — number of levels in the second-level page table. 001 = 39-bit / 3-level, 010 = 48-bit / 4-level, 011 = 57-bit / 5-level.
Bits: 0..3
Sourcepub const fn with_aw_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_aw_checked(self, value: u8) -> Result<Self, ()>
Address Width — number of levels in the second-level page table. 001 = 39-bit / 3-level, 010 = 48-bit / 4-level, 011 = 57-bit / 5-level.
Bits: 0..3
Sourcepub const fn with_aw(self, value: u8) -> Self
pub const fn with_aw(self, value: u8) -> Self
Address Width — number of levels in the second-level page table. 001 = 39-bit / 3-level, 010 = 48-bit / 4-level, 011 = 57-bit / 5-level.
Bits: 0..3
Sourcepub const fn set_aw(&mut self, value: u8)
pub const fn set_aw(&mut self, value: u8)
Address Width — number of levels in the second-level page table. 001 = 39-bit / 3-level, 010 = 48-bit / 4-level, 011 = 57-bit / 5-level.
Bits: 0..3
Sourcepub const fn set_aw_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_aw_checked(&mut self, value: u8) -> Result<(), ()>
Address Width — number of levels in the second-level page table. 001 = 39-bit / 3-level, 010 = 48-bit / 4-level, 011 = 57-bit / 5-level.
Bits: 0..3
Sourcepub const fn did(&self) -> u16
pub const fn did(&self) -> u16
Domain ID (16-bit). Identifies the domain for TLB invalidation.
Bits: 8..24
Sourcepub const fn with_did_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_did_checked(self, value: u16) -> Result<Self, ()>
Domain ID (16-bit). Identifies the domain for TLB invalidation.
Bits: 8..24
Sourcepub const fn with_did(self, value: u16) -> Self
pub const fn with_did(self, value: u16) -> Self
Domain ID (16-bit). Identifies the domain for TLB invalidation.
Bits: 8..24
Trait Implementations§
Source§impl Clone for ContextEntryHi
impl Clone for ContextEntryHi
Source§fn clone(&self) -> ContextEntryHi
fn clone(&self) -> ContextEntryHi
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContextEntryHi
impl Debug for ContextEntryHi
Source§impl Default for ContextEntryHi
impl Default for ContextEntryHi
Source§impl From<ContextEntryHi> for u64
impl From<ContextEntryHi> for u64
Source§fn from(v: ContextEntryHi) -> u64
fn from(v: ContextEntryHi) -> u64
Source§impl From<u64> for ContextEntryHi
impl From<u64> for ContextEntryHi
Source§impl FromBytes for ContextEntryHiwhere
u64: FromBytes,
impl FromBytes for ContextEntryHiwhere
u64: 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 ContextEntryHiwhere
u64: FromZeros,
impl FromZeros for ContextEntryHiwhere
u64: 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 Inspect for ContextEntryHi
impl Inspect for ContextEntryHi
Source§impl IntoBytes for ContextEntryHiwhere
u64: IntoBytes,
impl IntoBytes for ContextEntryHiwhere
u64: 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 ContextEntryHiwhere
Self: Sized,
impl KnownLayout for ContextEntryHiwhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self. Read more§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Self with the given pointer
metadata. Read more