Page

Trait Page 

Source
pub trait Page {
    // Required methods
    fn is_valid(&self) -> bool;
    fn is_accessed(&self) -> bool;
    fn is_dirty(&self) -> bool;
    fn set_accessed(&mut self);
    fn set_dirty(&mut self);
    fn clear_accessed(&mut self);
    fn clear_dirty(&mut self);
}
Expand description

A page with ‘A’ and ‘D’ bits.

Required Methods§

Source

fn is_valid(&self) -> bool

Check if the page is valid.

Source

fn is_accessed(&self) -> bool

Check if the page is accessed.

Source

fn is_dirty(&self) -> bool

Check if the page is dirty.

Source

fn set_accessed(&mut self)

Set the ‘A’ bit.

Source

fn set_dirty(&mut self)

Set the ‘D’ bit.

Source

fn clear_accessed(&mut self)

Clear the ‘A’ bit.

Source

fn clear_dirty(&mut self)

Clear the ‘D’ bit.

Implementors§