Skip to main content

MemoryService

Trait MemoryService 

Source
pub trait MemoryService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn store<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StoreRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StoreResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn recall<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RecallRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RecallResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn search<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SearchRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn forget<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ForgetRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ForgetResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn relate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RelateRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RelateResponse>, 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 MemoryServiceServer.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

fn relate<'life0, 'async_trait>( &'life0 self, request: Request<RelateRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RelateResponse>, 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§