Skip to main content

SessionStore

Trait SessionStore 

Source
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.

Required Methods§

Source

fn get(&self) -> Option<Session>

Source

fn set(&self, session: Session)

Source

fn clear(&self)

Implementors§