pub trait ProtectReadWrite<A: Zeroize + Bytes, PM: ProtectMode, LM: LockMode> {
    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§

Protects a region of memory as read-write (and no exec), using mprotect() on UNIX, or VirtualProtect() on Windows.

Implementors§