pub struct WriteAheadLog { /* private fields */ }Expand description
Write-Ahead Log manager
Implementations§
Source§impl WriteAheadLog
impl WriteAheadLog
Sourcepub fn checkpoint(&self) -> Result<u64>
pub fn checkpoint(&self) -> Result<u64>
Write a checkpoint marker
Sourcepub fn truncate(&self, up_to_lsn: u64) -> Result<u64>
pub fn truncate(&self, up_to_lsn: u64) -> Result<u64>
Truncate WAL up to (and including) the given LSN
Sourcepub fn current_lsn(&self) -> u64
pub fn current_lsn(&self) -> u64
Get current LSN
Sourcepub fn checkpoint_needed(&self) -> &Notify
pub fn checkpoint_needed(&self) -> &Notify
Notify handle that fires when pending entries reach checkpoint_threshold.
A checkpoint driver awaits checkpoint_needed().notified() to trigger a
size-bounded checkpoint between periodic ticks (DAK-7428).
Auto Trait Implementations§
impl !Freeze for WriteAheadLog
impl !RefUnwindSafe for WriteAheadLog
impl Send for WriteAheadLog
impl Sync for WriteAheadLog
impl Unpin for WriteAheadLog
impl UnsafeUnpin for WriteAheadLog
impl UnwindSafe for WriteAheadLog
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