pub type SharedFileIndex = Arc<ArcSwap<Option<FileIndex>>>;Expand description
Lock-free shared index. None while the initial walk is still in progress.
Use index.load() for reads (returns a Guard — no lock taken).
Use index.store(Arc::new(Some(new_idx))) for writes (atomic swap).
Aliased Type§
pub struct SharedFileIndex { /* private fields */ }