verity_memory/errors/
read_memory.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#[derive(Debug, PartialEq)]
pub enum ReadMemoryError {
    NullPointer,
    InvalidAlignment,
    FailedToChangeProtection,
    FailedToRestoreProtection,
    InvalidAccess
}

impl std::fmt::Display for ReadMemoryError {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        write!(f, "{:?}", self)
    }
}

impl std::error::Error for ReadMemoryError {}