MemoryProtect

Trait MemoryProtect 

Source
pub trait MemoryProtect {
    // Required method
    fn set_protection(
        &self,
        range: MemoryRange,
        protection: MemoryProtection,
    ) -> Result<MemoryProtection, MemoryProtectError>;
}

Required Methods§

Source

fn set_protection( &self, range: MemoryRange, protection: MemoryProtection, ) -> Result<MemoryProtection, MemoryProtectError>

Sets the protection of the memory range to the specified protection. Returns the old memory protection or an error

Implementors§