#[repr(align(8))]pub struct PageTableEntry {
pub entry: u64,
}
Fields§
§entry: u64
Implementations§
Source§impl PageTableEntry
impl PageTableEntry
pub const fn new() -> Self
pub fn get_ppn(&self) -> usize
pub fn get_flags(&self) -> u64
pub fn is_valid(&self) -> bool
pub fn is_leaf(&self) -> bool
pub fn validate(&mut self)
pub fn invalidate(&mut self)
pub fn set_ppn(&mut self, ppn: usize) -> &mut Self
pub fn set_flags(&mut self, flags: u64) -> &mut Self
pub fn clear_flags(&mut self) -> &mut Self
pub fn writable(&mut self) -> &mut Self
pub fn readable(&mut self) -> &mut Self
pub fn executable(&mut self) -> &mut Self
pub fn accesible_from_user(&mut self) -> &mut Self
Trait Implementations§
Source§impl Clone for PageTableEntry
impl Clone for PageTableEntry
Source§fn clone(&self) -> PageTableEntry
fn clone(&self) -> PageTableEntry
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for PageTableEntry
Auto Trait Implementations§
impl Freeze for PageTableEntry
impl RefUnwindSafe for PageTableEntry
impl Send for PageTableEntry
impl Sync for PageTableEntry
impl Unpin for PageTableEntry
impl UnwindSafe for PageTableEntry
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)