Session

Trait Session 

Source
pub trait Session: Send + Sync {
    // Required method
    fn validate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        token: &'life1 Token,
    ) -> Pin<Box<dyn Future<Output = AuthResult<UserContext>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn validate<'life0, 'life1, 'async_trait>( &'life0 self, token: &'life1 Token, ) -> Pin<Box<dyn Future<Output = AuthResult<UserContext>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§