MemoryProtectPid

Trait MemoryProtectPid 

Source
pub trait MemoryProtectPid: GetContext {
    // Required method
    fn set_protection_pid(
        &self,
        pid: &Self::Context,
        range: MemoryRange,
        protection: MemoryProtection,
    ) -> Result<MemoryProtection, MemoryProtectError>;
}

Required Methods§

Source

fn set_protection_pid( &self, pid: &Self::Context, 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§