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§

source

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.

Implementors§

source§

impl<A: Zeroize + Bytes, PM: ProtectMode, LM: LockMode> ProtectReadWrite<A, PM, LM> for Protected<A, PM, LM>