pub struct CatalogSnapshot { /* private fields */ }Expand description
v7.11.0 — frozen read-only view of the engine’s committed state.
Constructed via Engine::clone_snapshot. Holds clones of the
catalog, statistics, clock function, and row-cap config — the
four fields the execute_readonly path actually reads. Cheap to
Clone (each clone shares the underlying PersistentVec row
storage; only the trie root pointers copy). Send + Sync so a
snapshot can be moved across tokio::task::spawn_blocking
boundaries without coordination.
The contract: a snapshot reflects the engine’s state at the
moment clone_snapshot() returned. Subsequent writes to the
engine are NOT visible. Callers who need fresher data take a
new snapshot.
Trait Implementations§
Source§impl Clone for CatalogSnapshot
impl Clone for CatalogSnapshot
Source§fn clone(&self) -> CatalogSnapshot
fn clone(&self) -> CatalogSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CatalogSnapshot
impl RefUnwindSafe for CatalogSnapshot
impl Send for CatalogSnapshot
impl Sync for CatalogSnapshot
impl Unpin for CatalogSnapshot
impl UnsafeUnpin for CatalogSnapshot
impl UnwindSafe for CatalogSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more