Skip to main content

SnapshotCell

Type Alias SnapshotCell 

Source
pub type SnapshotCell = Arc<ArcSwap<CollectionSnapshot>>;
Expand description

Per-collection lock-free serving snapshot pointer: the single writer stores a new CollectionSnapshot; readers load one without a lock. (ArcSwap<T> stores an Arc<T> internally, so this is one Arc per load.)

Aliased Typeยง

pub struct SnapshotCell { /* private fields */ }