pub struct SensitiveData<T>(/* private fields */);Expand description
A transparent wrapper type that makes any value implement !NonSensitive.
This type is guarunteed to have the same size as the inner data.
For an example, see the documentation on NonSensitive.
Implementations§
Trait Implementations§
Source§impl<T> Clone for SensitiveData<T>where
T: Clone,
impl<T> Clone for SensitiveData<T>where
T: Clone,
Source§impl<T> Deref for SensitiveData<T>
impl<T> Deref for SensitiveData<T>
Source§impl<T> DerefMut for SensitiveData<T>
impl<T> DerefMut for SensitiveData<T>
impl<T> Copy for SensitiveData<T>where
T: Copy,
impl<T> !NonSensitive for SensitiveData<T>
Auto Trait Implementations§
impl<T> Freeze for SensitiveData<T>where
T: Freeze,
impl<T> RefUnwindSafe for SensitiveData<T>where
T: RefUnwindSafe,
impl<T> Send for SensitiveData<T>where
T: Send,
impl<T> Sync for SensitiveData<T>where
T: Sync,
impl<T> Unpin for SensitiveData<T>where
T: Unpin,
impl<T> UnwindSafe for SensitiveData<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