Trait dryoc::protected::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 nightly only.
Expand description

Protected region of memory that can be locked (i.e., is already locked).

Required Methods§

source

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

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

Implementors§

source§

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