Skip to main content

GraphStore

Trait GraphStore 

Source
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<'_, GraphSearchOutcome>;
    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§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§