pub struct Zeroizing<Z: Zeroize + ?Sized>(/* private fields */);Expand description
Zeroizing is a wrapper for any Z: Zeroize type which implements a
Drop handler which zeroizes dropped values.
Zeroizing<T> is defined with repr(transparent), which means it is
guaranteed to have the same physical representation as the underlying type.
Implementations§
Trait Implementations§
Source§impl<'de, Z> Deserialize<'de> for Zeroizing<Z>where
Z: Zeroize + Deserialize<'de>,
Available on crate feature serde only.
impl<'de, Z> Deserialize<'de> for Zeroizing<Z>where
Z: Zeroize + Deserialize<'de>,
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<Z: Eq + Zeroize + ?Sized> Eq for Zeroizing<Z>
Source§impl<Z: PartialEq + Zeroize + ?Sized> PartialEq for Zeroizing<Z>
impl<Z: PartialEq + Zeroize + ?Sized> PartialEq for Zeroizing<Z>
impl<Z: Zeroize + ?Sized> StructuralPartialEq for Zeroizing<Z>
impl<Z> ZeroizeOnDrop for Zeroizing<Z>
Auto Trait Implementations§
impl<Z> Freeze for Zeroizing<Z>
impl<Z> RefUnwindSafe for Zeroizing<Z>where
Z: RefUnwindSafe + ?Sized,
impl<Z> Send for Zeroizing<Z>
impl<Z> Sync for Zeroizing<Z>
impl<Z> Unpin for Zeroizing<Z>
impl<Z> UnsafeUnpin for Zeroizing<Z>where
Z: UnsafeUnpin + ?Sized,
impl<Z> UnwindSafe for Zeroizing<Z>where
Z: 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