Skip to main content

SharedIndex

Type Alias SharedIndex 

Source
pub type SharedIndex = Arc<Mutex<Option<IndexState>>>;
Expand description

Shared, mutable cell carrying the (at most one) live workspace index. Mutex rather than RwLock because rebuilds flip the slot wholesale — fine-grained concurrency between rebuild + reads is intentionally not supported (the Swift side serialised through a single actor too).

Aliased Type§

pub struct SharedIndex { /* private fields */ }