Skip to main content

aft_parse/callgraph_store/
access.rs

1use super::CallGraphStoreError;
2
3/// Result of requesting the persisted callgraph store for a store-backed op.
4///
5/// Cold builds run in the background. Checkout-view acquisitions also run
6/// off the request thread, with a bounded wait before returning `Building`
7/// so the agent can retry while materialization continues.
8pub enum CallgraphStoreAccess {
9    /// A build or checkout-view acquisition is in flight; retry shortly.
10    Building,
11    /// The durable build-death breaker refuses this domain until an explicit reset
12    /// or a time-to-live check confirms the suspension has expired.
13    Suspended(crate::build_state::BuildSuspension),
14    /// Resolved configuration turns the callgraph index off. No build is
15    /// started for a disabled index.
16    Off,
17    /// Not configured, or a read-only worktree whose store was never built.
18    Unavailable,
19    /// A store open/build check failed with a real error (DB/IO).
20    Error(CallGraphStoreError),
21}