page_table_generic

Trait GenericPTE

Source
pub trait GenericPTE:
    Debug
    + Clone
    + Copy
    + Sync
    + Send
    + Sized
    + 'static {
    const PAGE_SIZE: usize = 4_096usize;

    // Required methods
    fn new_page(pte: PTEConfig) -> Self;
    fn read(&self) -> PTEConfig;
    fn set(&mut self, pte: PTEConfig);

    // Provided methods
    fn new_table(paddr: usize) -> Self { ... }
    fn modify<F: Fn(&mut PTEConfig)>(&mut self, f: F) { ... }
    fn valid(&self) -> bool { ... }
    fn paddr(&self) -> usize { ... }
}

Provided Associated Constants§

Source

const PAGE_SIZE: usize = 4_096usize

Required Methods§

Source

fn new_page(pte: PTEConfig) -> Self

Creates a page table entry point to a terminate page or block.

Source

fn read(&self) -> PTEConfig

Source

fn set(&mut self, pte: PTEConfig)

Provided Methods§

Source

fn new_table(paddr: usize) -> Self

Source

fn modify<F: Fn(&mut PTEConfig)>(&mut self, f: F)

Source

fn valid(&self) -> bool

Source

fn paddr(&self) -> usize

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.

Implementors§