Enum docserver::defs::session::SessionStoreDB
source · pub enum SessionStoreDB {
Files(FileStore),
SqlLite(SqliteSessionStore),
Memory(MemoryStore),
None,
}
Variants§
Implementations§
source§impl SessionStoreDB
impl SessionStoreDB
In SessionStoreDB
creation match the corresponding store to return it as item argument
pub fn connect_file_store(store: FileStore) -> Self
pub fn connect_memory_store() -> Self
pub fn connect_sqlite_store(store: SqliteSessionStore) -> Self
pub async fn store_session_data( id: &str, user_data: &str, expire: u64, app_dbs: &AppDBs ) -> String
pub async fn update_session_data(session: Session, app_dbs: &AppDBs) -> String
pub async fn cleanup_data(app_dbs: &AppDBs)
Trait Implementations§
source§impl Clone for SessionStoreDB
impl Clone for SessionStoreDB
source§fn clone(&self) -> SessionStoreDB
fn clone(&self) -> SessionStoreDB
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more