pub struct Secret<const N: usize>(/* private fields */);Expand description
A secret of arbitrary length that zeroises on drop — a shared secret, a transcript hash, an intermediate KDF output.
Implementations§
Trait Implementations§
impl<const N: usize> Eq for Secret<N>
Auto Trait Implementations§
impl<const N: usize> Forget for Secret<N>
impl<const N: usize> Freeze for Secret<N>
impl<const N: usize> Move for Secret<N>
impl<const N: usize> RefUnwindSafe for Secret<N>
impl<const N: usize> Send for Secret<N>
impl<const N: usize> Sync for Secret<N>
impl<const N: usize> Unpin for Secret<N>
impl<const N: usize> UnsafeUnpin for Secret<N>
impl<const N: usize> UnwindSafe for Secret<N>
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