pub trait SessionStore:
Send
+ Sync
+ Debug {
// Required methods
fn get(&self) -> Option<Session>;
fn set(&self, session: Session);
fn clear(&self);
}Expand description
A backing store for the active session.
All methods are synchronous to keep them callable from middleware paths.
Implementations should be cheap to clone via Arc.