Skip to main content

Unlock

Trait Unlock 

Source
pub trait Unlock<A: Zeroize + Bytes, PM: ProtectMode> {
    // Required method
    fn munlock(self) -> Result<Protected<A, PM, Unlocked>, Error>;
}
Available on crate feature protected only.
Expand description

Protected region of memory that is already locked and can be unlocked.

Required Methods§

Source

fn munlock(self) -> Result<Protected<A, PM, Unlocked>, Error>

Unlocks a region of memory, using munlock() on UNIX, or VirtualUnlock() on Windows.

§Errors

Returns error::Error::Io if the pages cannot be unlocked.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<A: Zeroize + Bytes, PM: ProtectMode> Unlock<A, PM> for Protected<A, PM, Locked>