pub struct Checkpoint {
pub busy: bool,
pub log_frames: i64,
pub checkpointed_frames: i64,
}Expand description
What PRAGMA wal_checkpoint(TRUNCATE) answered (ModelContainer::checkpoint): the
three columns of its status row. The engine reads the counts after the checkpoint, so a
completed one answers 0 and 0 (the log was emptied); a busy one describes the log it
had to leave behind. Both counts are -1 when the database is not in WAL mode (a memory
database, or wal: false).
Fields§
§busy: boolA reader or writer kept the checkpoint from completing within the busy timeout; the WAL was folded as far as it could be and the rest waits for the next call.
log_frames: i64Frames in the WAL when the checkpoint finished.
checkpointed_frames: i64Frames of that log already carried into the main file.
Implementations§
Source§impl Checkpoint
impl Checkpoint
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
The whole log was folded and truncated.
Trait Implementations§
Source§impl Clone for Checkpoint
impl Clone for Checkpoint
impl Copy for Checkpoint
Source§impl Debug for Checkpoint
impl Debug for Checkpoint
Source§impl Default for Checkpoint
impl Default for Checkpoint
impl Eq for Checkpoint
Source§impl PartialEq for Checkpoint
impl PartialEq for Checkpoint
impl StructuralPartialEq for Checkpoint
Auto Trait Implementations§
impl Forget for Checkpoint
impl Freeze for Checkpoint
impl Move for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnsafeUnpin for Checkpoint
impl UnwindSafe for Checkpoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more