pub trait ProtectNoAccess<A: Zeroize + Bytes, PM: ProtectMode> {
    fn mprotect_noaccess(
        self
    ) -> Result<Protected<A, NoAccess, Unlocked>, Error>; }
Available on crate feature nightly only.
Expand description

Protected region of memory that can be set as no-access. Must be unlocked.

Required Methods

Protects an unlocked region of memory as no-access (and no exec), using mprotect() on UNIX, or VirtualProtect() on Windows.

Implementors