pub trait ArchiveStore: Send + Sync {
// Required methods
fn archive_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session: &'life1 Session,
) -> Pin<Box<dyn Future<Output = Result<String, SessionStoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn restore_session<'life0, 'life1, 'async_trait>(
&'life0 self,
archive_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Session, SessionStoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn delete_archive<'life0, 'life1, 'async_trait>(
&'life0 self,
archive_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SessionStoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}Expand description
Archive store trait for cold storage
Required Methods§
fn archive_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session: &'life1 Session,
) -> Pin<Box<dyn Future<Output = Result<String, SessionStoreError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn restore_session<'life0, 'life1, 'async_trait>(
&'life0 self,
archive_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Session, SessionStoreError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete_archive<'life0, 'life1, 'async_trait>(
&'life0 self,
archive_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SessionStoreError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".