pub trait GraphStore: Send + Sync {
// Required methods
fn commit_mutation_batch(
&self,
batch: GraphMutationBatch,
) -> StorageFuture<'_, CommitReceipt>;
fn inspect_graph(&self) -> StorageFuture<'_, GraphInspection>;
fn search(
&self,
request: GraphSearchRequest,
) -> StorageFuture<'_, Vec<RetrievalHit>>;
fn current_graph_version(&self) -> StorageFuture<'_, GraphVersion>;
// Provided methods
fn health_snapshot(
&self,
_now_ms: u64,
) -> StorageFuture<'_, HealthStorageSnapshot> { ... }
fn graph_canvas(
&self,
_request: GraphCanvasStorageRequest,
) -> StorageFuture<'_, GraphCanvasStorageSnapshot> { ... }
}Expand description
Graph fact persistence and query contract.
Required Methods§
fn commit_mutation_batch( &self, batch: GraphMutationBatch, ) -> StorageFuture<'_, CommitReceipt>
fn inspect_graph(&self) -> StorageFuture<'_, GraphInspection>
fn search( &self, request: GraphSearchRequest, ) -> StorageFuture<'_, Vec<RetrievalHit>>
fn current_graph_version(&self) -> StorageFuture<'_, GraphVersion>
Provided Methods§
fn health_snapshot( &self, _now_ms: u64, ) -> StorageFuture<'_, HealthStorageSnapshot>
fn graph_canvas( &self, _request: GraphCanvasStorageRequest, ) -> StorageFuture<'_, GraphCanvasStorageSnapshot>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".