Trait dryoc::protected::ProtectReadWrite
source · pub trait ProtectReadWrite<A: Zeroize + Bytes, PM: ProtectMode, LM: LockMode> {
// Required method
fn mprotect_readwrite(self) -> Result<Protected<A, ReadWrite, LM>, Error>;
}
Available on crate feature
nightly
only.Expand description
Protected region of memory that can be set as read-write.
Required Methods§
sourcefn mprotect_readwrite(self) -> Result<Protected<A, ReadWrite, LM>, Error>
fn mprotect_readwrite(self) -> Result<Protected<A, ReadWrite, LM>, Error>
Protects a region of memory as read-write (and no exec), using
mprotect()
on UNIX, or VirtualProtect()
on Windows.