pub struct Secret<T: Zeroize>(/* private fields */);Expand description
An owned buffer that is scrubbed on drop and never rendered by Debug.
Only the buffer owned here is scrubbed. Copies inside SDK request bodies and transport frame buffers are outside the client’s control; this is not an end-to-end memory-erasure guarantee.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for Secret<T>
impl<T> Freeze for Secret<T>where
T: Freeze,
impl<T> Move for Secret<T>
impl<T> RefUnwindSafe for Secret<T>where
T: RefUnwindSafe,
impl<T> Send for Secret<T>where
T: Send,
impl<T> Sync for Secret<T>where
T: Sync,
impl<T> Unpin for Secret<T>where
T: Unpin,
impl<T> UnsafeUnpin for Secret<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Secret<T>where
T: UnwindSafe,
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