pub trait SessionStore:
Send
+ Sync
+ Debug {
// Required methods
fn create<'life0, 'async_trait>(
&'life0 self,
token_hash: SessionTokenHash,
session: SessionRecord,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn find_by_token_hash<'life0, 'async_trait>(
&'life0 self,
token_hash: SessionTokenHash,
) -> Pin<Box<dyn Future<Output = Result<Option<SessionRecord>, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn revoke<'life0, 'async_trait>(
&'life0 self,
id: SessionId,
at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<bool, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn revoke_subject<'life0, 'life1, 'async_trait>(
&'life0 self,
subject: &'life1 str,
at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<usize, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
fn create<'life0, 'async_trait>(
&'life0 self,
token_hash: SessionTokenHash,
session: SessionRecord,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_by_token_hash<'life0, 'async_trait>(
&'life0 self,
token_hash: SessionTokenHash,
) -> Pin<Box<dyn Future<Output = Result<Option<SessionRecord>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn revoke<'life0, 'async_trait>(
&'life0 self,
id: SessionId,
at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<bool, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn revoke_subject<'life0, 'life1, 'async_trait>(
&'life0 self,
subject: &'life1 str,
at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<usize, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".