pub trait GenericPageTableEntry: Bitfield<usize> {
Show 22 methods
// Provided methods
fn present(&self) -> bool { ... }
fn writable(&self) -> bool { ... }
fn user(&self) -> bool { ... }
fn write_through(&self) -> bool { ... }
fn cache_disabled(&self) -> bool { ... }
fn accessed(&self) -> bool { ... }
fn no_execute(&self) -> bool { ... }
fn set_present(&mut self, value: bool) { ... }
fn with_present(&mut self, value: bool) -> Self { ... }
fn set_writable(&mut self, value: bool) { ... }
fn with_writable(&mut self, value: bool) -> Self { ... }
fn set_user(&mut self, value: bool) { ... }
fn with_user(&mut self, value: bool) -> Self { ... }
fn set_write_through(&mut self, value: bool) { ... }
fn with_write_through(&mut self, value: bool) -> Self { ... }
fn set_cache_disabled(&mut self, value: bool) { ... }
fn with_cache_disabled(&mut self, value: bool) -> Self { ... }
fn set_accessed(&mut self, value: bool) { ... }
fn with_accessed(&mut self, value: bool) -> Self { ... }
fn set_no_execute(&mut self, value: bool) { ... }
fn with_no_execute(&mut self, value: bool) -> Self { ... }
fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>) { ... }
}
Expand description
An entry in a page table at any level.
Provided Methods§
Sourcefn present(&self) -> bool
fn present(&self) -> bool
P
: Indicates that this entry is mapped. Otherwise the whole entry is
ignored.
Sourcefn user(&self) -> bool
fn user(&self) -> bool
U/S
: Allows access to this memory region from permission level 3. Otherwise,
it is only accessible from levels 0–2.
Sourcefn write_through(&self) -> bool
fn write_through(&self) -> bool
PWT
: Enables write-through caching for this memory region.
Sourcefn cache_disabled(&self) -> bool
fn cache_disabled(&self) -> bool
PCD
: Disables caching for this memory region.
Sourcefn accessed(&self) -> bool
fn accessed(&self) -> bool
A
: Set by the processor when an instruction accesses the memory region.
Sourcefn no_execute(&self) -> bool
Available on x86-64 only.
fn no_execute(&self) -> bool
XD
/NX
: Prevent the processor from executing any instructions in this
memory region.
Sourcefn set_present(&mut self, value: bool)
fn set_present(&mut self, value: bool)
P
: Indicates that this entry is mapped. Otherwise the whole entry is
ignored.
Sourcefn with_present(&mut self, value: bool) -> Self
fn with_present(&mut self, value: bool) -> Self
P
: Indicates that this entry is mapped. Otherwise the whole entry is
ignored.
Sourcefn set_writable(&mut self, value: bool)
fn set_writable(&mut self, value: bool)
R/W
: Allows writes to this memory region.
Sourcefn with_writable(&mut self, value: bool) -> Self
fn with_writable(&mut self, value: bool) -> Self
R/W
: Allows writes to this memory region.
Sourcefn set_user(&mut self, value: bool)
fn set_user(&mut self, value: bool)
U/S
: Allows access to this memory region from permission level 3. Otherwise,
it is only accessible from levels 0–2.
Sourcefn with_user(&mut self, value: bool) -> Self
fn with_user(&mut self, value: bool) -> Self
U/S
: Allows access to this memory region from permission level 3. Otherwise,
it is only accessible from levels 0–2.
Sourcefn set_write_through(&mut self, value: bool)
fn set_write_through(&mut self, value: bool)
PWT
: Enables write-through caching for this memory region.
Sourcefn with_write_through(&mut self, value: bool) -> Self
fn with_write_through(&mut self, value: bool) -> Self
PWT
: Enables write-through caching for this memory region.
Sourcefn set_cache_disabled(&mut self, value: bool)
fn set_cache_disabled(&mut self, value: bool)
PCD
: Disables caching for this memory region.
Sourcefn with_cache_disabled(&mut self, value: bool) -> Self
fn with_cache_disabled(&mut self, value: bool) -> Self
PCD
: Disables caching for this memory region.
Sourcefn set_accessed(&mut self, value: bool)
fn set_accessed(&mut self, value: bool)
A
: Set by the processor when an instruction accesses the memory region.
Sourcefn with_accessed(&mut self, value: bool) -> Self
fn with_accessed(&mut self, value: bool) -> Self
A
: Set by the processor when an instruction accesses the memory region.
Sourcefn set_no_execute(&mut self, value: bool)
Available on x86-64 only.
fn set_no_execute(&mut self, value: bool)
XD
/NX
: Prevent the processor from executing any instructions in this
memory region.
Sourcefn with_no_execute(&mut self, value: bool) -> Self
Available on x86-64 only.
fn with_no_execute(&mut self, value: bool) -> Self
XD
/NX
: Prevent the processor from executing any instructions in this
memory region.
Sourcefn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)
fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)
Print this object’s bitfield values. Helper method for Debug
implementations.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.