Skip to main content

Crate diskgraph_ffi

Crate diskgraph_ffi 

Source
Expand description

UniFFI read-only API. JSON responses keep the first binding contract small.

Structs§

JobHandle
A live scan job handle (P7 task 9.2, PF-01). spawn_scan_json returns immediately, so a UI thread never blocks on a walk: progress is polled, cancellation is cooperative, and result_json is the only joining call. Dropping the last handle detaches the worker; the database is only written by the worker’s own publish step, so a detached run either completes its publish or leaves none.

Functions§

candidates_json
Returns candidates for review only, never paths to execute automatically.
capabilities_json
Reports implemented capabilities; unsupported scopes are never claimed empty.
children_json
explain_json
growth_json
Compares a locator in two complete, compatible snapshots.
latest_native_snapshot_json
Returns the latest snapshot ID for a native path previously scanned.
scan_native_json
Scans a caller-chosen native directory and persists an immutable snapshot.
spawn_scan_json
Spawns a native-path scan on a worker thread and returns a handle at once. The scan uses the same code path as scan_native_json; the only difference is who waits.
top_json