pub struct CloneableVecInner(pub Vec<u8>);Expand description
Inner wrapper for a vector of bytes that can be safely cloned as a secret.
This struct wraps a Vec<u8> and implements the necessary traits for secure
secret handling: Clone for duplication and Zeroize for secure memory wiping.
The zeroize(drop) attribute ensures the vector contents are zeroized when
this struct is dropped.
Tuple Fields§
§0: Vec<u8>Trait Implementations§
Source§impl Clone for CloneableVecInner
impl Clone for CloneableVecInner
Source§fn clone(&self) -> CloneableVecInner
fn clone(&self) -> CloneableVecInner
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 Zeroize for CloneableVecInner
impl Zeroize for CloneableVecInner
impl CloneSafe for CloneableVecInner
Auto Trait Implementations§
impl Freeze for CloneableVecInner
impl RefUnwindSafe for CloneableVecInner
impl Send for CloneableVecInner
impl Sync for CloneableVecInner
impl Unpin for CloneableVecInner
impl UnwindSafe for CloneableVecInner
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