Trait SessionProvider

Source
pub trait SessionProvider:
    Send
    + Sync
    + 'static {
    // Required methods
    fn open_session<'life0, 'life1, 'async_trait>(
        &'life0 self,
        cookie_map: &'life1 CookieMap,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn Session>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn save_session<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        session: &'life1 Box<dyn Session>,
        res: &'life2 mut HttpResonse,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn open_session<'life0, 'life1, 'async_trait>( &'life0 self, cookie_map: &'life1 CookieMap, ) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn Session>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn save_session<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session: &'life1 Box<dyn Session>, res: &'life2 mut HttpResonse, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§