pub struct TokenHash(/* private fields */);Expand description
The SHA-256 hash of a Token, identifying a session.
This is the value the application persists (and looks sessions up by):
deriving the token from it is infeasible, so a leaked session database
contains nothing a client could present. Obtain one from
start when creating a session, or
token_hash when resolving the current request’s
session.
Implementations§
Trait Implementations§
impl Eq for TokenHash
impl StructuralPartialEq for TokenHash
Auto Trait Implementations§
impl Freeze for TokenHash
impl RefUnwindSafe for TokenHash
impl Send for TokenHash
impl Sync for TokenHash
impl Unpin for TokenHash
impl UnsafeUnpin for TokenHash
impl UnwindSafe for TokenHash
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
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.