Skip to main content

SessionStore

Trait SessionStore 

Source
pub trait SessionStore: Send + Sync {
    // Required methods
    fn append<'life0, 'async_trait>(
        &'life0 self,
        key: SessionKey,
        entries: Vec<SessionStoreEntry>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn load<'life0, 'async_trait>(
        &'life0 self,
        key: SessionKey,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<SessionStoreEntry>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn supports_list_sessions(&self) -> bool { ... }
    fn list_sessions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _project_key: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SessionStoreListEntry>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn list_session_summaries<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _project_key: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SessionSummaryEntry>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn delete<'life0, 'async_trait>(
        &'life0 self,
        _key: SessionKey,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn list_subkeys<'life0, 'async_trait>(
        &'life0 self,
        _key: SessionListSubkeysKey,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn append<'life0, 'async_trait>( &'life0 self, key: SessionKey, entries: Vec<SessionStoreEntry>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn load<'life0, 'async_trait>( &'life0 self, key: SessionKey, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<SessionStoreEntry>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn supports_list_sessions(&self) -> bool

Source

fn list_sessions<'life0, 'life1, 'async_trait>( &'life0 self, _project_key: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<SessionStoreListEntry>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn list_session_summaries<'life0, 'life1, 'async_trait>( &'life0 self, _project_key: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<SessionSummaryEntry>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete<'life0, 'async_trait>( &'life0 self, _key: SessionKey, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_subkeys<'life0, 'async_trait>( &'life0 self, _key: SessionListSubkeysKey, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§