pub trait MemoryService:
Send
+ Sync
+ 'static {
Show 21 methods
// Required methods
fn upsert_memory_record<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertMemoryRecordRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpsertMemoryRecordReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn batch_upsert_memory_records<'life0, 'async_trait>(
&'life0 self,
request: Request<BatchUpsertMemoryRecordsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BatchUpsertMemoryRecordsReply>, 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<RecallReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recall_as_of<'life0, 'async_trait>(
&'life0 self,
request: Request<TimeTravelRecallRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecallReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn compact<'life0, 'async_trait>(
&'life0 self,
request: Request<CompactRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CompactReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn synthesize<'life0, 'async_trait>(
&'life0 self,
request: Request<SynthesisRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SynthesisReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn snapshot<'life0, 'async_trait>(
&'life0 self,
request: Request<SnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SnapshotReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn archive<'life0, 'async_trait>(
&'life0 self,
request: Request<ArchiveRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ArchiveReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn suppress<'life0, 'async_trait>(
&'life0 self,
request: Request<SuppressRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SuppressReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recover<'life0, 'async_trait>(
&'life0 self,
request: Request<RecoverRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecoverReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stats<'life0, 'async_trait>(
&'life0 self,
request: Request<StoreStatsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StoreStatsReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn inspect_graph<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphInspectionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphInspectionReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn integrity_check<'life0, 'async_trait>(
&'life0 self,
request: Request<IntegrityCheckRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<IntegrityCheckReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn repair<'life0, 'async_trait>(
&'life0 self,
request: Request<RepairRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RepairReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn run_maintenance<'life0, 'async_trait>(
&'life0 self,
request: Request<MaintenanceRunRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MaintenanceRunReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_traces<'life0, 'async_trait>(
&'life0 self,
request: Request<ListTracesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListTracesReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_trace<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTraceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OperationTrace>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn export<'life0, 'async_trait>(
&'life0 self,
request: Request<ExportRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExportReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn import<'life0, 'async_trait>(
&'life0 self,
request: Request<ImportRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ImportReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn ship_snapshot<'life0, 'async_trait>(
&'life0 self,
request: Request<SnapshotShipRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SnapshotShipReply>, 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§
fn upsert_memory_record<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertMemoryRecordRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpsertMemoryRecordReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn batch_upsert_memory_records<'life0, 'async_trait>(
&'life0 self,
request: Request<BatchUpsertMemoryRecordsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BatchUpsertMemoryRecordsReply>, 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<RecallReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recall_as_of<'life0, 'async_trait>(
&'life0 self,
request: Request<TimeTravelRecallRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecallReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn compact<'life0, 'async_trait>(
&'life0 self,
request: Request<CompactRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CompactReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn synthesize<'life0, 'async_trait>(
&'life0 self,
request: Request<SynthesisRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SynthesisReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn snapshot<'life0, 'async_trait>(
&'life0 self,
request: Request<SnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SnapshotReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn archive<'life0, 'async_trait>(
&'life0 self,
request: Request<ArchiveRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ArchiveReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn suppress<'life0, 'async_trait>(
&'life0 self,
request: Request<SuppressRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SuppressReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recover<'life0, 'async_trait>(
&'life0 self,
request: Request<RecoverRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecoverReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stats<'life0, 'async_trait>(
&'life0 self,
request: Request<StoreStatsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StoreStatsReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn inspect_graph<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphInspectionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphInspectionReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn integrity_check<'life0, 'async_trait>(
&'life0 self,
request: Request<IntegrityCheckRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<IntegrityCheckReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn repair<'life0, 'async_trait>(
&'life0 self,
request: Request<RepairRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RepairReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run_maintenance<'life0, 'async_trait>(
&'life0 self,
request: Request<MaintenanceRunRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MaintenanceRunReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_traces<'life0, 'async_trait>(
&'life0 self,
request: Request<ListTracesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListTracesReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_trace<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTraceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OperationTrace>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn export<'life0, 'async_trait>(
&'life0 self,
request: Request<ExportRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExportReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn import<'life0, 'async_trait>(
&'life0 self,
request: Request<ImportRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ImportReply>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ship_snapshot<'life0, 'async_trait>(
&'life0 self,
request: Request<SnapshotShipRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SnapshotShipReply>, 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".