pub struct SecureVault { /* private fields */ }Expand description
Main secure vault for protecting sensitive data
Implementations§
Source§impl SecureVault
impl SecureVault
Sourcepub fn with_secure<F, T>(&self, f: F) -> T
pub fn with_secure<F, T>(&self, f: F) -> T
Access the protected data securely
Sourcepub fn with_secure_bytes<F, T>(&self, f: F) -> T
pub fn with_secure_bytes<F, T>(&self, f: F) -> T
Access the protected data as bytes
Trait Implementations§
Source§impl Clone for SecureVault
impl Clone for SecureVault
Source§fn clone(&self) -> SecureVault
fn clone(&self) -> SecureVault
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecureVault
impl Debug for SecureVault
Auto Trait Implementations§
impl Freeze for SecureVault
impl RefUnwindSafe for SecureVault
impl Send for SecureVault
impl Sync for SecureVault
impl Unpin for SecureVault
impl UnwindSafe for SecureVault
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