1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod memory;

pub use self::memory::MemorySessionStore;
pub(crate) use super::Session;
use async_trait::async_trait;

#[async_trait]
pub trait SessionStore {
    #[must_use]
    async fn get_session(&self) -> Option<Session>;
    #[must_use]
    async fn set_session(&self, session: Session);
    #[must_use]
    async fn clear_session(&self);
}