pub fn mlock(ptr: *const u8, len: usize) -> Result<(), String>Expand description
Secure memory helpers: mlock, madvise, zeroize.
These prevent secrets from being swapped to disk or included in core dumps. All functions are best-effort on non-Linux platforms. Lock a memory region to prevent it from being swapped to disk. Returns Ok(()) on success, Err with a warning message on failure.