Enum JournalEntry
pub enum JournalEntry<T>where
T: LinkReference,{
Begin {
transaction_id: u64,
snapshot: Vec<Link<T>>,
},
Transition(Transition<T>),
Commit {
transaction_id: u64,
snapshot: Vec<Link<T>>,
},
Rollback {
transaction_id: u64,
},
}Expand description
A durable recovery record.
Start and commit snapshots bridge the gap between a store mutation and its after-write callback, and remove the need for a store-specific flush hook.
Variants§
Begin
Persisted before the transaction can modify the store.
Fields
Transition(Transition<T>)
One callback’s before/after pair, in write order.
Commit
Persisted before commit returns successfully.
Fields
Rollback
Persisted after restoring the begin snapshot.
Trait Implementations§
§impl<T> Clone for JournalEntry<T>where
T: Clone + LinkReference,
impl<T> Clone for JournalEntry<T>where
T: Clone + LinkReference,
§fn clone(&self) -> JournalEntry<T>
fn clone(&self) -> JournalEntry<T>
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 more§impl<T> Debug for JournalEntry<T>where
T: Debug + LinkReference,
impl<T> Debug for JournalEntry<T>where
T: Debug + LinkReference,
impl<T> Eq for JournalEntry<T>where
T: Eq + LinkReference,
§impl<T> PartialEq for JournalEntry<T>where
T: PartialEq + LinkReference,
impl<T> PartialEq for JournalEntry<T>where
T: PartialEq + LinkReference,
impl<T> StructuralPartialEq for JournalEntry<T>where
T: PartialEq + LinkReference,
Auto Trait Implementations§
impl<T> Freeze for JournalEntry<T>where
T: Freeze,
impl<T> RefUnwindSafe for JournalEntry<T>where
T: RefUnwindSafe,
impl<T> Send for JournalEntry<T>
impl<T> Sync for JournalEntry<T>
impl<T> Unpin for JournalEntry<T>where
T: Unpin,
impl<T> UnsafeUnpin for JournalEntry<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for JournalEntry<T>where
T: 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