pub struct Sensitive<T>(/* private fields */);Expand description
A value that must never appear in a log line, an event, a reply or an
overlay (#125): a PIN, a key. Debug and Display redact; there is no
Serialize. The only way out is into_inner, which
a device calls at the point it hands the value to the hardware.
Implementations§
Trait Implementations§
impl<T: Eq> Eq for Sensitive<T>
impl<T: PartialEq> StructuralPartialEq for Sensitive<T>
Auto Trait Implementations§
impl<T> Freeze for Sensitive<T>where
T: Freeze,
impl<T> RefUnwindSafe for Sensitive<T>where
T: RefUnwindSafe,
impl<T> Send for Sensitive<T>where
T: Send,
impl<T> Sync for Sensitive<T>where
T: Sync,
impl<T> Unpin for Sensitive<T>where
T: Unpin,
impl<T> UnsafeUnpin for Sensitive<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Sensitive<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