pub struct LogCheckpoint<'a> { /* private fields */ }Expand description
Borrowed complete checkpoint view; obtaining/iterating it allocates nothing. Hosts own encoding budgets. The immutable borrow keeps rows and watermarks fixed.
Implementations§
Source§impl<'a> LogCheckpoint<'a>
impl<'a> LogCheckpoint<'a>
Sourcepub fn entries(
&self,
) -> impl ExactSizeIterator<Item = &'a Entry> + DoubleEndedIterator + 'a
pub fn entries( &self, ) -> impl ExactSizeIterator<Item = &'a Entry> + DoubleEndedIterator + 'a
All retained rows, oldest first, without cloning text.
Sourcepub const fn next_sequence(&self) -> Option<u64>
pub const fn next_sequence(&self) -> Option<u64>
Next identity, including permanent exhaustion after complete pruning.
Sourcepub const fn last_created_at_secs(&self) -> Option<u64>
pub const fn last_created_at_secs(&self) -> Option<u64>
Last admitted time, including after complete pruning.
Trait Implementations§
Source§impl<'a> Clone for LogCheckpoint<'a>
impl<'a> Clone for LogCheckpoint<'a>
impl<'a> Copy for LogCheckpoint<'a>
Auto Trait Implementations§
impl<'a> Forget for LogCheckpoint<'a>
impl<'a> Freeze for LogCheckpoint<'a>
impl<'a> RefUnwindSafe for LogCheckpoint<'a>
impl<'a> Send for LogCheckpoint<'a>
impl<'a> Sync for LogCheckpoint<'a>
impl<'a> Unpin for LogCheckpoint<'a>
impl<'a> UnsafeUnpin for LogCheckpoint<'a>
impl<'a> UnwindSafe for LogCheckpoint<'a>
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