Function graph_persist_snapshot

Source
pub async fn graph_persist_snapshot<R: Runtime>(
    app: AppHandle<R>,
    state: State<'_, GraphPluginState>,
    payload: PersistSnapshotPayload,
) -> Result<(), String>
Expand description

Persist a JSON-serialised graph snapshot to the in-memory store and emit a SnapshotPersistedEvent.