pub struct DisplaySecret<'a>(/* private fields */);Available on crate features
aes-gcm or aes-gcm-siv or chacha20poly1305 or xchacha20poly1305 or aegis256 or ascon-aead or ed25519 or x25519 only.Expand description
Explicit opt-in wrapper for displaying secret key bytes as hex.
Returned by the display_secret() method on secret key types. Implements
Display so you can format!("{}", key.display_secret()).
Trait Implementations§
Source§impl Debug for DisplaySecret<'_>
impl Debug for DisplaySecret<'_>
Auto Trait Implementations§
impl<'a> Freeze for DisplaySecret<'a>
impl<'a> RefUnwindSafe for DisplaySecret<'a>
impl<'a> Send for DisplaySecret<'a>
impl<'a> Sync for DisplaySecret<'a>
impl<'a> Unpin for DisplaySecret<'a>
impl<'a> UnsafeUnpin for DisplaySecret<'a>
impl<'a> UnwindSafe for DisplaySecret<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more