Skip to main content

ScratchCheckpoint

Struct ScratchCheckpoint 

Source
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 ScratchCheckpoint

§

impl Move for ScratchCheckpoint

§

impl RefUnwindSafe for ScratchCheckpoint

§

impl Send for ScratchCheckpoint
where 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 ScratchCheckpoint
where 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 ScratchCheckpoint

§

impl UnwindSafe for ScratchCheckpoint

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V