Checkable

Trait Checkable 

Source
pub trait Checkable {
    // Required methods
    fn check(&self, pattern: DataPattern) -> Vec<BitFlip>;
    fn check_excluding(
        &self,
        pattern: DataPattern,
        pages: &[*const u8],
    ) -> Vec<BitFlip>;
    fn check_cb(
        &self,
        f: &mut dyn FnMut(usize) -> Option<[u8; 4096]>,
    ) -> Vec<BitFlip>;
}
Expand description

Trait for checking memory regions for bit flips.

Implementors provide methods to compare memory contents against expected patterns and identify locations where bit flips have occurred.

Required Methods§

Source

fn check(&self, pattern: DataPattern) -> Vec<BitFlip>

Checks memory against a pattern and returns detected bit flips.

Source

fn check_excluding( &self, pattern: DataPattern, pages: &[*const u8], ) -> Vec<BitFlip>

Checks memory excluding specific pages.

Source

fn check_cb( &self, f: &mut dyn FnMut(usize) -> Option<[u8; 4096]>, ) -> Vec<BitFlip>

Checks memory using a callback function to generate expected values.

Implementors§

Source§

impl<T> Checkable for T
where T: VictimMemory,

Blanket implementation for Checkable trait for VictimMemory