#[repr(u8)]pub enum MemoryCachingType {
Uncacheable = 0,
WriteCombining = 1,
WriteThrough = 4,
WriteProtected = 5,
WriteBack = 6,
UncachedMinus = 7,
}
Expand description
The various types of memory caching that x86 supports
for usage in the PageAttributeTable
.
The default is MemoryCachingType::WriteBack
,
which corresponds to the standard default caching mode
when no specific page table entry flags are set.
Variants§
Uncacheable = 0
WriteCombining = 1
WriteThrough = 4
WriteProtected = 5
WriteBack = 6
UncachedMinus = 7
Implementations§
source§impl MemoryCachingType
impl MemoryCachingType
sourcepub const fn pat_slot_index(self) -> u8
pub const fn pat_slot_index(self) -> u8
Returns the index of the PageAttributeTable
(PAT) slot
that has been pre-configured with this MemoryCachingType
.
See the docs of FIXED_PAT for more info.
Trait Implementations§
source§impl Clone for MemoryCachingType
impl Clone for MemoryCachingType
source§fn clone(&self) -> MemoryCachingType
fn clone(&self) -> MemoryCachingType
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 MemoryCachingType
impl Debug for MemoryCachingType
impl Copy for MemoryCachingType
Auto Trait Implementations§
impl RefUnwindSafe for MemoryCachingType
impl Send for MemoryCachingType
impl Sync for MemoryCachingType
impl Unpin for MemoryCachingType
impl UnwindSafe for MemoryCachingType
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