pub struct SecureMemory { /* private fields */ }Expand description
Enhanced memory scrubbing with stack and register zeroization
Implementations§
Source§impl SecureMemory
impl SecureMemory
Sourcepub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Get mutable reference to data
Sourcepub fn is_cleared(&self) -> bool
pub fn is_cleared(&self) -> bool
Check if memory has been cleared
Trait Implementations§
Source§impl Debug for SecureMemory
impl Debug for SecureMemory
Source§impl Drop for SecureMemory
impl Drop for SecureMemory
Auto Trait Implementations§
impl !Freeze for SecureMemory
impl RefUnwindSafe for SecureMemory
impl Send for SecureMemory
impl Sync for SecureMemory
impl Unpin for SecureMemory
impl UnwindSafe for SecureMemory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more