Skip to main content

SessionService

Trait SessionService 

Source
pub trait SessionService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn open_session<'life0, 'async_trait>(
        &'life0 self,
        request: Request<OpenSessionRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<OpenSessionResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn close_session<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CloseSessionRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

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

Required Methods§

Source

fn open_session<'life0, 'async_trait>( &'life0 self, request: Request<OpenSessionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<OpenSessionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn close_session<'life0, 'async_trait>( &'life0 self, request: Request<CloseSessionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§