pub struct EngineSnapshot { /* private fields */ }Expand description
CoW-1 (v7.34) — frozen view of the persisted committed engine
state. Carries every field the snapshot() envelope serializes;
Clone is O(1) on the catalog (Arc bump) and cheap typed-clones
on the trailers. Decouples “capture state” from “serialize bytes”
so the background-checkpoint worker can hold the snapshot and
produce bytes off the engine write lock.
Implementations§
Trait Implementations§
Source§impl Clone for EngineSnapshot
impl Clone for EngineSnapshot
Source§fn clone(&self) -> EngineSnapshot
fn clone(&self) -> EngineSnapshot
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 EngineSnapshot
impl RefUnwindSafe for EngineSnapshot
impl Send for EngineSnapshot
impl Sync for EngineSnapshot
impl Unpin for EngineSnapshot
impl UnsafeUnpin for EngineSnapshot
impl UnwindSafe for EngineSnapshot
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