pub trait SessionBackend: Send + Sync {
// Required methods
fn save(&self, session: &PersistedSession) -> Result<()>;
fn load(&self) -> Result<Option<PersistedSession>>;
fn delete(&self) -> Result<()>;
fn name(&self) -> &str;
}Expand description
An abstraction over where and how session data is persisted.