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