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§
Sourcefn is_accessed(&self) -> bool
fn is_accessed(&self) -> bool
Check if the page is accessed.
Sourcefn set_accessed(&mut self)
fn set_accessed(&mut self)
Set the ‘A’ bit.
Sourcefn clear_accessed(&mut self)
fn clear_accessed(&mut self)
Clear the ‘A’ bit.
Sourcefn clear_dirty(&mut self)
fn clear_dirty(&mut self)
Clear the ‘D’ bit.