Module state

Source
Expand description

state.rs

GraphPluginState — the Tauri-managed plugin state.

Holds in-memory entity and list snapshots so the Rust side can serve graph_get_entity / graph_get_list without a round-trip to SQLite. The canonical source of truth is the TS graph store; this is a mirror kept up-to-date by command handlers.

Structs§

GraphPluginState
Plugin-managed state, guarded by async RwLock for multi-window safety.
ListEntry
Per-list storage keyed by query_key.

Type Aliases§

EntityMap
Per-entity storage keyed by (entity_type, entity_id).
ListMap
SnapshotMap
Per-snapshot storage keyed by storage_key.