Trait SessionStateProvider

Source
pub trait SessionStateProvider: Sync + Send {
    // Required method
    fn new_context<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 Request<()>,
    ) -> Pin<Box<dyn Future<Output = Result<SessionState, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn new_context<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 Request<()>, ) -> Pin<Box<dyn Future<Output = Result<SessionState, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§