pub struct UndoLog { /* private fields */ }Expand description
Append-only undo log. Entries are never modified, only appended. Old entries are reclaimed by advancing the purge watermark.
Implementations§
Source§impl UndoLog
impl UndoLog
pub fn new() -> Self
pub fn push(&mut self, tx_id: u64, data: &[u8]) -> UndoPtr
pub fn push_with_prev( &mut self, tx_id: u64, data: &[u8], prev: Option<UndoPtr>, ) -> UndoPtr
pub fn get(&self, ptr: UndoPtr) -> Option<&UndoEntry>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UndoLog
impl RefUnwindSafe for UndoLog
impl Send for UndoLog
impl Sync for UndoLog
impl Unpin for UndoLog
impl UnsafeUnpin for UndoLog
impl UnwindSafe for UndoLog
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