pub struct DynamicZeroizing<T: ?Sized + Zeroize>(/* private fields */);Expand description
Zeroizing wrapper for heap-allocated secrets.
Uses secrecy::SecretBox<T> internally to prevent accidental cloning
while still providing zeroization of the full allocation (including spare capacity).
Implementations§
Trait Implementations§
Source§impl<T: ?Sized + Zeroize> Debug for DynamicZeroizing<T>
Available on crate feature zeroize only.
impl<T: ?Sized + Zeroize> Debug for DynamicZeroizing<T>
Available on crate feature
zeroize only.Source§impl<S: ?Sized + Zeroize> ExposeSecret<S> for DynamicZeroizing<S>
Available on crate feature zeroize only.
impl<S: ?Sized + Zeroize> ExposeSecret<S> for DynamicZeroizing<S>
Available on crate feature
zeroize only.Source§fn expose_secret(&self) -> &S
fn expose_secret(&self) -> &S
Expose secret: this is the only method providing access to a secret.
Source§impl<T: Zeroize + DefaultIsZeroes + Send + 'static> From<Box<T>> for DynamicZeroizing<T>
Available on crate feature zeroize only.
impl<T: Zeroize + DefaultIsZeroes + Send + 'static> From<Box<T>> for DynamicZeroizing<T>
Available on crate feature
zeroize only.Source§impl<T: ?Sized + Zeroize> From<Dynamic<T>> for DynamicZeroizing<T>
Available on crate feature zeroize only.
impl<T: ?Sized + Zeroize> From<Dynamic<T>> for DynamicZeroizing<T>
Available on crate feature
zeroize only.Source§impl<T: Zeroize + Send + 'static> From<T> for DynamicZeroizing<T>
Available on crate feature zeroize only.Ergonomic .into() support for zeroizing heap secrets.
impl<T: Zeroize + Send + 'static> From<T> for DynamicZeroizing<T>
Available on crate feature
zeroize only.Ergonomic .into() support for zeroizing heap secrets.
Source§impl<T: Zeroize + DefaultIsZeroes> Zeroize for DynamicZeroizing<T>
Available on crate feature zeroize only.
impl<T: Zeroize + DefaultIsZeroes> Zeroize for DynamicZeroizing<T>
Available on crate feature
zeroize only.impl<T: ?Sized + Zeroize> ZeroizeOnDrop for DynamicZeroizing<T>
Available on crate feature
zeroize only.Auto Trait Implementations§
impl<T> Freeze for DynamicZeroizing<T>where
T: ?Sized,
impl<T> RefUnwindSafe for DynamicZeroizing<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for DynamicZeroizing<T>
impl<T> Sync for DynamicZeroizing<T>
impl<T> Unpin for DynamicZeroizing<T>where
T: ?Sized,
impl<T> UnwindSafe for DynamicZeroizing<T>where
T: UnwindSafe + ?Sized,
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