pub struct DebugSessionCookieGenerator { /* private fields */ }
Expand description
A debug cookie generator that generates an ascending sequence of integers, formatted as strings padded with zeroes.
Trait Implementations§
source§impl Debug for DebugSessionCookieGenerator
impl Debug for DebugSessionCookieGenerator
source§impl Default for DebugSessionCookieGenerator
impl Default for DebugSessionCookieGenerator
source§fn default() -> DebugSessionCookieGenerator
fn default() -> DebugSessionCookieGenerator
Returns the “default value” for a type. Read more
source§impl SessionCookieGenerator for DebugSessionCookieGenerator
impl SessionCookieGenerator for DebugSessionCookieGenerator
source§const COOKIE_LENGTH: usize = 32usize
const COOKIE_LENGTH: usize = 32usize
The length of the session cookie, in characters.
The default choice is
32
, which is secure.
It should be a multiple of 32
, which is the block size of blake3.Generate a cookie, i.e. a string that is a valid HTTP cookie value.
Auto Trait Implementations§
impl RefUnwindSafe for DebugSessionCookieGenerator
impl Send for DebugSessionCookieGenerator
impl Sync for DebugSessionCookieGenerator
impl Unpin for DebugSessionCookieGenerator
impl UnwindSafe for DebugSessionCookieGenerator
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