GraphStore

Trait GraphStore 

Source
pub trait GraphStore {
    type Snapshot: GraphSnapshot;

    // Required method
    fn snapshot(&self) -> Self::Snapshot;
}
Expand description

Provides access to a snapshot of the graph at a point in time.

Implementors must ensure that the returned snapshot is immutable and reflects a consistent state of the graph.

Required Associated Types§

Required Methods§

Source

fn snapshot(&self) -> Self::Snapshot

Creates a snapshot of the current graph state.

The snapshot is independent of any writes that occur after creation.

Implementors§