pub struct SessionState { /* private fields */ }Expand description
The request-scoped session cell, registered on the request context by the
session layer (or manually via CxTestBuilder in tests).
The cell caches the token presented by the request so the token store is
read at most once per request, and it is updated by the lifecycle
functions (start, stop,
rotate) so later reads within the same request observe
the change.
Implementations§
Source§impl SessionState
impl SessionState
Trait Implementations§
Source§impl Debug for SessionState
impl Debug for SessionState
Source§impl Default for SessionState
impl Default for SessionState
Source§fn default() -> SessionState
fn default() -> SessionState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for SessionState
impl !RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionState
impl UnwindSafe for SessionState
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