Trait SessionBackend
Source pub trait SessionBackend<T: ObjectId + Serialize + for<'de> Deserialize<'de>>: Send + Sync {
// Required methods
fn validate<'life0, 'async_trait>(
&'life0 self,
session_id: String,
) -> Pin<Box<dyn Future<Output = Result<T, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn login<'life0, 'async_trait>(
&'life0 self,
username: String,
password: String,
) -> Pin<Box<dyn Future<Output = Result<Session<T>, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}