pub struct ChampCheckpoint<K, V> {
pub store: StoreCheckpoint<K, V>,
pub root: Option<Idx<Node<K, V>>>,
pub size: usize,
pub adhash: u64,
}Expand description
Saved map state for rollback.
Created by ChampMap::checkpoint or ChampMapSync::checkpoint.
Restoring via rollback discards all changes made after the checkpoint.
Fields§
§store: StoreCheckpoint<K, V>Three-arena store checkpoint.
root: Option<Idx<Node<K, V>>>Root node index at checkpoint time.
size: usizeEntry count at checkpoint time.
adhash: u64AdHash at checkpoint time.
Trait Implementations§
Source§impl<K, V> Clone for ChampCheckpoint<K, V>
impl<K, V> Clone for ChampCheckpoint<K, V>
Source§impl<K, V> Debug for ChampCheckpoint<K, V>
impl<K, V> Debug for ChampCheckpoint<K, V>
impl<K, V> Copy for ChampCheckpoint<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for ChampCheckpoint<K, V>
impl<K, V> RefUnwindSafe for ChampCheckpoint<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for ChampCheckpoint<K, V>
impl<K, V> Sync for ChampCheckpoint<K, V>
impl<K, V> Unpin for ChampCheckpoint<K, V>
impl<K, V> UnsafeUnpin for ChampCheckpoint<K, V>
impl<K, V> UnwindSafe for ChampCheckpoint<K, V>where
K: UnwindSafe,
V: 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