pub struct AssignmentJournalGuard { /* private fields */ }Expand description
The open assignment journal (begin_assignment_journal).
Implementations§
Source§impl AssignmentJournalGuard
impl AssignmentJournalGuard
Sourcepub fn assigned(&self, table: TableName) -> Vec<(SymStr, Option<Stored>)>
pub fn assigned(&self, table: TableName) -> Vec<(SymStr, Option<Stored>)>
The keys of table the journal saw assigned since it began, each with its value then (the front of its stack;
None: unbound).
Sourcepub fn rollback(self) -> bool
pub fn rollback(self) -> bool
Close the journal, undoing every assignment made since it began: each key’s values and its counts in the frames open then are put back as they were. Only when exactly those frames are open again — the same frames, by id, each one opened since closed and none of them closed: false, undoing nothing (the assignments stay), otherwise.
Trait Implementations§
Source§impl Drop for AssignmentJournalGuard
impl Drop for AssignmentJournalGuard
Auto Trait Implementations§
impl Freeze for AssignmentJournalGuard
impl RefUnwindSafe for AssignmentJournalGuard
impl Send for AssignmentJournalGuard
impl Sync for AssignmentJournalGuard
impl Unpin for AssignmentJournalGuard
impl UnsafeUnpin for AssignmentJournalGuard
impl UnwindSafe for AssignmentJournalGuard
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