pub trait Session: Send + Sync + 'static {
    fn generate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SessionCreationData>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SessionToken>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn retrieve<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SessionToken>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SessionData>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn remove<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SessionToken>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Generated trait containing gRPC methods that should be implemented for use with SessionServer.

Required Methods

Generates session data for a user.

Retrieves session data from a session token.

Removes a session if existing

Implementors