pub struct Secret<T: ?Sized>(/* private fields */);Expand description
Implementations§
Trait Implementations§
Source§impl<T, U> AddAssign<Secret<U>> for Secret<T>where
T: AddAssign<U>,
impl<T, U> AddAssign<Secret<U>> for Secret<T>where
T: AddAssign<U>,
Source§fn add_assign(&mut self, rhs: Secret<U>)
fn add_assign(&mut self, rhs: Secret<U>)
Performs the
+= operation. Read moreSource§impl<T, U> BitAndAssign<Secret<U>> for Secret<T>where
T: BitAndAssign<U>,
impl<T, U> BitAndAssign<Secret<U>> for Secret<T>where
T: BitAndAssign<U>,
Source§fn bitand_assign(&mut self, rhs: Secret<U>)
fn bitand_assign(&mut self, rhs: Secret<U>)
Performs the
&= operation. Read moreSource§impl<T, U> BitOrAssign<Secret<U>> for Secret<T>where
T: BitOrAssign<U>,
impl<T, U> BitOrAssign<Secret<U>> for Secret<T>where
T: BitOrAssign<U>,
Source§fn bitor_assign(&mut self, rhs: Secret<U>)
fn bitor_assign(&mut self, rhs: Secret<U>)
Performs the
|= operation. Read moreSource§impl<T, U> BitXorAssign<Secret<U>> for Secret<T>where
T: BitXorAssign<U>,
impl<T, U> BitXorAssign<Secret<U>> for Secret<T>where
T: BitXorAssign<U>,
Source§fn bitxor_assign(&mut self, rhs: Secret<U>)
fn bitxor_assign(&mut self, rhs: Secret<U>)
Performs the
^= operation. Read moreSource§impl<'de, T: Deserialize<'de>> Deserialize<'de> for Secret<T>
Available on crate feature serde only.This API requires the following crate features to be activated: serde
impl<'de, T: Deserialize<'de>> Deserialize<'de> for Secret<T>
Available on crate feature
serde only.This API requires the following crate features to be activated: serde
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T, U> DivAssign<Secret<U>> for Secret<T>where
T: DivAssign<U>,
impl<T, U> DivAssign<Secret<U>> for Secret<T>where
T: DivAssign<U>,
Source§fn div_assign(&mut self, rhs: Secret<U>)
fn div_assign(&mut self, rhs: Secret<U>)
Performs the
/= operation. Read moreSource§impl<E: Error> Error for Secret<E>
Available on crate feature std only.
impl<E: Error> Error for Secret<E>
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<S: FromIterator<T>, T> FromIterator<Secret<T>> for Secret<S>
impl<S: FromIterator<T>, T> FromIterator<Secret<T>> for Secret<S>
Source§impl<T, U> MulAssign<Secret<U>> for Secret<T>where
T: MulAssign<U>,
impl<T, U> MulAssign<Secret<U>> for Secret<T>where
T: MulAssign<U>,
Source§fn mul_assign(&mut self, rhs: Secret<U>)
fn mul_assign(&mut self, rhs: Secret<U>)
Performs the
*= operation. Read moreSource§impl<T: Ord + ?Sized> Ord for Secret<T>
impl<T: Ord + ?Sized> Ord for Secret<T>
Source§impl<T: PartialOrd + ?Sized> PartialOrd for Secret<T>
impl<T: PartialOrd + ?Sized> PartialOrd for Secret<T>
Source§impl<T, U> RemAssign<Secret<U>> for Secret<T>where
T: RemAssign<U>,
impl<T, U> RemAssign<Secret<U>> for Secret<T>where
T: RemAssign<U>,
Source§fn rem_assign(&mut self, rhs: Secret<U>)
fn rem_assign(&mut self, rhs: Secret<U>)
Performs the
%= operation. Read moreSource§impl<T: Serialize> SerializableSecret<T> for &Secret<T>
Available on crate feature serde only.
impl<T: Serialize> SerializableSecret<T> for &Secret<T>
Available on crate feature
serde only.Source§impl<T: Serialize> SerializableSecret<T> for Secret<T>
Available on crate feature serde only.
impl<T: Serialize> SerializableSecret<T> for Secret<T>
Available on crate feature
serde only.Source§impl<T, U> ShlAssign<Secret<U>> for Secret<T>where
T: ShlAssign<U>,
impl<T, U> ShlAssign<Secret<U>> for Secret<T>where
T: ShlAssign<U>,
Source§fn shl_assign(&mut self, rhs: Secret<U>)
fn shl_assign(&mut self, rhs: Secret<U>)
Performs the
<<= operation. Read moreSource§impl<T, U> ShrAssign<Secret<U>> for Secret<T>where
T: ShrAssign<U>,
impl<T, U> ShrAssign<Secret<U>> for Secret<T>where
T: ShrAssign<U>,
Source§fn shr_assign(&mut self, rhs: Secret<U>)
fn shr_assign(&mut self, rhs: Secret<U>)
Performs the
>>= operation. Read moreSource§impl<T, U> SubAssign<Secret<U>> for Secret<T>where
T: SubAssign<U>,
impl<T, U> SubAssign<Secret<U>> for Secret<T>where
T: SubAssign<U>,
Source§fn sub_assign(&mut self, rhs: Secret<U>)
fn sub_assign(&mut self, rhs: Secret<U>)
Performs the
-= operation. Read moreSource§impl<T: TryZeroize> TryZeroize for Secret<T>
Available on crate feature zeroize only.
impl<T: TryZeroize> TryZeroize for Secret<T>
Available on crate feature
zeroize only.Source§fn try_zeroize(&mut self) -> bool
fn try_zeroize(&mut self) -> bool
Try to zero out this object from memory using Rust intrinsics which
ensure the zeroization operation is not “optimized away” by the
compiler.
impl<T: Copy + ?Sized> Copy for Secret<T>
impl<T: Eq + ?Sized> Eq for Secret<T>
impl<T: ?Sized> StructuralPartialEq for Secret<T>
impl<T: ZeroizeOnDrop> ZeroizeOnDrop for Secret<T>
Available on crate feature
zeroize only.Auto Trait Implementations§
impl<T> Freeze for Secret<T>
impl<T> RefUnwindSafe for Secret<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Secret<T>
impl<T> Sync for Secret<T>
impl<T> Unpin for Secret<T>
impl<T> UnwindSafe for Secret<T>where
T: UnwindSafe + ?Sized,
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