Trait MemoryStore
Source pub trait MemoryStore: Send + Sync {
Show 15 methods
// Required methods
fn upsert<'life0, 'async_trait>(
&'life0 self,
request: UpsertRequest,
) -> Pin<Box<dyn Future<Output = Result<UpsertReceipt>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn batch_upsert<'life0, 'async_trait>(
&'life0 self,
request: BatchUpsertRequest,
) -> Pin<Box<dyn Future<Output = Result<Vec<UpsertReceipt>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recall<'life0, 'async_trait>(
&'life0 self,
query: RecallQuery,
) -> Pin<Box<dyn Future<Output = Result<RecallResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn compact<'life0, 'async_trait>(
&'life0 self,
request: CompactionRequest,
) -> Pin<Box<dyn Future<Output = Result<CompactionReport>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
request: DeleteRequest,
) -> Pin<Box<dyn Future<Output = Result<DeleteReceipt>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn archive<'life0, 'async_trait>(
&'life0 self,
request: ArchiveRequest,
) -> Pin<Box<dyn Future<Output = Result<ArchiveReceipt>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn suppress<'life0, 'async_trait>(
&'life0 self,
request: SuppressRequest,
) -> Pin<Box<dyn Future<Output = Result<SuppressReceipt>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recover<'life0, 'async_trait>(
&'life0 self,
request: RecoverRequest,
) -> Pin<Box<dyn Future<Output = Result<RecoverReceipt>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SnapshotManifest>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stats<'life0, 'async_trait>(
&'life0 self,
request: StoreStatsRequest,
) -> Pin<Box<dyn Future<Output = Result<StoreStatsReport>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn integrity_check<'life0, 'async_trait>(
&'life0 self,
request: IntegrityCheckRequest,
) -> Pin<Box<dyn Future<Output = Result<IntegrityCheckReport>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn repair<'life0, 'async_trait>(
&'life0 self,
request: RepairRequest,
) -> Pin<Box<dyn Future<Output = Result<RepairReport>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn export<'life0, 'async_trait>(
&'life0 self,
request: ExportRequest,
) -> Pin<Box<dyn Future<Output = Result<PortableStorePackage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn import<'life0, 'async_trait>(
&'life0 self,
request: ImportRequest,
) -> Pin<Box<dyn Future<Output = Result<ImportReport>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn backend_kind(&self) -> &'static str { ... }
}