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§
Sourcefn 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 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
Sourcefn 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,
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