Trait SessionManagerExt

Source
pub trait SessionManagerExt {
    // Required methods
    fn get_session_proto<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<SessionState>, GrpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_session_grpc<'life0, 'async_trait>(
        &'life0 self,
        config: CreateSessionRequest,
        app_config: AppConfig,
    ) -> Pin<Box<dyn Future<Output = Result<(String, SessionInfo), GrpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Extension trait for SessionManager that adds gRPC-specific functionality

Required Methods§

Source

fn get_session_proto<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<SessionState>, GrpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get session state as protobuf SessionState

Source

fn create_session_grpc<'life0, 'async_trait>( &'life0 self, config: CreateSessionRequest, app_config: AppConfig, ) -> Pin<Box<dyn Future<Output = Result<(String, SessionInfo), GrpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create session for gRPC

Implementations on Foreign Types§

Source§

impl SessionManagerExt for SessionManager

Source§

fn get_session_proto<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<SessionState>, GrpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn create_session_grpc<'life0, 'async_trait>( &'life0 self, config: CreateSessionRequest, app_config: AppConfig, ) -> Pin<Box<dyn Future<Output = Result<(String, SessionInfo), GrpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§