pub struct SecretVec { /* private fields */ }Expand description
A heap-allocated, variable-length secret that is automatically zeroed when dropped.
Use SecretVec when the key length is not known at compile time (e.g.
RSA private keys, derived key material of arbitrary length).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SecretVec
impl RefUnwindSafe for SecretVec
impl Send for SecretVec
impl Sync for SecretVec
impl Unpin for SecretVec
impl UnsafeUnpin for SecretVec
impl UnwindSafe for SecretVec
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