pub struct SessionKeyDisplay<'a> { /* private fields */ }Expand description
Helper struct for intentionally printing session keys with format! and {}.
This struct implements the Display trait to print the session key. This
construct requires the user to explicitly call
SessionKey::display_sensitive. By requiring the user to opt-in, this
will hopefully reduce that the chance that the session key is inadvertently
leaked, e.g., in a log that may be publicly posted.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SessionKeyDisplay<'a>
impl<'a> RefUnwindSafe for SessionKeyDisplay<'a>
impl<'a> Send for SessionKeyDisplay<'a>
impl<'a> Sync for SessionKeyDisplay<'a>
impl<'a> Unpin for SessionKeyDisplay<'a>
impl<'a> UnsafeUnpin for SessionKeyDisplay<'a>
impl<'a> UnwindSafe for SessionKeyDisplay<'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