pub struct SessionSecret(/* private fields */);Expand description
A session secret in plaintext. Lives only in the cookie; only its derived lookup key is stored (RFC-006).
Implementations§
Source§impl SessionSecret
impl SessionSecret
Sourcepub fn expose(&self) -> &str
pub fn expose(&self) -> &str
Borrow the plaintext. See SecretString::expose.
Sourcepub fn as_secret(&self) -> &SecretString
pub fn as_secret(&self) -> &SecretString
Borrow the inner SecretString.
Trait Implementations§
Source§impl Clone for SessionSecret
impl Clone for SessionSecret
Source§fn clone(&self) -> SessionSecret
fn clone(&self) -> SessionSecret
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionSecret
impl Debug for SessionSecret
impl Eq for SessionSecret
Source§impl PartialEq for SessionSecret
impl PartialEq for SessionSecret
Source§fn eq(&self, other: &SessionSecret) -> bool
fn eq(&self, other: &SessionSecret) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionSecret
Auto Trait Implementations§
impl Freeze for SessionSecret
impl RefUnwindSafe for SessionSecret
impl Send for SessionSecret
impl Sync for SessionSecret
impl Unpin for SessionSecret
impl UnsafeUnpin for SessionSecret
impl UnwindSafe for SessionSecret
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