pub struct Session {
pub id: String,
/* private fields */
}Expand description
Data for a single session, keyed by Session::id.
After mutating the session, call SessionStore::save to persist the
changes back to the store.
Fields§
§id: StringOpaque session identifier — store this in the client cookie.
Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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