pub struct SecretBytes(/* private fields */);Expand description
Owned sensitive bytes. Debug is redacted; the allocation is zeroized on drop.
Implementations§
Trait Implementations§
Source§impl Clone for SecretBytes
impl Clone for SecretBytes
Source§fn clone(&self) -> SecretBytes
fn clone(&self) -> SecretBytes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecretBytes
impl Debug for SecretBytes
Source§impl Default for SecretBytes
impl Default for SecretBytes
Source§fn default() -> SecretBytes
fn default() -> SecretBytes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SecretBytes
impl RefUnwindSafe for SecretBytes
impl Send for SecretBytes
impl Sync for SecretBytes
impl Unpin for SecretBytes
impl UnsafeUnpin for SecretBytes
impl UnwindSafe for SecretBytes
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