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