Expand description
Pluggable session storage backend.
The SessionBackend trait abstracts over session persistence so that
callers can swap in an SQLite store, a custom binary file, an in-memory
store, or anything else.
Two built-in backends are provided:
BinaryFileBackend— the original binary file format (default).- [
SqliteBackend] — SQLite (requires thesqlite-sessionCargo feature).
Structs§
- Binary
File Backend - The default session backend — stores the session in a compact binary file.
- InMemory
Backend - An ephemeral session backend that stores nothing on disk.
Traits§
- Session
Backend - An abstraction over where and how session data is persisted.