pub struct ScratchCheckpoint { /* private fields */ }Expand description
Rollback image of a WriteScratch: its two state halves — the per-batch
state (via the one embedded capture) and the statement-spanning state
([StatementState]: counters and applied count as of the capture) — plus
the redo log’s positional cursor. Cloning the maps is shallow once node and
relationship payloads are Arcs; the redo ops stay with the live log, and
the id allocators are not captured (they never roll back).
Opaque to the facade, which captures one per CALL { … } IN TRANSACTIONS
batch and restores it when that batch fails. Its clone is O(batch), so it
is a per-batch image — never a per-statement one (StatementMark).
Auto Trait Implementations§
impl Forget for ScratchCheckpoint
impl Freeze for ScratchCheckpointwhere
*const u8 is !null: Freeze,
PhantomData<(i64, Node)>: Freeze,
PhantomData<(String, HashMap<String, HashMap<GroupKey, HashSet<i64>>>)>: Freeze,
PhantomData<Node>: Freeze,
PhantomData<(i64, Relationship)>: Freeze,
PhantomData<Relationship>: Freeze,
PhantomData<(i64, ())>: Freeze,
PhantomData<(i64, Vec<i64>)>: Freeze,
*const ArcInner<Mutex<HashMap<u32, LabelMemo>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<HashMap<u32, LabelMemo>>>>: Freeze,
PhantomData<(String, i32)>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<ConstraintDef>: Freeze,
impl Move for ScratchCheckpoint
impl RefUnwindSafe for ScratchCheckpointwhere
Atomic<usize>: RefUnwindSafe,
NonZero<i32>: RefUnwindSafe,
i64: RefUnwindSafe,
Mutex<HashMap<u32, LabelMemo>>: RefUnwindSafe,
impl Send for ScratchCheckpointwhere
RawTable<(i64, Node)>: Send,
RawTable<(String, HashMap<String, HashMap<GroupKey, HashSet<i64>>>)>: Send,
Arc<Vec<String>>: Send,
Arc<PropertyMap>: Send,
RawTable<(i64, Relationship)>: Send,
RawVecInner: Send,
RawTable<(i64, ())>: Send,
RawTable<(i64, Vec<i64>)>: Send,
Arc<Mutex<HashMap<u32, LabelMemo>>>: Send,
RawTable<(String, i32)>: Send,
impl Sync for ScratchCheckpointwhere
RawTable<(i64, Node)>: Sync,
RawTable<(String, HashMap<String, HashMap<GroupKey, HashSet<i64>>>)>: Sync,
Arc<Vec<String>>: Sync,
Arc<PropertyMap>: Sync,
RawTable<(i64, Relationship)>: Sync,
RawVecInner: Sync,
RawTable<(i64, ())>: Sync,
RawTable<(i64, Vec<i64>)>: Sync,
Arc<Mutex<HashMap<u32, LabelMemo>>>: Sync,
RawTable<(String, i32)>: Sync,
impl Unpin for ScratchCheckpoint
impl UnsafeUnpin for ScratchCheckpointwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(i64, Node)>: UnsafeUnpin,
PhantomData<(String, HashMap<String, HashMap<GroupKey, HashSet<i64>>>)>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
PhantomData<(i64, Relationship)>: UnsafeUnpin,
PhantomData<Relationship>: UnsafeUnpin,
PhantomData<(i64, ())>: UnsafeUnpin,
PhantomData<(i64, Vec<i64>)>: UnsafeUnpin,
*const ArcInner<Mutex<HashMap<u32, LabelMemo>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<HashMap<u32, LabelMemo>>>>: UnsafeUnpin,
PhantomData<(String, i32)>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<ConstraintDef>: UnsafeUnpin,
impl UnwindSafe for ScratchCheckpointwhere
HashMap<i64, Node>: UnwindSafe,
HashMap<String, HashMap<String, HashMap<GroupKey, HashSet<i64>>>>: UnwindSafe,
Arc<Vec<String>>: UnwindSafe,
Arc<PropertyMap>: UnwindSafe,
HashMap<i64, Relationship>: UnwindSafe,
RawVecInner: UnwindSafe,
NonNull<u8>: UnwindSafe,
HashMap<i64, Vec<i64>>: UnwindSafe,
Arc<Mutex<HashMap<u32, LabelMemo>>>: UnwindSafe,
HashMap<String, i32>: UnwindSafe,
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