pub trait MemoryProtectPid: GetContext {
// Required method
fn set_protection_pid(
&self,
pid: &Self::Context,
range: MemoryRange,
protection: MemoryProtection,
) -> Result<MemoryProtection, MemoryProtectError>;
}Required Methods§
Sourcefn set_protection_pid(
&self,
pid: &Self::Context,
range: MemoryRange,
protection: MemoryProtection,
) -> Result<MemoryProtection, MemoryProtectError>
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