Skip to main content

SttpGatewayService

Trait SttpGatewayService 

Source
pub trait SttpGatewayService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn calibrate_session<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CalibrateSessionRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CalibrateSessionReply>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn store_context<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StoreContextRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StoreContextReply>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_context<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetContextRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetContextReply>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_embedding_context<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetEmbeddingContextRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetContextReply>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_nodes<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListNodesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListNodesReply>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_moods<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetMoodsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetMoodsReply>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn batch_rekey<'life0, 'async_trait>(
        &'life0 self,
        request: Request<BatchRekeyRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<BatchRekeyReply>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_monthly_rollup<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateMonthlyRollupRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CreateMonthlyRollupReply>, 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 SttpGatewayServiceServer.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§